From: Brad Phelan <bradphelan@xtargets.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webx
Newsgroups: comp.soft-sys.matlab
Subject: Re: Nested functions and oop
Message-ID: <47ED96EA67AA74516EA9E9A446F55D11@in.webx.raydaftYaTP>
Date: Fri, 24 Feb 2006 12:35:40 -0500
References: <ef2a03b.-1@webx.raydaftYaTP> <m3zmkg953w.fsf@coyote.llan.ll.mit.edu>
Lines: 24
NNTP-Posting-Host: 195.230.58.11
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:332976



Peter Boettcher wrote:
> "Philippe Maincon" <bogus@see.below.co.za> writes:
> 
>> This gives MATLAB the questionable privilege of being the 1st
>> programming language with 2 competing oop syntaxes! Using this
>> syntax, one looses quite a few MATLAB features, including, as far as
>> I can see, the ability to overload operators, MATLABS's automated
>> calls to "display(o)" (it won't call o.display(), for sure).
> 
> I haven't really tried it myself, but take a look at the code for
> the memmapfile class in a recent MATLAB.  It seems to be using a new
> class syntax that uses the nested function tricks you describe, but
> also has real overloaded display routines and such.
> 
> 

I think it was an accident for that file to not be p-coded. It looks 
like a new unsupported API. I wouldn't garuntee that the API will stay 
the same in future releases. It looks interesting though.

B

--
http://xtargets.com