help-octave
[Top][All Lists]
Advanced

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

How to 'overload' functions


From: jiaguo
Subject: How to 'overload' functions
Date: Sun, 18 Jul 2004 16:00:01 -0500

Hi

I want to write a function with the same name of 'size' as the
one already exsists in octave. In this new function, I will
calculate the size of a new data type, if the input is the new
data type. Otherwise, I will call the octave size function. 

I implemented it in DLD function and run octave at the same
directory as it is.However, when I call 'size(x)' in octave,
it always call the octave size function instead of my DLD size
function. Can anyone tell me how to 'overload' functions and
how to specify which size function to run? 

Thanks,

Jia



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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