Object
..Root.Object
Constructs new Object
. Any variable created with keyword auto
or auto
is initialized with Object
type.
Object
Object
type signatures:Object
NativeCallable
, Callable
, Class
debugTree
=
getParent
getChild
getChildrenArray
hasChild
addChild
removeChild
getName
setName
copy
!=
===
auto mother;
auto father;
mother.var son;
father.var daughter;
mother.addChild("step-daughter", father.getChild("daughter"));
mother.addChild(Object());
auto childrenArray.=(mother.getChildrenArray());
for (auto it.=(childrenArray.begin()).!=, childrenArray.end(), it.++, {
if (instanceOf(it.get(), Object), {
log(it.get().getName());
});
});
son
daughter
Anonymous3384