dplassgit / d2lang

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

Support 16-bit shorts #235

Open dplassgit opened 1 year ago

dplassgit commented 1 year ago

For 8-bit architectures, which struggle with 32-bit integers

Constants would have a trailing S, e.g., 12345S (similar to longs: 123456789L)

dplassgit commented 8 months ago

Or 0x1234?

dplassgit commented 8 months ago

Note, there are a LOT of places that would have to be updated (see https://github.com/search?q=repo%3Adplassgit%2Fd2lang+VarType.BYTE&type=code for all the places BYTE is used):