The compiler can not find the property function.

2011-05-30 Thread choi heejo
Greeting. I tried to compile this code with DMD 2.053: @property bool isZero(float value) { return value < float.epsilon; } void main() { 0.1f.isZero; readln(); } But the compiler said, no property 'isZero' for type 'float'. I cannot understand this error.

Re: The compiler can not find the property function.

2011-05-30 Thread David Nadlinger
On 5/30/11 5:54 PM, choi heejo wrote: Greeting. I tried to compile this code with DMD 2.053: @property bool isZero(float value) { return value < float.epsilon; } void main() { 0.1f.isZero; readln(); } But the compiler said, no property 'isZero' for type 'float'. I cannot understand this err

Re: The compiler can not find the property function.

2011-05-30 Thread Jonathan M Davis
On 2011-05-30 08:54, choi heejo wrote: > Greeting. > > I tried to compile this code with DMD 2.053: > > @property bool isZero(float value) > { > return value < float.epsilon; > } > > void main() > { > 0.1f.isZero; > readln(); > } > > But the compiler said, > > no property 'isZero' for type 'f

Re: The compiler can not find the property function.

2011-05-31 Thread choi heejo
Thanks for your detailed answer :)