On Thu, 4 May 2006 21:13, Han-Wen Nienhuys wrote:
> Joe Neeman schreef:
> Why an enum?
Because C++ has damaged my brain and I'm used to thinking of discrete types as
enums/integers.
> Isn't an SCM symbol ( 'forbid vs. 'force) more appropriate?
Yes it is, thanks.
___
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)
wi
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_scm2XX