POV-Ray : Newsgroups : povray.general : Passing file handles to macros - how? : Re: Passing file handles to macros - how? Server Time
4 Aug 2024 14:28:57 EDT (-0400)
  Re: Passing file handles to macros - how?  
From: Peter Popov
Date: 22 Apr 2003 05:48:16
Message: <mp3aav849oioarrhrk1pvetddu0kkfq3r3@4ax.com>
On Tue, 22 Apr 2003 10:55:51 +0200, Christoph Hormann
<chr### [at] gmxde> wrote:

>I recently experienced the same problem and i think you can't.  File
>handles are different from other identifiers. 

Then why can I #undef, #ifdef and #ifndef them? I mean, sure they are
not normal identifiers, you can't assign to them etc. but the fact
that you can't pass them to macros looks to me like an overlooking and
not a design feature.

The docs don't mention it anywhere. What they say is that a macro
parameter is either an RVALUE or an identifier. However, a file handle
*is* in a way an identifier as it a) uniquely identifies a file and b)
you can #ifdef, #ifndef and #undef it. So why the limitation?


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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