dplassgit / d2lang

D2 is a strongly-typed, statically-typed, (mostly) inferred-type compiled language.
MIT License
6 stars 0 forks source link

Strings and pointers may not be 8 bytes on some architectures #236

Closed dplassgit closed 1 year ago

dplassgit commented 1 year ago

VarType for String and records (& arrays) are hard-coded at 8 bytes. But in non-x64 they may be 4 (for a 16 or 32-bit machine) or 2 (for an 8 bit machine). How to reconcile this?