David Bateman wrote:
> James K. Lowden wrote:
> > A colleague has some Matlab code we'd like to explore porting to
> > Octave.  The code in question makes use of Matlabs '@' directories and
> > operator overloading.  
> 
> 1) Use the bleeding edge Octave (IE a build from the repository itself)
> and use the "@" directories as is.
... 
> 2) Write your type in C++ and do the overloading there.

Thanks, David!  Two days of pointing and grunting convinced us we can do
everything we want using C++, which at this point appears preferable for
our use.  My colleague also found
http://pagesperso-orange.fr/prthomas/intro.html.  

I thought you'd be interested to hear some of his comments.  Apologies, I
know this list isn't "advocacy":

> I am beginning to think this architecture is better than Matlab because 
>   
>        1) Octave's class hierarchy is in C++. Matlab constructs are
>        C-based.  2) A user-defined object may be derived in C++
>        inheriting from Octave's class hierarchy. Not so in Matlab.  3)
>        Hence, the interface between a user-defined object and the
>        interpreter is more natural for a C++ programmer.  4) You do not
>        need @directories because all the behavior of your object in the
>        interpreter is defined entirely in C++ code. In Matlab, the
>        behavior is partly in C++, partly in Script. That is, subsref,
>        subassign and operators must be defined in the Matlab scripting
>        language.
> 

I approached this challenge with a mixture of boldness and trepidation,
hopeful but unsure.  Your quick answer and helpful illustration were just
what we needed to get our feet wet.  

One last question: we haven't found a class hierarchy reference manual. 
The link provided in  Dal Segno al Coda to a Doxygen-generated manual
(http://pareto.uab.es/mcreel/OctaveClassReference/html/index.html) is 404.
 Is there no other?  I have used Doxygen.  Perhaps I could help get one
set up and added to the nightly build.  

Regards, 

--jkl



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to