POV-Ray : Newsgroups : povray.off-topic : Why is Haskell interesting? : Re: Why is Haskell interesting? Server Time
4 Sep 2024 15:20:43 EDT (-0400)
  Re: Why is Haskell interesting?  
From: Darren New
Date: 2 Mar 2010 19:06:59
Message: <4b8da823$1@news.povray.org>
Warp wrote:
> 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.)

That's true.

-- 
Darren New, San Diego CA, USA (PST)
   The question in today's corporate environment is not
   so much "what color is your parachute?" as it is
   "what color is your nose?"


Post a reply to this message

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