Re: [Patch] 2 enhancement for MatLISP

Raymond Toy <[email protected]> Tue, 03 May 2005 10:56:10 -0400
Newsgroups gmane.lisp.matlisp.user
Message-ID <[email protected]>
>>>>> "Goffioul" == Goffioul Michael <[email protected]> writes:

    Goffioul> 1) Implement "colon"-like behavior of Matlab, but use #\| instead (to
    Goffioul> avoid clash
    Goffioul> with the package separator. So you can write something like: [1|10]
    Goffioul> (sent on matlisp-devel, but there are more people subscribed here)

This is neat.  Does it also work if you have [n|m]?

One thing I've wanted to do with matlisp is to have a matlisp repl
that would be a bit more like matlab's repl.  But I don't really know
how to write parsers and such for that.  

    Goffioul> 2) Implement colon index. A Matlab matrix access like a(:,2) would
    Goffioul> translate in
    Goffioul> MatLISP into (matrix-ref a :all 1). It uses the keyword :all.

I'll have to look into this.  matrix-ref is a method so adding a
keyword might complicate things.

Thanks,

Ray



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20