berry icon indicating copy to clipboard operation
berry copied to clipboard

Add `instrospect.contains()` and string to comptr

Open s-hadinger opened this issue 1 year ago • 0 comments

Add two features to import introspect:

  • instrospect.contains( instance or module or class, name:string) -> bool: returns true if the instance/class/module contains a member with name
  • introspect.toptr() now works also for a string and returns a pointer to the C string (warning, the pointer is only valid until next GC)

s-hadinger avatar Feb 27 '24 21:02 s-hadinger