Dan Eble <[email protected]> writes:

> On May 27, 2015, at 05:45 , David Kastrup <[email protected]> wrote:
>> 
>> +(define %parser (make-fluid))
>> +(define %location (make-fluid))
>
>> +(define-public (*parser*) (fluid-ref %parser))
>> +(define-public (*location*) (fluid-ref %location))
>
> Are the decorations on these names ad-hoc or are you following a
> convention?  (I’m asking for my own edification.)

We are using them for parameters/accessors elsewhere:

dak@lola:/usr/local/tmp/lilypond$ git grep '(\*[a-z]\+\*)' origin
origin:Documentation/misc/ChangeLog-2.10:       (*parser*) lookup if (*parser*) 
!= #f.
origin:scm/define-music-display-methods.scm:            (if force-line-break (+ 
2 (*indent*)) 1)
origin:scm/define-music-display-methods.scm:            (parameterize 
((*indent* (+ 2 (*indent*))))
origin:scm/define-music-display-methods.scm:            (if force-line-break 
(*indent*) 1))))
origin:scm/define-music-display-methods.scm:  (parameterize ((*indent* (+ 3 
(*indent*))))
origin:scm/define-music-display-methods.scm:                        
(parameterize ((*indent* (+ (*indent*) 2)))
origin:scm/define-music-display-methods.scm:                                    
                 (*indent*)
origin:scm/define-music-display-methods.scm:                        (*indent*)))
origin:scm/display-lily.scm:  (format #f "~%~v_" (max 0 (1- (*indent*)))))
origin:scm/song.scm:                   #:unfinished (and (not (*syllabify*)) 
(find-child-named music 'HyphenEvent))

Doing a bit of web searching, I haven't been able to find use of this
convention outside of LilyPond.

-- 
David Kastrup

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

Reply via email to