DUAL FEATURE REQUEST: let "with" take a struct pointer and evaluate to its parameter
downs
default_357-line at yahoo.de
Fri Dec 21 10:44:38 PST 2007
Bill Baxter wrote:
> downs wrote:
>> The first part of the feature request is to allow "with" to take a
>> pointer to a struct as a parameter.
>
> +1 definitely. I think I've hit that one before too and it made me go
> huh? wha?
>
>>>> <Ge0rG> so you want 'auto foo = with(new myStruct) { bar = 23; baz =
>>>> 42; ... }'?
>
> I'm -1 on that.
Actually, I tend to agree. The first one is what's really important to me; the second is more like a "wouldn't it be neat if" thing.
Personally, I think it's kinda hard to understand as well. Makes me wonder why I proposed it in the first place.
Eh, well :)
--downs
More information about the Digitalmars-d
mailing list