Re: casting to a voldemort type

2016-03-19 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 19 March 2016 at 15:10:56 UTC, Alex wrote: void* funVoldemort(size_t my_size) The term 'voldemort type' refers to a public type, just an unnamed one. What you have here is a pointer to a private type... and void* is something you often should avoid since the compiler doesn't

casting to a voldemort type

2016-03-19 Thread Alex via Digitalmars-d-learn
Finally. A question about Voldemort types :) I have the following class, with an accompanying function. Skip the code to the link for a runnable version. /*--- code begin ---*/ class roof { int huhu = 9; void* funVoldemort(size_t my_size) { auto gg = huhu; if(my_size