"H. S. Teoh" <[email protected]> wrote in message 
news:[email protected]...
>
> 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