Variable notation
Joan
paras456azerionet at gmail.com
Sun Dec 1 12:54:27 UTC 2024
```import std.stdio;
enum DO_NOT_CHECK;
class Test {
int n;
int x;
@DO_NOT_CHECK int t;
this() {
n = 1;
x = 2;
t = 3;
}
}
void Check(T)(T obj) {
static if (is(T : Object)) {
auto members = obj.tupleof;
foreach (i, member; members) {
how do i get all the members that are not marked by
DO_NOT_CHECK ?
}
}
}
void main() {
auto test = new Test();
Check(test);
}
```
Hello, how do i get all the members that are not marked by
DO_NOT_CHECK on Check() ?
More information about the Digitalmars-d
mailing list