typedef map<SCM,SCM, SCM_less> Scm_stl_map;
/**
- auto resizing hash table. This should come from GUILE.
+ auto resizing hash table.
1. ALWAYS USE THIS AS VIA A POINTER, i.e.
2. UPON DESTRUCTION, DO
scm_unprotect_object (tab->self_scm_);
+
+
+
+
+ TODO:
+
+ This should come from GUILE. We're typically doing double work,
+ because KEY already is a symbol, and is looked up in a symbol
+ hashtable.
*/
class Scheme_hash_table : private Scm_stl_map
SCM to_alist () const;
DECLARE_SMOBS(Scheme_hash_table,foo);
-
};
#endif /* SCM_HASH_HH */
def calculate (self):
fs = []
-
if len (self.finale) < 2:
fs = self.finale[0]
fs = map (string.atoi, list (fs))
self.clef = fs[1]
self.frames = [fs[0]]
else:
- fs = self.finale[0:2]
+ fs = self.finale[0] + self.finale[1]
fs = map (string.atoi, list (fs))
self.clef = fs[0]