www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Simple spell check in new DMD release

reply Joel Christensen <joelcnz gmail.com> writes:
How does it work?

I couldn't even see it. Not in the windows\bin directory or the dmd help.
Mar 08 2010
parent reply "Lars T. Kyllingstad" <public kyllingen.NOSPAMnet> writes:
Joel Christensen wrote:
 How does it work?
 
 I couldn't even see it. Not in the windows\bin directory or the dmd help.
It's built into the compiler. :) test.d: struct S { int fooBar; } void main() { S s; s.fooBaz = 1; } Compilation: dmd test.d test.d(9): Error: no property 'fooBaz' for type 'S', did you mean 'fooBar'? test.d(9): Error: constant s.fooBaz is not an lvalue -Lars
Mar 08 2010
parent Joel Christensen <joelcnz gmail.com> writes:
Thanks Lars, sounds cool. :-)

Lars T. Kyllingstad wrote:
 Joel Christensen wrote:
 How does it work?

 I couldn't even see it. Not in the windows\bin directory or the dmd help.
It's built into the compiler. :) test.d: struct S { int fooBar; } void main() { S s; s.fooBaz = 1; } Compilation: dmd test.d test.d(9): Error: no property 'fooBaz' for type 'S', did you mean 'fooBar'? test.d(9): Error: constant s.fooBaz is not an lvalue -Lars
Mar 08 2010