chiark / gitweb /
src/method-aggregate.lisp: `and' and `or' combinations return decisive value.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 21 Oct 2015 23:46:28 +0000 (00:46 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 25 Nov 2015 10:55:56 +0000 (10:55 +0000)
commitad303446f43c0029e989a8a3d17c4936965d2c43
tree5534aa18855986060564fe519fddf173534a3be9
parent5ce911a098f10e0ac2d5917ed09c4c1114abad47
src/method-aggregate.lisp: `and' and `or' combinations return decisive value.

Rather than canonifying to an integer result, effective methods with
`and' and `or' method combination now return the decisive value -- which
means that they can be used with any scalar return type (so the type
restriction has been removed).

Most significantly, the `or' combination is very useful with pointer
returns: it returns the result of the most specific direct method which
returns a non-null value.
src/method-aggregate.lisp