POV-Ray : Newsgroups : povray.general : Q: dot operators : Re: dot operators Server Time
13 Aug 2024 03:13:16 EDT (-0400)
  Re: dot operators  
From: Rich Lafferty
Date: 17 Nov 1998 19:45:49
Message: <365218bd.0@news.povray.org>
Thorsten Froehlich <fro### [at] charliecnsiitedu> wrote:
>In article <365### [at] peakeduee> , Margus Ramst <mar### [at] peakeduee>  wrote:

>> I don't know if this is a bug or not, but it I can't redefine a
>> single component of a vector with dot operators, i.e.:
>>
>> #declare Vector = <0,0,0>;
>> #declare Vector.x = 5; //This sort of operation gives an error
>>
>> I would expect it to result in <5,0,0>
>> I know this can be worked around, but I don't see why it should be illegal.
>
>Thats simple: Its not in the language definition!

Abstracting further:

Is a #define just macro substitution, like in C, or is it an
actual assignment operator?

  -Rich

-- 
Rich Lafferty ---------------------------------------------------------
IITS/Computing Services     | "Oderint dum metuant."
Concordia University        |            -- Lucius Accius (170-90 BC).     
ric### [at] vax2concordiaca -----------------------------------------[McQ]--


Post a reply to this message

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