here is the code on the [https://nim-lang.org](https://nim-lang.org)/
however,
= range 0..9223372036854775807(int)
Run
how do I know? Just assign a float to age. then nim refuse to compile.
so it is a very bad example
1. the comment is wrong. btw, is there any builtin type which is true
positive integer or float number?
2. no known man has a age of 9223372036854775807 years old!
import strformat
type
Person = object
name: string
age: Natural # ensures the age is positive
Run
