Looking to get typeof parseXML return value
Chris Piker
chris at hoopjump.com
Tue Sep 7 05:00:50 UTC 2021
On Tuesday, 7 September 2021 at 04:40:25 UTC, jfondren wrote:
> typeof(parseXML!simpleXML("")) xml;
Hey, I like this trick!
I was wondering what to use for the const(char)[] variable in the
typeof statement. It's blindingly obvious in retrospect.
Wouldn't work so well if there wasn't a literal for the input
data range type.
Sorry, didn't see your response before I posted mine, but thanks
for the tip anyway :)
More information about the Digitalmars-d-learn
mailing list