POV-Ray : Newsgroups : povray.programming : this : Re: this Server Time
28 Jul 2024 16:15:27 EDT (-0400)
  Re: this  
From: Thorsten Froehlich
Date: 25 Jun 2002 08:19:46
Message: <3d185fe2@news.povray.org>
In article <pan### [at] maccom> , Christopher James
Huff <chr### [at] maccom>  wrote:

> Actually, I think it might work fine if everything has a default value
> and is considered to exist at the opening { brace.

If you carefully consider the scope in either case you will notice that
there is no other than the "this" or "self" (or whatever you call it) scope,
so no need for it as keyword to specify the only available scope.  In
particular because every attribute of the object would be a reserved name
anyway, so no need to disambiguate between local and global variables
either.  Essentially what I am pointing out is that the concept of "this" or
"self" simply does not apply to POV-Ray SDL.

> I'm not sure what you are trying to say about implementing it as a
> render-time variable...most of the uses I can think of for it are at
> parse time.

As we are talking about the future so am I.  Just imagine every expression
being a function rather than a macro.  Then you would apply the changes to
the object after everything is well-defined and order problems would not
exist.

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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