Paren elision on nullary calls
Jarrett Billingsley
kb3ctd2 at yahoo.com
Wed Mar 22 17:35:46 PST 2006
"Scott L. Burson" <Scott_member at pathlink.com> wrote in message
news:dvss27$29p9$1 at digitaldaemon.com...
> In article <dvoeak$2gvi$1 at digitaldaemon.com>, Oskar Linde says...
Your topic made me laugh. It's probably not meant to be funny, but it just
sounds so funny :)
I suppose a (d) would be to create an explicit property syntax, like in C#,
which would eliminate this whole problem.
In addition, I would imagine it'd make it one step closer to being able to
do
obj.prop+= 5;
As if you were to define the property as
class A
{
private int mValue;
public property int prop
{
set(int value)
{
mValue = value;
}
get()
{
return mValue;
}
}
}
The compiler would know that the property is read and write, and would know
exactly how to compile an += expression.
More information about the Digitalmars-d
mailing list