"string".mixin;

Andre andre at s-e-a-p.de
Wed Mar 6 08:20:39 PST 2013


Am 06.03.2013 17:01, schrieb Andrej Mitrovic:
> On 3/6/13, Andre <andre at s-e-a-p.de> wrote:
>> I wonder why UCFS is not working for the MIXIN statement?
>
> UFCS is a function feature, not a statement feature. And mixin is a
> statement, not a function.
>

I suspected s.th. like that, although it feels really component like 
programming if I could write:
funcA().mixin; // func A returns a const string

or also
immutable char[] texture = "file.b".import;

But yes you are right, they are statements and this would be no clean
UCFS syntax and also huge effort to change I think.

Kind regards
André





More information about the Digitalmars-d-learn mailing list