Hi

I worked on operator overloading for Unicon while I was at NMSU.

I believe my changes are checked into the Unicon cvs repository on sourceforge.
Operator overloading is not turned on be default (yet) rightly as you will see from the explanation below.

To turn on operator overloading get the sources from cvs and

1. go to src/h/define.h and uncomment OVLD
2. build both icont and iconx.

See the attached file uniconovld.icn for an example of how to use the operator overloading feature. I have also attached a file that has the map of operators to method names.

The problem with turning this on by default is that operator overloading makes incompatible changes the icon runtime. This means that if you are using the runtime capable of operator overloading you cannot use it to execute unicon programs built with a unicon compiler that does not comprehend operator overloading. Please note there are no semantic changes to the compilation process. Existing unicon code will work fine with the new runtime as long as it is compiled with the right compiler.

Please let me know if anyone needs any help in using this feature


regards
Sudarshan

On 9/20/06, Dennis Darland <[EMAIL PROTECTED]> wrote:
I was working on an unicon arbitrary pecision math class a couple years ago & had it mostly working. But I would like to use unicon operators.  I think I read there was a plan for them.  Is there such a think or is it in the works? ( Like c++ operators.)


Dennis J. Darland
Treasurer, The Bertrand Russell Society, Inc.
[EMAIL PROTECTED]
Solve Systems of Ordinary Differential Equations(SODE)
(It's a free, open source, program.)
http://sode.sourceforge.net


Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group





--
Sudarshan Gaikaiwari
www.sudarshan.org
[EMAIL PROTECTED]

Attachment: uniconovld.icn
Description: Binary data

Attachment: Operator Method Name map
Description: Binary data

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to