REBOL 3.0

Comments on: A36 release more useful: fixes CHANGE

Carl Sassenrath, CTO
REBOL Technologies
25-Feb-2009 19:55 GMT

Article #0176
Main page || Index || Prior Article [0175] || Next Article [0177] || 1 Comments || Send feedback

For me, one of the biggest problems I have with R3 is that the change function processed its /part refinement differently than R2.

The A36 release fixes most of these differences. It should cure a number of problems that were related to it, such as invalid results in the replace function.

I should note that the insert and append functions when used with /part may be affected by this change (but they were less of a problem for scripts.)

To compare R3 and R2, I wrote a test that generated more than 43000 unique test cases. All but 492 produced the same results between R3 and R2.

For the exception cases, the R3 results seem more correct than R2.

Here is an example:

head insert/part/dup [a b] "123" 3 3

R3 returned:

["123" "123" "123" a b]

R2 returned:

["123" true 3 "123" true 3 "123" true 3 a b]

The R3 result seems correct. The R2 result seems broken, and I'd consider it a bug.

I think that some of the problem comes from the fact that R2 did not clearly define what /part means in all cases, and there are many.

Anyway, R3 A36 runs a lot better for many scripts. Let me know how it works for you.

1 Comments

Comments:

Kaj
1-Mar-2009 0:31:19
Thanks, this fixed a bug due to REPLACE in the CMS that I ported from R2 to R3.

Post a Comment:

You can post a comment here. Keep it on-topic.

Name:

Blog id:

R3-0176


Comment:


 Note: HTML tags allowed for: b i u li ol ul font span div a p br pre tt blockquote
 
 

This is a technical blog related to the above topic. We reserve the right to remove comments that are off-topic, irrelevant links, advertisements, spams, personal attacks, politics, religion, etc.

REBOL 3.0
Updated 25-Apr-2024 - Edit - Copyright REBOL Technologies - REBOL.net