I dun a DIP, possibly the best DIP ever
Steven Schveighoffer
schveiguy at gmail.com
Wed Apr 22 15:01:21 UTC 2020
On 4/22/20 10:37 AM, Manu wrote:
> One thing I noticed, in order to use a property on a static map
> expansion (i.e. call a function with the resulting sequence, or access
> .length), you will need extra parentheses to distinguish the ... token
> from the . token.
>
>
> > call a function with the resulting sequence
>
> Not sure what you mean exactly?
Like this works today:
AliasSeq!(1, 2, 3, 4).text;
Similarly, if you wanted to use some tuple expansion:
(transform!T...).text;
you need the parentheses, or else you have transform!T....text.
Or else if you want to get the length, you have:
(transform!T...).length
> Is there an easier/better way to do this with the new feature?
>
>
> Can you show an example? Maybe the precedence is wrong?
I think that question was left over from something else that I deleted
before posting, the .prop just needs clarification.
-Steve
More information about the Digitalmars-d
mailing list