Welcome Guest
Search
|
Active Topics
|
Log In
|
Register
ERROR
Squirrel - The Programming Language
»
Development
»
Squirrel language review Board
»
Why does class SQFunctionProto's member function "Finalize" only null '_literals' and not
Why does class SQFunctionProto's member function "Finalize" only null '_literals' and not
Options
Previous Topic
Next Topic
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); }
Back to top
User Profile
View Thanks
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,063
Thanks: 0 times
Was thanked: 82 time(s) in 63 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
Back to top
User Profile
View Thanks
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.
Back to top
User Profile
View Thanks
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.
Back to top
User Profile
View Thanks
Users browsing this topic
Guest
Squirrel - The Programming Language
»
Development
»
Squirrel language review Board
»
Why does class SQFunctionProto's member function "Finalize" only null '_literals' and not
Forum Jump
General
- The Language
- Embedding
- Bindings
Development
- Squirrel language review Board
- Squirrel API review Board
- Bugs
Forum
- Stuff
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.
Watch this topic
Email this topic
Print this topic
RSS Feed
Normal
Threaded
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.045 seconds.