Re: what keeps a COM object alive?

2013-06-12 Thread finalpatch
"Richard Webb" writes: > On Wednesday, 12 June 2013 at 14:41:05 UTC, finalpatch wrote: > >> >> This feels even more cumbersome than in C++ because in C++ we can >> simply >> delete this in the Release() method, there's no need to store a >> refe

Re: what keeps a COM object alive?

2013-06-12 Thread finalpatch
ent in destructor, etc). Its not too hard, > as 'alias this' usage can wrap the pointer's methods easily enough. > > -- finalpatch

what keeps a COM object alive?

2013-06-11 Thread finalpatch
A typical COM server would create a new object (derived from IUnknown), return it to the caller (potentially written in other languages). Because the object pointer now resides outside of D's managed heap, does that mean the object will be destroyed when the GC runs? A normal COM object written

Re: Conditional compilation

2013-06-07 Thread finalpatch
string mixins and template mixins don't work either. On Friday, 7 June 2013 at 12:14:45 UTC, finalpatch wrote: Hi folks, I need to apply different calling conventions to the same interfaces when compiling for different platform. It's something like this: OSX: interface

Conditional compilation

2013-06-07 Thread finalpatch
Hi folks, I need to apply different calling conventions to the same interfaces when compiling for different platform. It's something like this: OSX: interface InterfaceA : IUnknown { extern(C): ... } Windows: interface InterfaceA : IUnknown { ... } I have to add extern(C) on OSX b