https://issues.dlang.org/show_bug.cgi?id=19127
Basile-z changed:
What|Removed |Added
CC||b2.t...@gmx.com
--- Comment #5 from Basile-z ---
https://issues.dlang.org/show_bug.cgi?id=19127
Nick Treleaven changed:
What|Removed |Added
CC||n...@geany.org
--- Comment #4 from Nick Tre
https://issues.dlang.org/show_bug.cgi?id=19127
Iain Buclaw changed:
What|Removed |Added
Priority|P1 |P2
--
https://issues.dlang.org/show_bug.cgi?id=19127
--- Comment #3 from | ---
Oh hey, more fun:
---
module test2;
import std.stdio;
struct S
{
this(int i) { writeln(i); }
}
size_t print(string s = "hello world")
{
writeln(s);
return s.length;
}
size_t x(size_t i) { return i + 1; }
struct
https://issues.dlang.org/show_bug.cgi?id=19127
--- Comment #2 from | ---
Correction: non-CTFEable expressions besides function calls without arguments
cannot be used as UDAs. Some of my testing was incorrect. Had B4S1L3 on IRC
been more professional or friendly, I might have seen that sooner.
--
https://issues.dlang.org/show_bug.cgi?id=19127
--- Comment #1 from | ---
Other things you can use as UDAs:
* modules: @(std.stdio)
* packages: @(std)
* references to members: struct A { int i; } @(A.i)
* uint s; @(s++). This UDA changes every time you access it.
* @(new Object). Likewise.
* stri
https://issues.dlang.org/show_bug.cgi?id=19127
Seb changed:
What|Removed |Added
CC||greensunn...@gmail.com
Hardware|x86_64
https://issues.dlang.org/show_bug.cgi?id=19127
| changed:
What|Removed |Added
Keywords||accepts-invalid, spec
--