POV-Ray : Newsgroups : povray.programming : this : Re: this Server Time
28 Jul 2024 16:21:55 EDT (-0400)
  Re: this  
From: Christopher James Huff
Date: 25 Jun 2002 22:09:05
Message: <pan.2002.06.25.21.06.11.222457.378@mac.com>
On Tue, 25 Jun 2002 18:37:22 -0500, Thorsten Froehlich wrote:

> You would do
> 
>  #macro fun(obj)
>    (obj.max_extent+obj.min_extent+sin(....)+....)
>  #end

I think he meant something like:

xxx {xxxx
    fun(self)
}

The macro might be written that way, but it wouldn't be useable without
declaring a temporary version of the object first.

This version should work fine with that syntax though, but only because a
macro isn't a function:
#macro fun()
    (max_extent + min_extent + sin(...) + ...)
#end

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: <chr### [at] tagpovrayorg>
WWW: http://homepage.mac.com/chrishuff/


Post a reply to this message

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