Dan Eble <d...@faithful.be> writes: > Backing up… I believe the compiler will initialize the bits in the > aforementioned variables to zero, but is zero a desirable default for > SCM variables in general, and these in particular? > > It also just sank in that in another thread there was a statement that > treating a SCM as a boolean is "very wrong". That would include a > number of lines in ly_property_lookup_stats and note_property_access > that use these variables.
I have not looked at the respective code yet (short of time right now) but the names of those functions suggests that they might be looking at those variables not as much as Scheme values but rather as internals related to the operation of the Scheme interpreter. If that guess is correct, using SCM_UNPACK would likely better convey the kind of action here (and allow access as a bit pattern/integer/whatever). -- David Kastrup _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel