legal identifier check

Daniel Keep daniel.keep.lists at gmail.com
Sun May 31 08:12:50 PDT 2009



Saaa wrote:
> ...
> 
> I know use this (in the ddata thread above):
> 
> foreach(char c; identifier)
> {
>  if( !inPattern( c, `_a-zA-Z0-9`) )
>  {
>   return false;
>  }
> } 

That's not correct.  http://digitalmars.com/d/1.0/lex.html#identifier


More information about the Digitalmars-d-learn mailing list