Skip to content
New issue

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

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

Already on GitHub? # to your account

REDUCE/into of non-block doesn't insert into target #2061

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

REDUCE/into of non-block doesn't insert into target #2061

Siskin-Bot opened this issue Feb 15, 2020 · 0 comments
Labels
Oldes.resolved Bugs/wishes with Oldes' fixes/features Ren.resolved Test.written Type.bug

Comments

@Siskin-Bot
Copy link
Collaborator

Submitted by: BrianH

REDUCE/into is supposed to insert its resulting value(s) into the target block specified by the out parameter. However, the /into option is ignored when the value argument isn't a block, and REDUCE just returns value as if /into wasn't specified. REDUCE/into should always insert.

>> head reduce/into "a" []
== "a"  ; should be ["a"]

Imported from: CureCode [ Version: r3 master Type: Bug Platform: All Category: Native Reproduce: Always Fixed-in:none ]
Imported from: metaeducation#2061

Comments:


Rebolbot mentioned this issue on Jan 22, 2016:
[Epic] Holes in our evaluation model


Rebolbot added the Type.bug on Jan 12, 2016


Oldes added a commit to Oldes/Rebol3 that referenced this issue on Jun 8, 2018:
FIX: REDUCE/into of non-block doesn't insert into target


Hostilefork commented on Jun 8, 2018:

Had been "resolved" in Ren-C, but there was a bug and no test. Bugfix and a test added:

metaeducation/ren-c@6aab8d2

EDIT: Resolved in Ren-C because it has eliminated the /INTO feature, explanation here


Hostilefork added the Ren.resolved on Jun 8, 2018


# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Oldes.resolved Bugs/wishes with Oldes' fixes/features Ren.resolved Test.written Type.bug
Projects
None yet
Development

No branches or pull requests

2 participants