Joe Neeman schreef:
I would like to add a forbid/force/default datatype to lilypond. In C++, it would be represented by
enum {
        FORBID = -1,
        DEFAULT = 0,
        FORCE = 1
}

and in scheme it would be

(define-public FORBID -1)
(define-public DEFAULT 0)
(define-public FORCE 1)

with the usual ly_scm2XXX functions.

But I have no idea what to call this data type. The best I could come up with (inspired by Drul) is Fordfor (FORbid, Default, FORce). Any better suggestions?

Why an enum? Isn't an SCM symbol ( 'forbid vs. 'force) more appropriate?

The reason for having Drul is that lots of computations are symmetrical in up/down/left/right, so it makes sense to have a representation that you can compute with.

--

Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com



_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to