Honourary Hab

Honourary habilities count, too, but you should really use the function pointer.

I've asked this before, how would we make an executable with a function pointer though? I figured a pointer to a function was just a location on the stack. Is that really it? I am baffled. You can tell me everything and it's still going to be so much more confusing than 'x = ptr(x)'.

So I guess I should have given it an explicit pointer. Yes that is the point of a function pointer. It's either: pointer to function, pointer to the location where the function will be executed or *ptr(function pointer)* pointer to the location where the function will be executed by the calling program

Oh okay, thanks for your help! So PTR takes up a p register which is essentially your stack pointer.

You're welcome! I'm not a native speaker, so this is a bit advanced for me too, not that you needed to ask for help. :)

So if my main function is like'print 'hello''to the screen then PTR actually takes up a stack location if I was calling the function from a saved game? It seems weird to be calling something out of it's function while it's also calling something from it's function.

Hi yeah that's correct. The statement "PTR(funcName)" is just like function call but on the stack. When you have a function like'main()' you're calling from main(), to make the function handle the variables that you passed to the main() in the function

Comments

Popular posts from this blog

Thomas Lobar Garden Hose

Mason Enslow Schiller

Rfc 5322