Steve,

I wasn't even aware of this whole issue before reading your mail!
I didn't know Unicon supported type specifications in parameters.
That can be very handy in some situations.
Without knowing anything about implementation pros and cons, I would vote
for your

var[:type][=defaultvalue]

proposal. I like that syntax.

Kostas

This isn't particularly critical, but I thought people
might want to think about this before Unicon's syntax
becomes locked-in (hmmm, maybe it's too late already...)

Currently Unicon supports the following syntax for
method/procedure/initially parameters:

var[:type][:defaultvalue]

as it stands, this has a few idiosyncracies:

    (a) Because you cannot distinguish the name of a type
         from a program variable, things like:

             procedure foo(a:table)
             record A(x,y,z)
             procedure foo(a:A)

don't work as you might expect.


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

Reply via email to