Thread control in D2

2010-01-02 Thread Daoryn
In Phobos D1 the functions we have the functions "suspend" and "resume", 
however, these functions seem to be gone on Phobos D2. Is there any particular 
reason why this functionality has been removed? What other ways do I have to 
pause/resume a specific thread?


Re: converting a byte array to a struct array?

2010-01-02 Thread Trass3r

grauzone schrieb:
Second, the bug: casting arrays at compiletime seems to behave 
differently from casting at runtime. Casting at compiletime doesn't 
reinterpret cast, it does conversion! Demonstration here: 
http://codepad.org/OGjXADdu


Feel free to file some bug reports.


Just found out this is stated as a feature in the docs.
http://www.digitalmars.com/d/2.0/expression.html#ArrayLiteral

http://codepad.org/bvk63OPw


Re: Is there a reason for default-int?

2010-01-02 Thread Tomek SowiƱski
Don Wrote:
> There's now an Error type in the compiler. It's gradually filtering its 
> way through the compiler.

The one from object.di or the compiler makes up its own dummy type to say 
"something wrong"?


Re: converting a byte array to a struct array?

2010-01-02 Thread grauzone

Trass3r wrote:

grauzone schrieb:
Second, the bug: casting arrays at compiletime seems to behave 
differently from casting at runtime. Casting at compiletime doesn't 
reinterpret cast, it does conversion! Demonstration here: 
http://codepad.org/OGjXADdu


Feel free to file some bug reports.


Just found out this is stated as a feature in the docs.
http://www.digitalmars.com/d/2.0/expression.html#ArrayLiteral


Interesting. then this is an anti-feature too. At least it sounds like a 
very bad idea. The compiler/language tries to be "smart" here, but only 
introduces inconsistencies.



http://codepad.org/bvk63OPw


Call diagram generation

2010-01-02 Thread Strt
How can I generate some sort of call diagram from my D code?