[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Private functions and user objects
From: |
WMennerich |
Subject: |
Private functions and user objects |
Date: |
Tue, 22 Jul 2008 06:58:00 -0700 (PDT) |
Hi,
I played a little with Octave 3.1.50, investigating the new user objects
features
(Windows built) and was wondering a little bit:
If a object function is private, i.e. it is stored in an subdirectory named
'private' of the class definition directory (@dirname), octave does not find
this function anymore.
Example:
Directory '@testObj' contains the constructor 'testObj.m' and a function
'fun.m'
A subdirectory of '@testObj', named 'private' contains the function
'privFun.m'.
'fun.m' calls only 'privFun.m' in the 'private' subdirectory
Test:
Create an object:
>>x=testObj(<some arguments>)
Now, call the private function via fun.m:
>>fun(x)
Result: Error: privFun.m was not found.
Is this only a bug or are private functions not yet provided by octave?
Best, Wolfgang
--
View this message in context:
http://www.nabble.com/Private-functions-and-user-objects-tp18587747p18587747.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
- Private functions and user objects,
WMennerich <=