POV-Ray : Newsgroups : povray.off-topic : Why is Haskell interesting? : Re: Why is Haskell interesting? Server Time
4 Sep 2024 15:22:54 EDT (-0400)
  Re: Why is Haskell interesting?  
From: Warp
Date: 2 Mar 2010 18:39:35
Message: <4b8da1b7@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> Warp wrote:
> >   (That doesn't mean you can't have a pointer pointing to a member of an
> > object, in a portable way. However, that requires either for the member
> > to be public or for the object to give you the pointer.)

> Actually, just thinking about it a bit more, if the class returns a pointer 
> to a member variable, and you can look in the header and see that pointer is 
> in an array, then you have a well-defined way of accessing the other private 
> data in the same array.

  Only if you also know which array element it's pointing to. (If you know,
then the class is, effectively, exposing the entire array.)

-- 
                                                          - Warp


Post a reply to this message

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