You can make `int` whatever you want per a module, just by declaring it (`type
int = ...`). But that won't change types of literals. So then you should avoid
implicit typing. Yet stdlib of coarse uses `int` (you can declare your `int` in
`system.int` ot make small wrappers for stdlib modules, which just declare your
types and then include the module (`include strutils`), but implicit types may
be used there too). E.g.:
type int = int8
var x: int = 8
echo x.sizeof # -> 1
var y = 8
echo y.sizeof # -> 4, 8, ..., `system.int`'s size, platform-dependent
- How to write (mostly) "architecture independent" (32/... monster
- Re: How to write (mostly) "architecture independent&q... LeuGim
- Re: How to write (mostly) "architecture independe... Libman
- Re: How to write (mostly) "architecture indep... monster
- Re: How to write (mostly) "architecture i... Arrrrrrrrr
- Re: How to write (mostly) "architect... monster
- Re: How to write (mostly) "archi... cdunn2001
- Re: How to write (mostly) "a... Arrrrrrrrr
- Re: How to write (mostly) "a... mashingan
- Re: How to write (mostly) "a... jlp765
- Re: How to write (mostly) "a... Arrrrrrrrr
- Re: How to write (mostly) "a... monster
