https://issues.dlang.org/show_bug.cgi?id=18698
Nicholas Wilson changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=18698
Simen Kjaeraas changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #16 from Manu ---
I remember my work-around; I ran the foreach inside a static module
constructor!
>From there I generated my reflection information about the module and
registered it at runtime (in the module
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #15 from Manu ---
Okay, I must have had some workaround... I don't remember what exactly, it was
some years ago. I probably wrapped it in layers until it worked.
Regardless, it should work. My colleague just tried to
https://issues.dlang.org/show_bug.cgi?id=18698
Seb changed:
What|Removed |Added
CC||greensunn...@gmail.com
---
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #13 from Ketmar Dark ---
>Think D2.042
easy deal: http://downloads.dlang.org/releases/2010/
[pts/44:ketmar]:D/_old_dmd% ./dmd2/linux/bin/dmd
Digital Mars D Compiler v2.042
Copyright (c) 1999-2010 by Digital Mars
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #12 from Manu ---
I'd love to paste code... But I wrote it in 2012 at a company I don't work at
anymore.
Think D2.042...
I'll see what I can do when I'm not in bed on a phone. But I have no idea what
now I can
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #11 from Ketmar Dark ---
module test;
foreach(m; __traits(allMembers, test))
{
pragma(msg, m);
}
rdmd --force --compiler=ldc --eval="pragma(msg, __VERSION__);"
2073L
rdmd --force --compiler=ldc -c
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #10 from Manu ---
Remove the 'static' from my OP and you have it.
It definitely worked. They flew me to dconf in 2013 and I gave a whole lecture
about it.
I don't work there anymore, so I don't have the code. I was
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #9 from Ketmar Dark ---
>Non-static foreach doesn't seem to be the same.
example, please. *nothing* was changed in old foreach.
>And it definitely worked at top level.
example, please. i have several different
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #8 from Manu ---
Non-static foreach doesn't seem to be the same. There are new errors with old
usage of foreach instructing to use static foreach instead.
And it definitely worked at top level. I was using it to
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #7 from Ketmar Dark ---
`foreach` never worked at the top level. and non-static forach works *exactly*
the same as before. you are clearly has a very different compiler than the rest
of us.
--
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #6 from Manu ---
I used 'foreach', which doesn't work anymore.
Since static foreach was added, the non-static one doesn't work the same.
static foreach should to all the static stuff that foreach used to do.
--
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #5 from Ketmar Dark ---
[i]>I've been using this for almost 10 years[/i]
static foreach? so you really have a time machine, or a specially-crafted
compiler version you never gave others?! please, can you show us
https://issues.dlang.org/show_bug.cgi?id=18698
greenify changed:
What|Removed |Added
CC||greeen...@gmail.com
---
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #3 from Manu ---
I barely understood a word of that post.
Point is, this used to work... I've been using this for almost 10 years to do a
bunch of codegen for stuff in module scope.
--
https://issues.dlang.org/show_bug.cgi?id=18698
Ketmar Dark changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=18698
--- Comment #1 from Manu ---
I try this:
module test;
alias Members = __traits(allMembers, test);
> Error: basic type expected, not `__traits`
We *really* need to fix that one...
So:
module test;
import std.meta;
18 matches
Mail list logo