[https://github.com/ponyatov/nims/blob/67bf8b774f0a113edb933ff1b23055fd35722d5a/habr/FORTH.nim](https://github.com/ponyatov/nims/blob/67bf8b774f0a113edb933ff1b23055fd35722d5a/habr/FORTH.nim)

How can I limit VM addresses size using Nim type system?

I want to write very limited FORTH machine using bytecode interpreter, so need 
to limit addresses size to Msz or at least of 16-bit addressing. The same about 
integer sizes.

Is it possible with type system only, or I need to hack with templates or macro 
to do it? 

Reply via email to