Re: waves branch and wave copy constructor

al davis <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel
Message-ID <[email protected]>
On Saturday 07 March 2015, Felix Salfelder wrote:
> Hi Al.
> 
> On Sat, Mar 07, 2015 at 11:14:23AM -0500, al davis wrote:
> > Look at the unstable branch.  There is an updated
> > dispatcher. This issue is not fixed there, but it explains
> > what is happening.
> 
> ok, i missed these commits. :/
> 
> > Proper fix is that the simple one is the only one.
> 
> i do not see how the current constructor could work for
> non-static dispatchers (as it does not initialize _map
> "cleanly").
> 
> are you suggesting to unconditionally initialize _map, and
> shortcut/remove the link-order sanity check eventually (and
> cross fingers instead)?

yes, in constructor

sanity check could be only in install()

> somehow i think _map should be just a map (rather than map*)
> and the sanitycheck should be done another way...

probably.

sanity check could be a flag, but then it would not still work.


The old implementation works even if construction order is 
improper, which would be lost with the change you suggest.
Not sure if that is bad or not.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.