2 scope.cc -- implement Scope
4 source file of the GNU LilyPond music typesetter
6 (c) 1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
11 #include "dictionary-iter.hh"
13 #include "identifier.hh"
18 bool init_b = false; // ugh
19 for (Dictionary_iter<Identifier*> ai (*this); ai.ok(); ai++)
21 if (ai.val()->init_b_ == init_b)
23 DOUT << ai.key() << "=";
31 for (Dictionary_iter<Identifier*> ai (*this); ai.ok(); ai++)
33 DOUT << "deleting: " << ai.key() << '\n';
38 Scope::Scope (Scope const&s)
39 : Dictionary<Identifier*> (s)
41 for (Dictionary_iter<Identifier*> ai (s); ai.ok(); ai++)
43 (*this)[ai.key ()] = ai.val ()->clone ();