Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: What kind of bug is this?

From: rotenca::telvia::it at: 31-Jul-2001 12:53

> What kind of bug is this?
Look at this:
>> a: [ 1 insert head a [1 +]]
== [1 insert head a [1 +]]
>> reduce a
== [1 [1 insert head a [1 +]]]
>> reduce a
== [2 [1 + 1 insert head a [1 +]]]
>> reduce a
== [3 [1 + 1 + 1 insert head a [1 +]]]
>> reduce a
== [4 [1 + 1 + 1 + 1 insert head a [1 +]]]
>> reduce a
== [5 [1 + 1 + 1 + 1 + 1 insert head a [1 +]]]
>> reduce a
== [6 [1 + 1 + 1 + 1 + 1 + 1 insert head a [1 +]]]
>> reduce a
== [7 [1 + 1 + 1 + 1 + 1 + 1 + 1 insert head a [1 +]] [1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 insert head a [1 +]] [1 +]] So Rebol can become confused if evaluation changes the block it is evaluating. I tried many iterations with many variations and Rebol often crashed. --- Ciao (my english is bad) Romano