POV-Ray : Newsgroups : povray.off-topic : OO theory? Python. : Re: OO theory? Python. Server Time
29 Jul 2024 04:21:53 EDT (-0400)
  Re: OO theory? Python.  
From: Warp
Date: 21 Oct 2012 02:39:52
Message: <508398b8@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> On 10/16/2012 5:06, Warp wrote:
> > Well, for one, methods taking 'self' as a parameter seems highly unusual

> A function that takes "self" as the first argument is a method. Otherwise 
> it's a function.

Well, duh. How does that change what I said?

> > Using __ as a syntax to denote a special meaning of functions and variables
> > is also quite unusual,

> The constructor is named __init__

> The operator+ method is named __add__

> And so on. It just avoids special syntax and substitutes special names.

It substitutes special syntax by using special syntax... Sounds
contradictory to me.

-- 
                                                          - Warp


Post a reply to this message

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