[GiNaC-list] Include Guards

Jason Dusek jason.dusek at gmail.com
Fri Jan 21 17:18:03 CET 2005


> using "extern ex x;" in the header file and "ex x(symbol("x"));"
> in the cpp file is more efficient.

Why is it more efficient?

_jason

On Thu, 20 Jan 2005 11:10:20 +0100 (CET), Chris Dams
<C.Dams at science.ru.nl> wrote:
> 
> 
> On Wed, 19 Jan 2005, I wrote:
> 
> > The simplest way is to just declare symbols in header files (i.e.,
> > symbol x;) and to define them in one cpp-file (i.e., symbol x("x");). That
> > is what I generally do. I am not a big fan of factories either.
> 
> Of course, I should have said "extern symbol x". However, using "extern ex
> x;" in the header file and "ex x(symbol("x"));" in the cpp file is more
> efficient.
> 
> _______________________________________________
> GiNaC-list mailing list
> GiNaC-list at ginac.de
> http://thep.physik.uni-mainz.de/mailman/listinfo/ginac-list
> 


-- 
_jason



More information about the GiNaC-list mailing list