POV-Ray : Newsgroups : povray.pov4.discussion.general : Featur request: macros with local scope Server Time
21 Nov 2024 14:37:58 EST (-0500)
  Featur request: macros with local scope (Message 1 to 5 of 5)  
From: SharkD
Subject: Featur request: macros with local scope
Date: 29 Jun 2008 14:55:01
Message: <web.4867d9b349aa4e4afeb17ab00@news.povray.org>
I would like to request the ability to define macros such that they have only
local scope.

For instance, I am attempting to use several instances of Rune's particle
system. unfortunately, some of the internal macros conflict with each other
when defined multiple times. When I try to define the macro a second time
POV-Ray quits with errors.

-Mike


Post a reply to this message

From: Warp
Subject: Re: Featur request: macros with local scope
Date: 29 Jun 2008 16:48:05
Message: <4867f505@news.povray.org>
SharkD <nomail@nomail> wrote:
> I would like to request the ability to define macros such that they have only
> local scope.

  I think this goes to the category "the new SDL for pov4".

-- 
                                                          - Warp


Post a reply to this message

From: SharkD
Subject: Re: Featur request: macros with local scope
Date: 29 Jun 2008 20:55:01
Message: <web.48682dd096a7cebfeb17ab00@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> SharkD <nomail@nomail> wrote:
> > I would like to request the ability to define macros such that they have only
> > local scope.
>
>   I think this goes to the category "the new SDL for pov4".
>
> --
>                                                           - Warp

Where is this category? I haven't come across it yet.


Post a reply to this message

From: Warp
Subject: Re: Featur request: macros with local scope
Date: 30 Jun 2008 10:41:57
Message: <4868f0b5@news.povray.org>
SharkD <nomail@nomail> wrote:
> >   I think this goes to the category "the new SDL for pov4".

> Where is this category? I haven't come across it yet.

  It was a figure of speech.

-- 
                                                          - Warp


Post a reply to this message

From: SharkD
Subject: Re: Featur request: macros with local scope
Date: 30 Jun 2008 13:35:00
Message: <web.4869187596a7cebb8fe8aef0@news.povray.org>
"SharkD" <nomail@nomail> wrote:
> I would like to request the ability to define macros such that they have only
> local scope.
>
> For instance, I am attempting to use several instances of Rune's particle
> system. unfortunately, some of the internal macros conflict with each other
> when defined multiple times. When I try to define the macro a second time
> POV-Ray quits with errors.
>
> -Mike

I managed to get around the problems I was having by using the "undef" command,
though this ability is undocumented.

-Mike


Post a reply to this message

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