Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
ion
ion
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 95
    • Issues 95
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 4
    • Merge Requests 4
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • redox-os
  • ionion
  • Issues
  • #973

Closed
Open
Opened 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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: redox-os/ion#973