[Issue 9980] [CTFE] Allow interpreting function with variable arguments when their values aren't used
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 23 02:59:22 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9980
--- Comment #1 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-04-23 13:59:21 MSD ---
E.g. this will allow such `isLvalue` library implementation:
---
bool isLvalue(T)(auto ref T t)
{ return __traits(isRef, t); }
void main()
{
int i;
static assert( isLvalue(i));
static assert(!isLvalue(i + 1));
}
---
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list