I've spent about six hours transforming the code into the proposed union of special_or_note. Because of the way specials bubble up from note to glyph to element, I had to add conditional statements based on type to copy the correct structures. I'm basically building a polymorphic structure by hand.
I don't think further work on this activity is worth it. Too many bugs will be introduced in the complete transformation, and the structure will ony become slightly more intelligible when debugging at a significant cost to complexity. However, I do think it's worth considering a switch to an object oriented language rather than trying to build polymorphism by hand. If we decide to do that, then re-coding the structures would be worth it. Thoughts? Henry _______________________________________________ Gregorio-devel mailing list [email protected] https://mail.gna.org/listinfo/gregorio-devel
