digitalmars.D.bugs - Properties requiring () in some cases
class Foo
{
static bit prop() { return false; }
}
int main()
{
if(1 && Foo.prop) { } // bit() does not have a boolean value
switch(Foo.prop) { } // 'prop' is not an integral type
return 0;
}
The first 2 statements in main() only work if Foo.prop() is used. I think it
thinks it's a function address like old times.
Jul 08 2004
Also:
class Foo
{
static char[] charprop() { return null; }
}
int main()
{
foreach(char ch; Foo.charprop) { } // foreach: char[]() is not an
aggregate type
return 0;
}
Jul 08 2004
These are now taken care of. Thanks, -Walter
Dec 29 2004









"Vathix" <vathixSpamFix dprogramming.com> 