"[email protected]" <[email protected]> writes: > On Jul 21, 2011, at 11:10 AM, [email protected] wrote: >> >> I think that is a promising approach. I looked through the code >> thinking about this issue two days ago, and began to look for a way >> to default-initialize the grace_part_ of a Moment to something that >> would sort before any defined value of grace_part_. I do not know >> enough Scheme to know if Rational grace_part_ = -1 / 0 is guaranteed >> to work as -inf. >> > > I'm not sure if I completely get how you want to represent this value > in Scheme, but typing -1/0 into the command line in guile will get you > a numerical-overflow error.
Rational is not a native Scheme type but implemented in flower. Rational grace_part_ = -1 / 0 most certainly will not work. Rational grace_part_.set_infinite (-1) should do. When make-moment is called omitting the grace part of the argument list, this should become the default. -- David Kastrup _______________________________________________ bug-lilypond mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-lilypond
