Using memberspaces for a property-like syntax and more

TommiT tommitissari at hotmail.com
Sat Feb 2 11:37:43 PST 2013


On Saturday, 2 February 2013 at 18:37:11 UTC, TommiT wrote:
> On Saturday, 2 February 2013 at 17:12:33 UTC, Simen Kjaeraas 
> wrote:
>> This seems to be basically what I outlined in issue 5158[1].
>>
>>
>> [1] http://d.puremagic.com/issues/show_bug.cgi?id=5158
>
> I don't understand your proposal. Are you saying you want the 
> following code to compile?
>
> void main()
> {
>     int a;
>     void opAssign(int arg) {a = arg;} = 4;
> }
>
> And what would that code do? Also, how would you use your 
> proposal to implement memberspaces?

I'm sorry, I mixed templates with template mixins. But I still 
don't understand your proposal, so if you could elaborate on it a 
bit more.


More information about the Digitalmars-d mailing list