core icon indicating copy to clipboard operation
core copied to clipboard

primitive needs to be wrapped

Open bobzhang opened this issue 6 months ago • 1 comments

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

bobzhang avatar Aug 10 '25 12:08 bobzhang

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.

hackwaly avatar Aug 12 '25 07:08 hackwaly