titzer / virgil

A fast and lightweight native programming language
1.23k stars 44 forks source link

[packing] [WIP] Simple packing #232

Closed btwj closed 5 months ago

btwj commented 6 months ago

Progress on packing fields in a variant.

For now, I've introduced a #packed annotation to tell the compiler to pack a variant, while I'm still trying to figure out the best semantics for the #packing annotation.

TODOs

titzer commented 5 months ago

Can you bump the version number and I'll land this?