[GiNaC-list] Python wrapper for a GiNaC derived library

Chris Dams Chris.Dams at mi.infn.it
Fri Aug 4 08:49:03 CEST 2006


Dear Ondrej,

On Thu, 3 Aug 2006, Ondrej Certik wrote:

> I am not sure I understand. Why cannot we use it like in the following
> example? I compiled it and it works as expected:

No it doesn't. You should consider getting an education in C++.

>     //function to do that
>     basic *q=pow(e2,e1);

Now, please turn this into

	while(true) { basic *q = pow(e2, e1); }

and watch you program/computer/any airplane within 20 miles crash. After 
that read about memory leaks.

Best wishes,
Chris



More information about the GiNaC-list mailing list