omni icon indicating copy to clipboard operation
omni copied to clipboard

Remove all C stuff

Open vitreo12 opened this issue 4 years ago • 3 comments

And just have it written in plain nim, similarly as the buffer interface in omnimax.

Would this thugh be a bad interface for developers? They wouldn't rely on omni.h anymore, possibly

vitreo12 avatar Mar 26 '20 18:03 vitreo12

Nim's function pointers: https://nim-lang.org/docs/manual.html#types-procedural-type

vitreo12 avatar Mar 31 '20 22:03 vitreo12

This would mean rewriting the whole omni_alloc interface in Nim. One thing to be checked then is the validity of the nim code with the omni.h header

vitreo12 avatar Mar 31 '20 22:03 vitreo12

https://forum.nim-lang.org/t/6148

vitreo12 avatar Apr 04 '20 12:04 vitreo12