some18kanal0n3 wrote:
Just making sure: So only if the program is called more than once by the parent does the size increase, correct?


.... the size does not vary on how many times it is called, but in how many different locations that same code is, not sure why you are having such a hard time with this....

for example:


Code:
SOMEPROG:
for(x,1,10
prgmSUB
if Q
return
end


Thats going to call prgmSUB 10 times, but its still only an extra 4 bytes to implement the return. compared to


Code:
BIGPROG
prgmSUB
if Q
return

...(later on in the program)....

prgmSUB
if Q
return

...(still father along in the code)...

prgmSUB
if Q
return


Get it?

Regardless, though, its still smaller to use 'stop', but the point is that that breaks shell compatibility - just try and avoid it Rolling Eyes
okay okay.

It all makes sense.

Why so hard... meh, I'm slow sometimes =/
sometimes its just hard to digest, no?
at least for me it is.
its important to know the underlying reason for doing something, that way if some1 asks u why u always use the return command, you actually know why. and also, you should know why you're using every piece of code in a program. it gives you CONTROL over the program
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 4 of 4
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement