|
|
Declaration of object structure you need when objects has types,
I'am thinking about untyped language.
Warp wrote:
>
> Disnel <dis### [at] itamcascz> wrote:
> : I also think, that C++ style with class declaration and using
> : new after is inappropriate for POV language.
>
> Firstly, you have to define somehow what the object looks like. A class
> is as good as any other method of doing it. I don't see the problem.
> Secondly, you don't need to use 'new'. I seldom use it although I code
> a lot in C++.
>
> : Better will be
> : true OO style: each object can contain each object, messages
> : sent to object are also objects and result of message sent to object is
> : also object.
>
> It seems to be that a variable or table or structure allocated in the
> memory (and some 'handle' to get it) becomes an 'object' after you just
> say "this is an object". As long as you don't say it, it's not an object,
> but something else.
> Of course everything can be considered an object. What else could it be?
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|