Converting function pointers to delegates

Adam D. Ruppe destructionator at gmail.com
Tue Apr 15 05:49:59 PDT 2014


On Tuesday, 15 April 2014 at 12:05:09 UTC, Artur Skawina wrote:
> He obviously meant that you can't get a pointer to the object, 
> that the> reference points to, just by casting and w/o 
> address-of.

Yea, you can cast a class reference to void* (which does include
this inside a class), but not a ref storage class thingy which
includes this inside a struct. Since the topic at hand was a
struct I got a bit sloppy in my wording.

So I'd say we're all partially right, just in different contexts
:)


More information about the Digitalmars-d-learn mailing list