exception types & objects

div0 div0 at sourceforge.net
Tue Oct 19 12:15:46 PDT 2010


On 19/10/2010 20:03, Denis Koroskin wrote:
> On Tue, 19 Oct 2010 22:54:33 +0400, Kagamin <spam at here.lot> wrote:
>
>> spir Wrote:
>>
>>> The example uses an Excpetion type, but the somewhat comment
>>> contradicts it. Can one really use any kind of object as exception?
>>
>> ps it's fun to throw strings in javascript, try it.
>> :3
>
> I've been throwing const char* in C++:
>
> try {
> throw "not implemented";
> } catch (const char* message) {
> printf("Exception: %s\n", message);
> }

You evil man.

-- 
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk


More information about the Digitalmars-d-learn mailing list