[snip]Currently Unicon supports the following syntax for method/procedure/initially parameters:
var[:type][:defaultvalue]
as it stands, this has a few idiosyncracies:
Because of the ambiguity of x:y syntactically, both of theseGood observation.
(and related) issues are actually pretty hard to 'fix'.
However, if the syntax instead were (say):[snip]
var[:type][=defaultvalue]
then both could be handled, since the test for checking type in (for example):
procedure proc(x:integer, i:integer=1)
Easy to take.
Comments? Not worth it? Too late? Generally a bad idea?I think this has merit. I don't know about impact. I've not used the feature much so it's easy for me to vote for it. However, I suspect that it isn't a huge change.
Better syntax, for example, perhaps:No, definitely not. I liked the first suggestion better!
procedure foo(a(real):2*sin(1.0)) ?
-SteveDavid
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Unicon-group mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unicon-group
