Kotlin中的"external"关键字的目的是什么? [英] What is the purpose of `external` keyword in Kotlin?

查看:508
本文介绍了Kotlin中的"external"关键字的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Kotlin中 external 关键字的用途是什么?

What exactly is the purpose of the external keyword in Kotlin?

我想它像Java中的native一样用于JNI,但是我似乎找不到任何实际的参考文献或文档.

I guess it's for JNI like native in Java, but I can't seem to find any actual reference or documentation on this.

推荐答案

实际上,它等同于Java的native.文档中目前缺少它,但是有一个问题可以添加.

Indeed, it's an equivalent of Java's native. It's currently missing from the documentation but there's an issue to add it.

这篇关于Kotlin中的"external"关键字的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆