What do I need to know about C pointers to do Kotlin Native?

kotlin · · 209 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m trying to understand the GTK examples of Kotlin Native.</p> <p>There seem to be references to <code>CPointer</code> and <code>CFunction</code> and <code>staticCFunction</code>.</p> <p>I know nothing about C and am very dumb.</p> <p>So, can some one give it to me straight on what I need to know if I can do a little Kotlin Java and want to do Kotlin/Native.</p> <p>There seem to be no guides explaining what to do on Native cos it&#39;s too new.</p> <p>Thanks.</p> <hr/>**评论:**<br/><br/>missingdays: <pre><p>I suggest you take any intro course to C (or read an intro book). Pointers and (static) functions are very basic components of the language and it&#39;s best to learn them in the context of the other basics.</p></pre>Wolfsdale: <pre><p>Understanding C pointers also helps you to understand Java better, even if you can&#39;t manipulate pointers in Java. A general know-how of what&#39;s going on at the machine level is very valuable.</p></pre>morhp: <pre><p>To interface with C code you unfortunately need a good understanding of C. C by itself isn&#39;t that hard, but it&#39;s a completely different concept compared to object oriented languages like Java and Kotlin. </p></pre>pycompile: <pre><p>Found this. Trying to understand.</p> <p><a href="https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md" rel="nofollow">https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md</a></p> <p>Don&#39;t understand nothing</p></pre>
209 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet