On 13 August 2011 14:56, Damien Pollet <damien.pollet@gmail.com> wrote:
On 13 August 2011 09:05, Lukas Renggli <renggli@gmail.com> wrote:
I don't really see the point of PPElementParser? Why don't you just use
  aParser answer: anObject
something like this ? this temp feels strangeâ¦
PPPredicateObjectParser class >> matching: elementParser message: aString     | result |     ^ (self             on: [ :each |                 result := elementParser parse: each.                 result isPetitFailure not ]             message: aString)         answer: result
No. Wrapping a parser into a PPPredicateObjectParser really doesn't make sense. Can you give a real-world example that shows what you want to do? Do you just want to customize the error message if elementParser fails? Lukas -- Lukas Renggli www.lukas-renggli.ch