potassco / clingo

🤔 A grounder and solver for logic programs.
https://potassco.org/clingo
MIT License
606 stars 81 forks source link

Simplify clasp text output customization. #490

Closed BenKaufmann closed 6 months ago

BenKaufmann commented 6 months ago
BenKaufmann commented 6 months ago

However, I think it is not quite the same. This would break systems, which want to print something after clasp printed its model. Now they can only print something before if they want to use the default printer. Systems like clingcon or clingo-lpx won't be affected because there I took over printing completely but it is still a break.

Hm, I'm obviously missing something then.

From my understanding, both versions should do the same.

Could you please help me figure out where I went wrong?

BenKaufmann commented 6 months ago

@rkaminsk Sorry for the noise. Postponing the call to printModelValues() to after the callback has finished is already a breaking change :disappointed:

EDIT: I updated the PR. Does this address your concern?

rkaminsk commented 6 months ago

Now it looks like it was before sans the copied code. I think it can be merged like this.