YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Why does class SQFunctionProto's member function "Finalize" only null '_literals' and not
user2016
#1 Posted : Saturday, June 4, 2016 8:06:28 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/4/2016(UTC)
Posts: 6

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Dear squirrel's author, I have a vague question to ask you:
Why does class SQFunctionProto's member function "Finalize" only null '_literals' and not null _parameters, _functions?

void Finalize(){ _NULL_SQOBJECT_VECTOR(_literals,_nliterals); }
fagiano
#2 Posted : Saturday, June 4, 2016 9:30:14 AM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/11/2005(UTC)
Posts: 1,056

Thanks: 0 times
Was thanked: 78 time(s) in 60 post(s)
The array "_parametes" contains the name of the parameters, it only refer to strings and strings cannot create cycles with other objects.

ciao
Alberto
Follow me on Twitter @squirrellang
user2016
#3 Posted : Saturday, June 4, 2016 11:38:13 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/4/2016(UTC)
Posts: 6

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Why should _functions in class SQFunctionProto not be nulled when invoking function "Finalize"? the _functions is type SQObjectPtr* which participate in the computation of "circular reference.
user2016
#4 Posted : Saturday, June 4, 2016 4:48:14 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/4/2016(UTC)
Posts: 6

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hello, In member function 'Finalize' of class 'SQFunctionProto', _literals are nulled, but _functions aren't nulled, why?
Thank you for your help.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.186 seconds.