POV-Ray : Newsgroups : povray.off-topic : new C# stuff : Re: new C# stuff Server Time
6 Sep 2024 17:22:43 EDT (-0400)
  Re: new C# stuff  
From: Warp
Date: 23 Jan 2009 10:20:05
Message: <4979e025@news.povray.org>
Chambers <ben### [at] pacificwebguycom> wrote:
> > -----Original Message-----
> > From: Warp [mailto:war### [at] tagpovrayorg]
> >   In other words, you simply can write the same thing with a slightly
> > different syntax, but otherwise there's no difference. I really fail
> > to see the usefulness of this.

> You're terribly correct, there is no use to this at all.  After all, the
> following are all identical:

> VectorAdd(v1, v2, &v3);
> v3 = VectorAdd(v1,v2);
> v3 = v1+v2;

> Since there's no difference between them, the second two should just be
> taken out completely, don't you think?

  Ah, so this extension can be used for operator overloading in C#?
Nobody told me that before.

-- 
                                                          - Warp


Post a reply to this message

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