Re: Compile Time versus Run Time

2017-07-31 Thread inevzxui via Digitalmars-d-learn
On Monday, 31 July 2017 at 15:43:21 UTC, Martin Tschierschke wrote: As a rookie in D programming I try to understand the power of templated functions with compile time parameters. With DMD 2.074 a compile time format (auto output = format!("Print this %s")(var);) was introduced, now we all kno

Re: How to test tuple in chain

2017-07-31 Thread inevzxui via Digitalmars-d-learn
On Monday, 31 July 2017 at 12:23:02 UTC, closescreen wrote: I read my message. Sorry for my poor english and typos. use res[0] and res[1] to get res.status and the res.output.

Re: Specify rhs at initialisation or assignment of typedef' d variable

2017-07-31 Thread inevzxui via Digitalmars-d-learn
On Monday, 31 July 2017 at 07:16:25 UTC, Cecil Ward wrote: Say I have used Typedef! to create some new type and I declare a variable, constant or enum of that type. Is there a way that I can express a literal value on the rhs without having to use casts, as that seems to defeat the point of the