In this scenario, the compiler will create two dispatch tables, one for ParentClass, and one for ChildClass:.
例如,在Rust中引入并行是相对低风险的操作:编译器会为你捕获经典的错误。
For example,introducing parallelism in Rust is a relatively low-risk operation: the compiler will catch the classical mistakes for you.
如果我们试图从其他外部的if或者else访问num,编译器会不通过。
If we try to access num from outside the if orelse, the compiler will complain.
如果你只是借用一个对象,编译器会跟踪它。
If you're just borrowing an object the compiler will keep track of that.
可以被用于任何地方,它是表示各种类型零值的符号并且编译器会挑出它.
Can be used anywhere,it is the generic symbol for each type's zero value and the compiler will sort things out.
编译器会允许你这样做,但是就像我们刚刚所看到的一样,我们无法确保代码是否能够按要求运行。
Compilers will let you do it, but as we have just seen, that's no guarantee the code will behave properly.
完成之后,JIT编译器会观测程序运行,对使用频繁的方法进行更为优化的二次编译。
After this is completed, the JIT compiler will observe program operation, and heavily used methods will receive a second more optimized compilation pass.
中文
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt