Path: csiph.com!feeder.erje.net!2.us.feeder.erje.net!news.glorb.com!usenet.stanford.edu!not-for-mail From: Niels Grewe Newsgroups: gnu.gnustep.bug Subject: [bug #46418] NSPredicate is missing a predicateWithBlock implementation Date: Wed, 09 Mar 2016 14:10:00 +0000 Lines: 26 Approved: bug-gnustep@gnu.org Message-ID: References: <20151110-233336.sv97985.59859@savannah.gnu.org> <20160308-222740.sv337.89484@savannah.gnu.org> <20160309-105932.sv69275.8610@savannah.gnu.org> <20160309-132216.sv69275.31063@savannah.gnu.org> <20160309-132558.sv69275.59673@savannah.gnu.org> <20160309-140237.sv337.22619@savannah.gnu.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: usenet.stanford.edu 1457532616 15541 208.118.235.17 (9 Mar 2016 14:10:16 GMT) X-Complaints-To: action@cs.stanford.edu To: Richard Frith-Macdonald , Niels Grewe , Vincent Woo , bug-gnustep@gnu.org Envelope-to: bug-gnustep@gnu.org X-PHP-Originating-Script: 0:sendmail.php X-Savane-Server: savannah.gnu.org:443 [208.118.235.70] X-Savane-Project: gnustep X-Savane-Tracker: bugs X-Savane-Item-ID: 46418 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4 X-Apparently-From: 91.44.207.123 (Savane authenticated user thebeing) In-Reply-To: <20160309-140237.sv337.22619@savannah.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:6::a X-BeenThere: bug-gnustep@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNUstep programming environment List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.gnustep.bug:4103 Follow-up Comment #5, bug #46418 (project gnustep): > But ... the second one doesn't pass in OSX-10.11.3 :-( A bug in the OS X implement IMHO (I'm in the process of preparing the bug report): On OS X [predicate evaluateWithObject: o substituationVariables: v] works. It is supposed to be a shorthand for [[predicate predicateWithSubstitutionVariables: v] evaluateWithObject: o] (optimising away the allocation of the intermediary object). It looks like they didn't implement that for block predicates, but we need it to work because we don't have -evaluateWithObject:substitutionVariables: yet. _______________________________________________________ Reply to this item at: _______________________________________________ Nachricht gesendet von/durch Savannah http://savannah.gnu.org/