[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OO in octave.
From: |
ernst |
Subject: |
Re: OO in octave. |
Date: |
Thu, 31 Jan 2013 17:49:13 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120825 Thunderbird/15.0 |
Hi Sergej,
ok, then I agree: notation is rarely a need.
Let's see what the developers and users of OO in octave say
(which are also both rare!)
Feel invited.
greetings,
ERnst
>
>
>
> ----- Original Message -----
>> From: ernst <address@hidden>
>> To: "address@hidden" <address@hidden>
>> Cc:
>> Sent: Thursday, January 31, 2013 2:13 AM
>> Subject: Re: OO in octave.
>>
>> Hi Sergei,
>>>
>>>
>>> ----- Original Message -----
>>>> From: ernst <address@hidden>
>>>> To: address@hidden
>>>> Cc:
>>>> Sent: Thursday, January 31, 2013 1:09 AM
>>>> Subject: OO in octave.
>>>>
>>>> Hi all,
>>>> i know OO from java: x.function(a,....) means function(x,a,...)
>>>> where the class of x determines the choice of the function.
>>>>
>>>> For octave i did not find an according statement in the docu.
>>>> Does octave rely on the 1st argument only, as java does or does it look
>>>> after all?
>>>>
>>>> greetings, Ernst
>>> If you need only
>>>
>>> x.function(a,....) means function(x,a,...)
>>>
>>> then OO is just syntax sugar you do not really need.
>>>
>>> If you need inheritance and polymorphism, then you need OO.
>>>
>>> But Octave essentially supports polymorphism. Even UNIX/Linux 'ls'
>> command (and many others) are polymorphic functions.
>>> Regards,
>>> Sergei.
>> Well, I need. inheritance and polymorphism.. yes that's what i meant by
>> "where the class of x determines the choice of the function.'
>>
>> I just wondered, whether octave checks for the first argument only.
>> And i was confused, that i did nowhere in the docu find a word about the
>> search mechanism.
>> Something like:
>> "If the first argument arg1 has class <cls> (determined by function
>> class(arg1)),
>> then the function definition is searched for in folder @<cls> and
>> subfolders recursively. "
>>
>> Is this the truth?
>>
>> Also it seems to me as if only member methods are supported. Right?
>>
>> regards,
>>
>> Ernst
>
> Ernst,
>
> I am not an Octave developer, nor I am a user of OO in Octave, so I can't
> answer your questions.
>
> My point was that if you only need
>
> x.function(a,....) means function(x,a,...)
>
> , it is not a real need.
>
> I hope Octave developers will answer your questions in detail.
>
> Regards,
> Sergei.
>
>