"H. S. Teoh" <hst...@quickfur.ath.cx> wrote in message 
news:mailman.1.1335507187.22023.digitalmar...@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.


Reply via email to