Wiki

Ticket #253 (assigned enhancement)

Opened 14 years ago

Last modified 14 years ago

Provide some minimal allowance for use of multidim and jagged arrays

Reported by: hopscc Owned by: Chuck
Priority: medium Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

Its currently almost possible to use multidimension (or jagged) arrays in cobra but the obvious way of doing this is stymied by the inability to explicitly declare the multidim or jagged array type.

Rectify this (at a minimum) so that these types of arrays can be used in cobra (albeit not easily since Lists are better (:-))

In lieu of anything else I suggest using the C# syntax

TYPE[][] for jagged
TYPE[,] for multidimension

and relying on a sharp fallthrough for constructor calls
(I also dont see any reason ATM to support more than 3 Dimensions).

Attachments

min-multi-dim-array.patch Download (10.3 KB) - added by hopscc 14 years ago.

Change History

Changed 14 years ago by hopscc

Changed 14 years ago by hopscc

patch, new twst and relnote for above.

Changed 14 years ago by hopscc

  • owner changed from hopscc to Chuck
  • status changed from new to assigned

See  Discussion topic (last few entries).

Note: See TracTickets for help on using tickets.