[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
symtab.h: why so many function bodies
From: |
LachlanA |
Subject: |
symtab.h: why so many function bodies |
Date: |
Tue, 23 Feb 2016 20:23:05 -0800 (PST) |
Why are so many of the functions in class symbol_table defined in
symtab.h instead of symtab.cc? Since many files include symtab.h, there
seems to be an unnecessary amount of recompiling when debugging those
functions.
If it is to make the code inline, wouldn't declaring it as inline would be
just as effective?
I can understand all of the tiny functions that simply call
rep->same_function(), but substantial functions like
void clear (scope_id s)
{
if (! (is_hidden () || is_inherited ())
&& s == scope ())
{
if (is_global ())
unmark_global ();
if (is_persistent ())
{
symbol_table::persistent_assign (name, varval ());
unmark_persistent ();
}
assign (octave_value ());
}
}
seem to belong in symtab.cc.
--
View this message in context:
http://octave.1599824.n4.nabble.com/symtab-h-why-so-many-function-bodies-tp4675000.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
- symtab.h: why so many function bodies,
LachlanA <=