Re: store bug

new topic     » goto parent     » topic index » view thread      » older message » newer message
jmduro said...

Wen I run following code I get a wrong result:

include std/sequence.e 
include std/pretty.e 
include std/console.e 
 
sequence s = {"first", {}} 
sequence t = store(s, {2}, {"second", {}}) 
 
pretty_print(1, t, {3}) 
puts(1, "\n") 
maybe_any_key() 

{ 
  "first", 
  { 
    "first", 
    { 
      "second", 
      "" 
    } 
  } 
} 

It looks like this has been corrected. When I run your code I get the expected result.

{ 
  "first", 
  { 
    "second", 
    "" 
  } 
} 

I used both Euphoria 4.1 and the current source build. I think this might be the commit that fixed it: 7ea6c0a.

Are you using 4.1? Or maybe using 4.0 includes with 4.1 binaries?

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu