olofson / eel

The Extensible Embeddable Language for scripting in realtime applications
http://eelang.org/
zlib License
46 stars 4 forks source link

Unify types and classes? #113

Closed olofson closed 5 years ago

olofson commented 5 years ago

"Type" in EEL is essentially a special case of "class," so I'm not sure it makes sense to have a distinction. EEL_types, EEL_classes, and runtime allocated class IDs all live in the same space, and only differ in whether or not they're hardwired, and whether or not their values carry object pointers.

Maybe just eliminate EEL_types, typeid etc, and refer to it all as classes? That would avoid a lot of ugly typecasting.