This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Why do some entities need () around them ...


Richard Sharpe writes:

> Why does a name like $xyz$, when being defined, need () around it ..
>
> Ie
>
> (define ($object-titles-after$) (list (...) (...) ...))
>
> 'cause (define $object-titles-after$ ...) does not work!

Because the $xyz$ things are (by convention) functions, not scalars.

    (define ($object-titles-after$) (list (...) (...) ...))

is equivalent to

    (define $object-titles-after$)
        (lambda () (list (...) (...) ...)))

This would presumably allow you to give these parameters context-dependent
values in some way.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]