mfichman / jogo

High(er) performance compiled programming language with clean, powerful syntax
MIT License
6 stars 1 forks source link

Remove refcount and vtable fields from value types #47

Closed mfichman closed 11 years ago

mfichman commented 11 years ago

These are not necessary for value types allocated on the stack. Boxed value types can be allocated such that they do use a refcount/vtable field when allocated on the heap; this is a special case.

Also, investigate allowing value types to be used for generics, but only if Boxed. That may be a possible compromise.