10.4 已知各类问题(Known Issues and Workarounds)
Last updated
Last updated
: All impl
blocks need to be defined before any of the functions they define can be called. This includes sibling functions in the same impl
declaration, i.e., functions in an impl
can't call each other yet.
:所有impl
块都需要先定义,然后才能调用它们定义的任何函数。这包括同一impl
声明中的同级函数,即impl
中的函数还不能互相调用。
Arrays in a storage
block are not yet supported. See the section for details on how to use store
and get
from the standard library to manage storage slots directly. Note, however, that StorageMap<K, V>
does support arbitrary types for K
and V
without any limitations.
尚不支持 存储 storage
块中的数组。有关如何使用store
的详细信息,请参阅部分并从标准库中get
直接管理存储槽。但请注意,StorageMap<K, V>
确实支持K
和V
的任意类型,没有任何限制。
No compiler optimization passes have been implemented yet, therefore bytecode will be more expensive and larger than it would be in production. Note that eventually the optimizer will support zero-cost abstractions, avoiding the need for developers to go down to inline assembly to produce optimal code. 尚未实现编译器优化过程,因此字节码将比生产中的字节码更昂贵且更大。请注意,优化器最终将支持零成本抽象,从而避免开发人员需要进行内联汇编来生成最佳代码。