Question : nim type
Answered by : stormy-sloth-bnsruvm36fhc
type Person = object of RootObj name*: string # the * means that `name` is accessible from other modules age: int # no * means that the field is hidden Student = ref object of Person # a student is a person id: int # with an id field
Source : https://nim-lang.org/docs/manual.html | Last Update : Tue, 06 Dec 22