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

[REBOL] Newcomer difficulties with Rebol

From: gchillemi:aliceposta:it at: 17-Dec-2007 6:55

As Newcomer I have faced many difficulties with Rebol due different working in varius situation or different expectations. You must read a lot before understanding this or that different behavior The first time I faced a conceptual problem has been in Forall and Forskip. They both returned the series at its tail. I expected to have the series at its starting point when forall and forskip have been started. The second different working is between using numerals or path values on series: a: "12345" -> probe a/5 returns 5, a/22 returns none, seventh a returns "Out of range or past end", I expected a -none- value too. The third is a very big difference between what I expect and what I get. I am talking about copy/part. a: "12345" probe index? find a => 3 probe copy/part a 3 => "123" probe copy/part a find a "3" => "12" I expected 3 being the return value of -find a "3"- as it is the index of the series returned by the fuction find but Rebol works differently considering it the "end position" The fourth learning difficulty arised on string inside objects and functions they are static and global. I must use COPY to have another issue of the string. Instead I would expect to have it initialized each I declare a: mystring . For the same reason I must use COPY/DEEP to copy sub-blocks inside block of data. Giuseppe Chillemi