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

PARSE cannot SET or COPY a PATH! variable directly #2318

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

PARSE cannot SET or COPY a PATH! variable directly #2318

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

Comments

@Siskin-Bot
Copy link
Collaborator

Submitted by: Hostilefork

You cannot use a PATH! as the target for a SET or COPY operation in R3-Alpha's PARSE.

>> obj: make object! [x: none]

>> parse "abc" [copy obj/x to end]
** Script error: PARSE - expected a variable, not: obj/x

>> parse [10] [set obj/x integer!]
** Script error: PARSE - expected a variable, not: obj/x

It would seem that paths should be legal here, as the current workaround requires setting or copying into a temporary variable and then assigning into the object.


Imported from: metaeducation#2317

Comments:


Hostilefork added Type.wish, Red.has.this.too, Ren.important on Aug 5, 2018


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants