Thread overview
Properties requiring () in some cases
Jul 08, 2004
Vathix
Jul 08, 2004
Vathix
Jul 21, 2004
Vathix
Dec 30, 2004
Walter
July 08, 2004
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.


July 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;
}


July 21, 2004
In constructor parameters, too..


December 30, 2004
These are now taken care of. Thanks, -Walter