Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ion ion
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 84
    • Issues 84
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • redox-os
  • ionion
  • Issues
  • #973
Closed
Open
Created Aug 05, 2020 by baka@bakaContributor

Manual: Type-Checked Assignments and Array Slicing example code doesn't work

Two of the example assignments in Type-Checked Assignments cause errors:

let b[str] = [two three]

ion: assignment error: multi-dimensional arrays are not yet supported

let d:float[] = [5.1 6.2 7.3]

ion: assignment error: invalid type supplied: float[]

Another two in Slicing Syntax:

echo @array[0,3..]

ion: expansion error: index 'Key(On stack: '0,3..')' is not valid for array variable 'array'

echo @array[30,-3..]

ion: expansion error: index 'Key(On stack: '30,-3..')' is not valid for array variable 'array'

I assume these are unimplemented features. Should they be removed from the manual until they work?

Edited Aug 20, 2020 by baka
Assignee
Assign to
Time tracking