how do I tell if something is lvalue?

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 1 08:58:09 PST 2016


On 1/31/16 5:12 PM, Meta wrote:
> On Sunday, 31 January 2016 at 22:11:45 UTC, Steven Schveighoffer wrote:
>> On 1/31/16 4:48 PM, Meta wrote:
>>
>>>
>>> This seems to do the trick, although I haven't extensively tested it.
>>> There's probably a simpler way but this is the first thing I could come
>>> up with that works.
>>>
>>>
>>
>> Thanks! I was surprised this is not straightforward.
>>
>
> It seems to me like it would be a useful addition to __traits.

Yeah, the compiler probably has this handy.

https://issues.dlang.org/show_bug.cgi?id=15634

-Steve


More information about the Digitalmars-d-learn mailing list