I'd like to define a type local to an object, like Bool in the example below
Apfelbaum = object
Baum : array[5,int]
akt_Reihe : int
max_level : int
type
Bool = enum
Undef, False, True
Cache : array[2*4*6*8*10,Bool]
But I get an error message identifier expected, but got 'keyword type'
Is it possible in Nim? Many thanks for a hint, HelmutThat's not possible, sorry. You'd have to do something like this:
type
ApfelbaumBool = enum
Undef, True, False
Apfelbaum = object
Baum : array[5,int]
akt_Reihe : int
max_level : int
Cache : array[2*4*6*8*10,Bool]