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

Fix map collection #29

Closed
jleeothon opened this issue Nov 30, 2014 · 0 comments
Closed

Fix map collection #29

jleeothon opened this issue Nov 30, 2014 · 0 comments

Comments

@jleeothon
Copy link
Member

Two examples here:

  • Printing a map

Source:

map{int16, string} hakkaNumbers: 1: "yit", 2: "gni", 3:"sam";
"${hakkaNumbers}";

Expected output:

{1:yit, 2:gni, 3:sam}
yit

Actual output:

{0,0,0}

  • Accessing an element using bracket notation

Source:

map{int16, string} hakkaNumbers: 1: "yit", 2: "gni", 3:"sam";
"${hakkaNumbers[1]}"

Expected output:

yit

Actual output:

Access violation
[1] <main> (example.hyve:2)

  ...
  152762960: DEALLOC_LR 0 0 0 0
  152762980: PUSH_LR 4 0 0 0
  152763000: DB_VM_CALLVOID 152713796
  152763020: SET_LRV 0 0 152597724 0
> 152763040: ELEMMX_LRV 0 0 1 0
  152763060: STAGE2_LVV 0 0 3077296996 3077298116
  152763080: PCAST_SRQ 4 0 0 0
  152763100: STRCPY_LRR 0 4 0 0
  152763120: PUSH_LR 0 0 0 0
  ...
@jleeothon jleeothon changed the title Provide test cases for map Fix map collection Nov 30, 2014
jleeothon added a commit that referenced this issue Nov 30, 2014
Wrote a temporarily non-json-compliant specification for map kinds. Will be postponed until issues are fixed with maps, as will be noticed in issues #29, #31.

And moved and corrected other things around.
@SanderMertens SanderMertens added this to the Alpha release 0.2.0 milestone Dec 1, 2014
@SanderMertens SanderMertens modified the milestones: 1.1.0, alpha 0.3.0 Mar 6, 2016
@SanderMertens SanderMertens removed this from the 1.1.0 milestone Feb 11, 2017
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