[Issue 16291] phobosinit fails to register encodings on individual tests

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jul 19 10:28:04 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16291

--- Comment #8 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
>I should tell you that cycle detection is currently broken
yes, i know. but std.encoding seems to not import anything that may indirectly
import it back, and it *seems* to not break anything for my system.

i'm not insisting on that solution, though. maybe we can use some kind of "lazy
initialization" scheme instead, by writing a weird hack: on the first call to
`EncodingScheme.create()` we can find std.encoding in module list, and register
every encoder it has. i think this *may* work (if linker will not throw away
"unused classes"). i probably will try to write such code to see if it will
work.

--


More information about the Digitalmars-d-bugs mailing list