Re: GetAndSet function (corresponding to cas function)

2011-12-27 Thread Adrian Mercieca
Hi Andrew, Actually, what would be the equivalent of the 'get' function in D? Thanks.

Re: Is there a way to create an elegant class-member window-function?

2011-12-27 Thread Andrej Mitrovic
I don't know of any /elegant/ way of doing it, but a hash mapping HWND's to Objects is usually how it's done. This is how DFL, DGUI, and Harmonia work. You can check out the function "winDispatch" in my sample win32_window_framework here: https://github.com/AndrejMitrovic/cairoDSamples Alternativ

Re: GetAndSet function (corresponding to cas function)

2011-12-27 Thread Adrian Mercieca
On Mon, 26 Dec 2011 15:06:57 -0600, Andrew Wiley wrote: > On Mon, Dec 26, 2011 at 2:34 PM, Adrian Mercieca > wrote: >> Hi folks, >> >> Would anyone answer me on this please? >> >> To clarify, in Java there is are getAndSet methods on Atomic type >> objects (along with compareAndSet). >> >> I know

Is there a way to create an elegant class-member window-function?

2011-12-27 Thread Tal
The Window-Procedure in the Win32 API must be static \ global function since it cannot take a class-object (the this) parameter. One can of-course use workarounds like a hWnd->object dictionary and such. I wonder if D has a way to elegantly solve it, like create a tiny member function copy for eac

Re: dmd linker (OPTLINK) gives Error 42: Symbol Undefined when using extern

2011-12-27 Thread dmd linker (OPTLINK) gives Error 42: Symbol Undefined when using extern
Thanks, this is it!