POV-Ray : Newsgroups : povray.programming : this : Re: this Server Time
28 Jul 2024 16:25:28 EDT (-0400)
  Re: this  
From: Rafal 'Raf256' Maj
Date: 25 Jun 2002 15:51:07
Message: <Xns9238DDC7C463Craf256com@204.213.191.226>
"Thorsten Froehlich" <tho### [at] trfde> wrote in
news:3d18c5e1@news.povray.org: 

>> But that's not what it is for. In all the examples that have been
>> given, it is just the addition of the symbol in order to pass the
>> object to a function.

> function simply operates on whatever object it was called by.  It

and 'this' will give possibility to pass object it was called by o MACROS - 
with is now impossible without a work-around.

Work around is :
1. tak all statements before 'this'
2. put them togeather into #declare tempIbj = ...
3. repleace 'this' with 'tempObj' 

that's all :)

why not do this automaticly using 'this' ?


-- 


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.