POV-Ray : Newsgroups : povray.beta-test : Syntax extension: Passing multiple values out of a macro : Re: Syntax extension: Passing multiple values out of a macro Server Time
28 Apr 2024 01:56:52 EDT (-0400)
  Re: Syntax extension: Passing multiple values out of a macro  
From: clipka
Date: 1 Mar 2015 13:05:25
Message: <54f354e5$1@news.povray.org>
Am 01.03.2015 um 09:30 schrieb Warp:
> clipka <ano### [at] anonymousorg> wrote:
>>     #macro WindowFrameAndCutout(Pos,H,W)
>>       #local Frame  = union {...};
>>       #local Cutout = box {...};
>>       (Frame,Cutout,Area)
>>     #end
>
>>     #declare (MyFrame,MyCutout) = WindowFrameAndCutout(...);
>
> You are returning three values and assigning them into two identifiers?

Whoops :) - that should have been:

     #declare (MyFrame,MyCutout,MyArea) = WindowFrameAndCutout(...);


Post a reply to this message

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