[F-Script-talk] Re: FSBOOLEAN return values
Brought to you by:
pmougin
From: Philippe M. <pm...@ac...> - 2005-01-10 16:16:33
|
Hi Alun, Thanks a lot for sharing with us your experience with F-Script. I'm using more and more the same embedding approach in the implementation of F-Script itself when I have array-oriented code to write and F-Script allows for easier and more readable implementation. Interesting to know that your are an ex-Object People, which at some point was sort of a mythical company in the object-oriented world. I remember I was kind of fascinated by this company and its Toplink product. Now, addressing you problem with FSBoolean, the approach described by Ken is the right one. You can use it with a category, as shown, or, of course, directly in your methods. For example: - (BOOL)hasProposalForSite:(Site *)s { return [[[@"[:proposals :s| proposals site = s \\ #|]" asBlock] value: proposals value:s] isEqual:[FSBoolean fsTrue]]; } Best, Philippe Mougin |