## INVALID
type
Something = object
act* : proc()
name*: string
var something = Something(.act : someaction)
proc someaction*()=
something.name = "boo"
Run
## VALID
type
Something = object
act* : proc()
name*: string
var something = Something()
something.act = someaction
proc someaction*()=
something.name = "boo"
Run
## VALID
type
Something = object
act* : proc()
name*: string
var something = Something()
something.act = someaction
proc someaction*()=
# some code without something
discard
Run
Why the first example is invalid ? The error gives me undeclared identifier but
I don't understand what it means since I see the identifier.