pocketlang/tests/native/dl
Thakee Nathees 5bc9dcad6b method bind implemented
- MethodBind type added.
- Now methods are first class and can be passed around as arguments
  store as a variable and return it from a function and they're first
  class callbales.
- Can bind instance to a method bind using .bind() method
- Class.methods() method added -> return a list of all methods as
  method binds
- Module.globals() method added -> returns a list of all globals
  of that module.
- Var._class -> attribute added which will return the class of the
  variable
- Class.name, MethodBind.name, Closure.name attribute and Modue._name
  attribute added
- Class._docs, Closure._docs, MethodBind._docs attribute added
- MethodBind.instance attribute added
2022-06-06 02:47:31 +05:30
..
main.pk method bind implemented 2022-06-06 02:47:31 +05:30
mylib.c extension module implemented 2022-05-30 22:55:22 +05:30
pknative.c docstrings support added for native functions 2022-06-05 23:20:53 +05:30
README.md extension module implemented 2022-05-30 22:55:22 +05:30

Example on how compile a native extension.

MSVC

cl /LD mylib.c pknative.c /I../../../src/include/
rm *.obj *.exp *.lib

GCC

gcc -fPIC -c mylib.c pknative.c -I../../../src/include/
gcc -shared -o mylib.so mylib.o pknative.o
rm *.o