bloom-lang / bud

Prototype Bud runtime (Bloom Under Development)
http://bloom-lang.net
Other
854 stars 59 forks source link

Behavior of << inside Bloom blocks #139

Closed neilconway closed 13 years ago

neilconway commented 13 years ago

Using this program, https://gist.github.com/905055 , the wrong results are produced:

/Users/neilc/x.rb:41:in `assert_equal': a = 1, b = 0 (RuntimeError)
    from /Users/neilc/x.rb:46

Interestingly, if you uncomment the commented-out lines, the program produces the correct results.

neilconway commented 13 years ago

Basic problem here is that << within a Bloom block is currently buggy. Our options are either to disallow it or make it work correctly.

neilconway commented 13 years ago

Reject "<<" operators in Bloom rule blocks.

Closed by cbf32f8cc138ff3fb91a6f7cd7d3b0c602521898.