[Issue 19127] UDAs seem to be raw AST nodes rather than expressions

2023-10-15 Thread d-bugmail--- via Digitalmars-d-bugs
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 ---

[Issue 19127] UDAs seem to be raw AST nodes rather than expressions

2023-05-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19127 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #4 from Nick Tre

[Issue 19127] UDAs seem to be raw AST nodes rather than expressions

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19127 Iain Buclaw changed: What|Removed |Added Priority|P1 |P2 --

[Issue 19127] UDAs seem to be raw AST nodes rather than expressions

2018-07-29 Thread d-bugmail--- via Digitalmars-d-bugs
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

[Issue 19127] UDAs seem to be raw AST nodes rather than expressions

2018-07-29 Thread d-bugmail--- via Digitalmars-d-bugs
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. --

[Issue 19127] UDAs seem to be raw AST nodes rather than expressions

2018-07-29 Thread d-bugmail--- via Digitalmars-d-bugs
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

[Issue 19127] UDAs seem to be raw AST nodes rather than expressions

2018-07-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19127 Seb changed: What|Removed |Added CC||greensunn...@gmail.com Hardware|x86_64

[Issue 19127] UDAs seem to be raw AST nodes rather than expressions

2018-07-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19127 | changed: What|Removed |Added Keywords||accepts-invalid, spec --