|
|
clipka <ano### [at] anonymousorg> wrote:
> I've just implemented a syntax extension that you might like: As of the
> newest development version, you'll now be able to assign multiple
> variables with a single #declare (or #local) statement, like so:
>
> #declare (A,B,C) = (X,Y,Z);
>
> Obviously, this now allows for a single macro to return multiple items,
> like this:
>
> #macro WindowFrameAndCutout(Pos,H,W)
> #local Frame = union {...};
> #local Cutout = box {...};
> (Frame,Cutout,Area)
> #end
>
> #declare (MyFrame,MyCutout) = WindowFrameAndCutout(...);
>
> How's that? :D
That's great !
=)
I really hope that it also works with functions, arrays, transforms, vectors,
cameras, light sources, materials etc. I.e. everything that be stored in a
variable.
--
Tor Olav
http://subcube.com
Post a reply to this message
|
|