3 ms·
Oh cool, I think that's similar to how JavaScript 'objects' work. I've heard that it's not that difficult to do object oriented stuff in plain C using nothing
by dhotson 18y ago
Oh cool, I think that's similar to how JavaScript 'objects' work.
I've heard that it's not that difficult to do object oriented stuff in plain C using nothing but structs and function pointers.
I can imagine the syntax would be a pain in the ass and ugly as hell though. :P
I'll have to take a closer look at Lua.. have you used it much before?
- silentbicycle 18y agoNope. I read about it and played with its interpreter some, but its niche isn't really very relevant to me. It seems designed for when you want something flexible and Python-like to embed in a C program, but you need something minimalistic because memory is really tight. It looks like a pretty well-designed language, though. It's small and clean enough that one could probably memorize the entire language.