Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!llslave.llan.ll.mit.edu!53ab2750!not-for-mail
Newsgroups: comp.soft-sys.matlab
Subject: Re: Nested functions and oop
References: <ef2a03b.-1@webx.raydaftYaTP>
From: Peter Boettcher <boettcher@ll.mit.edu>
Message-ID: <m3zmkg953w.fsf@coyote.llan.ll.mit.edu>
Organization: MIT Lincoln Laboratory
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.4 (gnu/linux)
Cancel-Lock: sha1:rUa3Uj5fWODpBM2kqg/owwe9orQ=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 18
Date: Fri, 24 Feb 2006 09:57:39 -0500
NNTP-Posting-Host: 155.34.163.111
X-Complaints-To: news@ll.mit.edu
X-Trace: llslave.llan.ll.mit.edu 1140793059 155.34.163.111 (Fri, 24 Feb 2006 09:57:39 EST)
NNTP-Posting-Date: Fri, 24 Feb 2006 09:57:39 EST
Xref: news.mathworks.com comp.soft-sys.matlab:332907



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


-- 
Peter Boettcher <boettcher@ll.mit.edu>
MIT Lincoln Laboratory
MATLAB FAQ: http://www.mit.edu/~pwb/cssm/