Like C++, isn't the instance of bbb temporaly created at
constructor of aaa, then destroyed after the construction?
No. Curl is a garbage-collected language, like Java and C#. Objects
are only freed when there are no more pointers to them anywhere.
Garbage collection loops through all the
{constructor public {default b:bbb}
set fnc = {proc {}:bool {return {bbb.def}}}
}
Also, unlike C++, when you access fields on 'self' you must say so
explicitly. So you probably want this:
{constructor public {default b:bbb}
set self.fnc = {proc {}:bool {return {bbb.def}}}
}