core
core copied to clipboard
primitive needs to be wrapped
pub fn View::length(self : View) -> Int = "%bytesview.len"
This will result in a crash @Guest0x0 for testing
Originally posted by @bobzhang in https://github.com/moonbitlang/core/pull/2552#discussion_r2265258235
I suggest that we keep an annotation at the fn decl which need pin (hardcoded in compiler) in core. So if some changes made for them, we can quickly review that.