POV-Ray : Newsgroups : povray.advanced-users : pass variable from macro? : Re: pass variable from macro? Server Time: 6 Jul 2008 09:53:15 GMT
  Re: pass variable from macro?  
From: Darren New
Date: 1 Feb 2008 04:48:18
Thomas de Groot wrote:
> "Warp" <warp [at] tagpovrayorg> schreef in bericht 
> news:479c2f65@news.povray.org...
>>  Not really. POV-Ray doesn't copy anything. When a macro call is 
>> encountered
>> it jumps to the macro body and continues parsing there. When the macro has
>> been parsed, it returns to the origin of the jump.
>>
> 
> ....reminds me of the good old 'subroutines' in Fortran...

Nah. Fortran just didn't guarantee you had a stack on the machine. And 
many mainframes of the time didn't. You had "BAL" - Branch And Link, 
which left the previous program counter in a register and branched to 
the new address. Actually pushing that register onto a stack after was 
usually-unnecessary overhead.

-- 
   Darren New / San Diego, CA, USA (PST)
     On what day did God create the body thetans?


Post a reply to this message

Copyright 1991-2004 POV-Team™