Re: naming a data type

2006-05-04 Thread Joe Neeman
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. ___

Re: naming a data type

2006-05-04 Thread Han-Wen Nienhuys
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

naming a data type

2006-05-04 Thread Joe Neeman
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