help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OO in octave.


From: Sergei Steshenko
Subject: Re: OO in octave.
Date: Wed, 30 Jan 2013 15:40:57 -0800 (PST)




----- 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]