Opaque handles...

Kagamin spam at here.lot
Thu Sep 19 02:17:07 PDT 2013


On Wednesday, 18 September 2013 at 16:05:00 UTC, Manu wrote:
> struct MyThing { void* handle; }
>
> I kinda hate this. the struct keyword totally gives the user 
> the wrong
> impression, and people have a natural instinct to avoid passing 
> structs
> around by value, which is exactly how these objects should be 
> handled...

You've got some wrong people, lol. How do they work with smart 
pointers?


More information about the Digitalmars-d mailing list