Re: Exceptions in safe D

2012-01-09 Thread Juan Campanas
On Monday, 9 January 2012 at 21:14:05 UTC, Robert Clipsham wrote: Are exceptions in safe D possible? I started trying to make my code @safe (there's no reason why it can't be as far as I'm aware), but I hit the following issue: @safe class MyException : Exception { this() {

Re: Using delegate for WindowProc - possible ?

2011-12-29 Thread Juan Campanas
On Thursday, 29 December 2011 at 20:08:45 UTC, bls wrote: import std.stdio; import std.functional; int main(string[] argv) { extern(Windows) int delegate( int i) dg; alias dg callback; callback = toDelegate(test);

Re: Using delegate for WindowProc - possible ?

2011-12-28 Thread Juan Campanas
On Wednesday, 28 December 2011 at 23:45:05 UTC, Tal wrote: Can I do something like this : __ extern (Windows) LRESULT delegate (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) MyWinProcDelegate; this() {