Re: Number of return values of topological-sort Dr. Arne Babenhauserheide 01 Jul 2024 22:34 UTC
Shiro Kawai <xxxxxx@gmail.com> writes:

> ChezScheme reports an error in that situation, btw.
>
>> (define a (values 1 2))
> Exception: returned two values to single value return context
> Type (debug) to enter the debugger.

Arg, damn.

Then I guess we won’t get around providing two procedures:

    topological-sort ;; returns one value
and
    topological-sort/details ;; returns three values

(open to a better marker than /details — I’m not that happy about the name)

(the current state feels like meandering close to the finish; would like
 to get it done)

Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de