https://codereview.appspot.com/547620043/diff/545560043/lily/engraver.cc File lily/engraver.cc (right): https://codereview.appspot.com/547620043/diff/545560043/lily/engraver.cc#newcode126 lily/engraver.cc:126: grob = new Item (SCM_EOL); Ugh. How is that ...
On 2020/02/10 21:35:30, hanwenn wrote:
> On 2020/02/10 21:31:46, dak wrote:
> > https://codereview.appspot.com/547620043/diff/545560043/lily/engraver.cc
> > File lily/engraver.cc (right):
> >
> >
>
https://codereview.appspot.com/547620043/diff/545560043/lily/engraver.cc#newc...
> > lily/engraver.cc:126: grob = new Item (SCM_EOL);
> > Ugh. How is that going to work? I am not sure we aren't better off with a
> hard
> > exit. Admittedly, a failed assertion makes little sense after a
> > programming_error: this should have been a hard error in the first place.
> >
> > What is the use case?
>
> Without this, you get a segfault because we take a cdr of an empty list.
Ugh. Ok, that's rather awful. But don't we run into followup errors with that
make_item (SCM_EOL) ?
On 2020/02/10 21:40:03, dak wrote:
> On 2020/02/10 21:35:30, hanwenn wrote:
> > On 2020/02/10 21:31:46, dak wrote:
> > > https://codereview.appspot.com/547620043/diff/545560043/lily/engraver.cc
> > > File lily/engraver.cc (right):
> > >
> > >
> >
>
https://codereview.appspot.com/547620043/diff/545560043/lily/engraver.cc#newc...
> > > lily/engraver.cc:126: grob = new Item (SCM_EOL);
> > > Ugh. How is that going to work? I am not sure we aren't better off with
a
> > hard
> > > exit. Admittedly, a failed assertion makes little sense after a
> > > programming_error: this should have been a hard error in the first place.
> > >
> > > What is the use case?
> >
> > Without this, you get a segfault because we take a cdr of an empty list.
>
> Ugh. Ok, that's rather awful. But don't we run into followup errors with
that
> make_item (SCM_EOL) ?
apparently, no.
it doesn't print anything obviously.
Issue 547620043: engraver: continue when trying to create non-existent Grob
(Closed)
Created 5 years, 1 month ago by hanwenn
Modified 5 years ago
Reviewers: dak
Base URL:
Comments: 1