POV-Ray : Newsgroups : povray.advanced-users : pass variable from macro? : Re: pass variable from macro? Server Time
5 Jul 2024 15:35:44 EDT (-0400)
  Re: pass variable from macro?  
From: Darren New
Date: 31 Jan 2008 23:48:18
Message: <47a2a492@news.povray.org>
Thomas de Groot wrote:
> "Warp" <war### [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 2003-2023 Persistence of Vision Raytracer Pty. Ltd.