lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bar-line interface part 2/2: New bar line definition standard (issue


From: David Kastrup
Subject: Re: bar-line interface part 2/2: New bar line definition standard (issue 6498052)
Date: Mon, 01 Oct 2012 11:16:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Marc Hohl <address@hidden> writes:

> Am 01.10.2012 11:00, schrieb address@hidden:
>>
>> Or define-session-public.  define-session will be for data that is reset
>> per session, but not publicly accessible.  Which is probably what you
>> want if all the accessor functions are already in your .scm file.
> I think that -public is needed for data to be accessible for a user?
> Or is it sufficient that the function accessing the data is -public?

"public" just publishes the variable binding.  The binding does not need
to get published to be accessible to functions in the same source file:
the binding is only needed when the functions referring to it are
_defined_, not when they are being used.

Of course, you can't do session management on a variable you can't even
access, but publishing the variable for everybody else to tamper with is
not going to make our problem smaller.  So we need to be able to do
session-management on the variable _without_ publishing it, and that
means in the module where it is being defined.  And the easiest way is
to have separate defining commands for that purpose.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]