Re: Casting a class variable to void*

2016-04-10 Thread ag0aep6g via Digitalmars-d-learn
On 11.04.2016 00:06, Manuel Maier wrote: So, is this a bug, or is it intended behavior? In case of the latter, I'd gladly add it to the documentation. Looks like a bug to me. And it's already been filed: https://issues.dlang.org/show_bug.cgi?id=13392

Casting a class variable to void*

2016-04-10 Thread Manuel Maier via Digitalmars-d-learn
I'm not sure whether I've found a bug or if I found some very strange but intended behavior. If it is indeed intended behavior, I'd like to know the rationale behind it because this one surprised me a lot when I found it out after 16+ hours of debugging... Have a look at this code snippet: