winsamp.d and -O
Dmitry Olshansky
dmitry.olsh at gmail.com
Tue Jun 14 15:33:39 PDT 2011
On 15.06.2011 2:23, Andrej Mitrovic wrote:
> On 6/15/11, Dmitry Olshansky<dmitry.olsh at gmail.com> wrote:
>> I think generic 'windows sample' is _not_ about null pointer dereference
> Actually there's another problem. In WinMain, this line:
> catch (Exception e) // catch any uncaught exceptions
>
> should be:
> catch (Throwable e) // catch any uncaught exceptions
>
> That way when a null is dereferenced you'll have the exception caught
> and get a nice error message. That's what this sample was supposed to
> demonstrate. I'll have it updated and make a pull.
>
Makes sense. I'd better stop arguing this cause, and read more on that
awesome DIP11 ;)
>> (though arguably one can consider Windows as a whole an example on GP
>> fault and null pointer dereference in particular).
> I don't follow.
nvm, a pun that apparently out of date.
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list