I'm porting LZHAM to D, and the original used some very unusual
approach for coroutines:
- the whole thing is running inside of a single switch-case
block created by C++ macros
- the function saves some local values
- a macro sets the state variable to the current line number,
returns the
(Also posted this in bugs, but I think it needs to be here)
When I try to print floats and doubles from a fiber it fails with a
segfault, while it is possible to do the same in the main thread.
The expected output of the attached code file:
15
15
Done
However I get:
15
segfault
I am using the
On 10.08.2011 11:53, Danny Arends wrote:
(Also posted this in bugs, but I think it needs to be here)
The bugs newsgroup should be read-only.
Post bugs here: http://d.puremagic.com/issues/
Events in bugzilla gets posted to the bugs newsgroup
OK
Thanks very much, made myself an account there and
re-posted the issue.
Though it still feels like I'm doing something wrong
Danny Arends Wrote:
OK
Thanks very much, made myself an account there and
re-posted the issue.
Not OK. You forgot testcase.