OMeta2 minor bug

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

OMeta2 minor bug

douglas mcpherson
Hi,

I think there's a small problem with the semantic predicate of the range rule:

range :a :b =

anything:x ?[a <= x & x <= b] -> [x]

A pair of parenthesis fixes the problem:

range :a :b =

anything:x ?[a <= x & (x <= b)] -> [x]

Thanks,
Doug


Reply | Threaded
Open this post in threaded view
|

Re: OMeta2 minor bug

Yoshiki Ohshima-3
Yup.  It's been a known issue
(http://lists.squeak.org/pipermail/squeak-dev/2012-August/165622.html)
but it has not been pushed to the package.

On Wed, Oct 31, 2012 at 1:53 PM, Douglas McPherson <[hidden email]> wrote:

> Hi,
>
> I think there's a small problem with the semantic predicate of the range
> rule:
>
> range :a :b =
>
> anything:x ?[a <= x & x <= b] -> [x]
>
> A pair of parenthesis fixes the problem:
>
> range :a :b =
>
> anything:x ?[a <= x & (x <= b)] -> [x]
>
> Thanks,
> Doug
>
>
>



--
-- Yoshiki

Reply | Threaded
Open this post in threaded view
|

Re: OMeta2 minor bug

Hans-Martin Mosner
In reply to this post by douglas mcpherson
Am 10/31/2012 09:53 PM, schrieb Douglas McPherson:
Hi,

I think there's a small problem with the semantic predicate of the range rule:

range :a :b =

anything:x ?[a <= x & x <= b] -> [x]

A pair of parenthesis fixes the problem:

range :a :b =

anything:x ?[a <= x & (x <= b)] -> [x]

Thanks,
Doug



    
Thanks, looks like I didn't notice when this was reported before.
I've fixed the package.

Cheers,
Hans-Martin


Reply | Threaded
Open this post in threaded view
|

Re: OMeta2 minor bug

Yoshiki Ohshima-3
Thank you!

On Thu, Nov 1, 2012 at 4:11 AM, Hans-Martin Mosner <[hidden email]> wrote:

> Am 10/31/2012 09:53 PM, schrieb Douglas McPherson:
>
> Hi,
>
> I think there's a small problem with the semantic predicate of the range
> rule:
>
> range :a :b =
>
> anything:x ?[a <= x & x <= b] -> [x]
>
> A pair of parenthesis fixes the problem:
>
> range :a :b =
>
> anything:x ?[a <= x & (x <= b)] -> [x]
>
> Thanks,
> Doug
>
>
> Thanks, looks like I didn't notice when this was reported before.
> I've fixed the package.
>
> Cheers,
> Hans-Martin
>
>
>



--
-- Yoshiki