Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using import struct
- struct Foo plain
- bar : i32
- inline __typecall (cls)
- let pool =
- CStruct.__typecall cls
- bar = 3
- pool
- fn test (self)
- self.bar += 1
- let cs = (Foo)
- dump cs
- 'test cs
- print
- repr cs.bar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement