POV-Ray : Newsgroups : povray.bugreports : #local 'bug' cripples usefulness : Re: #local 'bug' cripples usefulness Server Time
28 Jun 2024 02:11:48 EDT (-0400)
  Re: #local 'bug' cripples usefulness  
From: Dan Connelly
Date: 27 Sep 1998 11:21:52
Message: <360E49FF.514B3916@flash.net>
Phillippe:

My reply wasn't intended to provide a suggestion to you.
Rather, I was stating for the record my observations.
One might expect that #undef before #local would
have no effect.... and if the latter is broken,
perhaps the former is as well.

This group is not the correct forum for me to discuss
how you should write your POV code.

The implementation of local scope is, I think, flawed.
My reading of the source code is that the way it is done (in parse.c)
is to save the old variable as a temporary variable but use
the old definition as a template for the new definition.

I think it would be better to forget about the old
symbol table reference :

1. rename the old symbol to a temporary name
2. create a new symbol table entry in the current
   scope "from scratch"

I agree this "feature" seriously comprimises the
abstraction offered by the #local construct.

Dan


Philippe Debar wrote:
> Dan Connelly wrote in message <360CDC9A.FA6A3850@flash.net>...
>> ...
> Yes, of course it does... 


-- 
http://www.flash.net/~djconnel/


Post a reply to this message

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