Re: Hacking BeanShell with JavaCC

fschmidt <[email protected]> Thu, 17 Apr 2008 10:08:55 -0700 (PDT)
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>

Daniel Leuck wrote:
> 
> Note that my <> example is not operator overloading.  Its an example
> of implementing a new operator.
> 

Yes but to create a MATLAB replacement, you need operator overloading too,
so that you can do things like add matrices.

And by the way, "<>" is used for "not equal" in Basic, so maybe "<=>" would
be better for "equivalent", and this is the mathematical symbol for
equivalent propositions.  Then "<>" could be used for "not equivalent" (less
than or greater than).



> I could implement generic operator overloading, but that might be a
> long blog post :-)
> 

But this might be quite useful.  It would be great to see a discussion about
what is the best way to do generic operator overloading, and then to
implement this in BeanShell.

-- 
View this message in context: http://www.nabble.com/Hacking-BeanShell-with-JavaCC-tp16715411p16747447.html
Sent from the BeanShell - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone