Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String Pick incompatible with block Pick #857

Closed
Siskin-Bot opened this issue Feb 15, 2020 · 0 comments
Closed

String Pick incompatible with block Pick #857

Siskin-Bot opened this issue Feb 15, 2020 · 0 comments
Labels
CC.resolved Issue with CureCode status built, tested or complete Status.important Test.written Type.bug

Comments

@Siskin-Bot
Copy link
Collaborator

Submitted by: Ladislav

pick string 0 and pick block 0 behave differently
>> pick at [1 2 3 4 5] 3 0
== 2

>> pick at "12345" 3 0
== none

Imported from: CureCode [ Version: alpha 54 Type: Bug Platform: All Category: Unspecified Reproduce: Always Fixed-in:alpha 55 ]
Imported from: metaeducation#857

Comments:

Rebolbot commented on May 25, 2009:

Submitted by: BrianH

This is the same as bug #608.


Rebolbot commented on May 27, 2009:

Submitted by: Carl

Which behavior do you prefer?


Rebolbot commented on May 27, 2009:

Submitted by: Ladislav

the former:
>> pick at [1 2 3 4 5] 3 0
== 2

Rebolbot commented on Nov 23, 2010:

Submitted by: Ladislav

in the core-tests suite

Rebolbot added on Jan 12, 2016


Oldes commented on Jun 13, 2018:

I decided to prefer the old Rebol2 version which seems to be more logical when addressing from series' tail:

>> pick at [1 2 3 4 5] 3 0
== none

>> pick tail [1 2 3 4 5] -1
== 5

>> pick tail "12345" -1
== #"5"

Red is using the Rebol2 behaviour too.


Oldes added a commit to Oldes/Rebol3 that referenced this issue on Jun 13, 2018:
FEAT/FIX: Picking the right PICK


Oldes mentioned this pullrequest on Jun 13, 2018:
FEAT/FIX: Picking the right PICK


Hostilefork added a commit to metaeducation/ren-c that referenced this issue on Jun 14, 2018:
Restore Rebol2-era PICKing/PATHing of negative/zero indices


Hostilefork mentioned this pullrequest on Jun 14, 2018:
Restore Rebol2-era PICKing/PATHing of negative/zero indices


@Siskin-Bot Siskin-Bot added the CC.resolved Issue with CureCode status built, tested or complete label May 22, 2020
@Oldes Oldes closed this as completed Aug 19, 2020
Oldes added a commit to Oldes/Rebol3 that referenced this issue Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CC.resolved Issue with CureCode status built, tested or complete Status.important Test.written Type.bug
Projects
None yet
Development

No branches or pull requests

2 participants