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

Copy vectors #25

Closed
xvxx opened this issue Mar 14, 2019 · 2 comments
Closed

Copy vectors #25

xvxx opened this issue Mar 14, 2019 · 2 comments

Comments

@xvxx
Copy link
Collaborator

xvxx commented Mar 14, 2019

The spec says STORE NUMBER-VAR or NUMBER or TEXT-VAR or TEXT IN NUMBER-VAR or TEXT-VAR so vectors are not included. Are the plans to keep it that way?

I get LDPL Error: Malformed statement (copy-v.lsc:9) when running this program:

DATA:
v1 is text vector
v2 is text vector

PROCEDURE:
store "En" in v1:0
store "To" in v1:1

store v1 in v2
@Lartu
Copy link
Owner

Lartu commented Mar 14, 2019

Hi there! Yes it is, I believe one shouldn't mix values and collections, it's just messy. A "copy vector x to y` could be added though. One should take care tp free the memory though.

@xvxx
Copy link
Collaborator Author

xvxx commented Mar 15, 2019

👍 good to know this, thank you!

@xvxx xvxx closed this as completed Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants