[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: PCB head fails with ***MEMORY-ERROR***



On Mon, Jun 06, 2011 at 11:00:51AM -0700, Colin D Bennett wrote:
> 
> I do:  C++.  Automatic destruction is your friend.
> 
> <ducks and runs> :-)
>

Maybe for memory -- but for more complex resources this
doesn't work in C++ because there is no way to signal
errors from a destructor.

In fact, if a destructor throws an exception while the
stack is being unwound for a different exception, C++
will get confused and simply kill your program.

So not everything is great, even with C++...

-- 
Andrew Poelstra
Email: asp11 at sfu.ca OR apoelstra at wpsoftware.net
Web:   http://www.wpsoftware.net/andrew/



_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user