Notice/Warning on narrowStrings .length

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Fri Apr 27 22:43:29 PDT 2012


"H. S. Teoh" <hsteoh at quickfur.ath.cx> wrote in message 
news:mailman.1.1335507187.22023.digitalmars-d at puremagic.com...
>
> For example, just today I was playing around with a regex-based version
> of formattedRead: you pass in a regex and a bunch of pointers, and the
> function uses compile-time introspection to convert regex matches into
> the correct value types. So you could call it like this:
>
> int year;
> string month;
> int day;
> regexRead(input, `(\d{4})\s+(\w+)\s+(\d{2})`, &year, &month, &day);
> [...]

That's pretty cool.




More information about the Digitalmars-d mailing list