Wiki

Ticket #368 (new defect)

Opened 11 years ago

Last modified 11 years ago

Dynamic variables that are Arrays should support Indexing

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

Description

If variables or fields are declared as dynamic and typed as Arrays they should support Indexors (read only at least) given how many of the .Net framework APIS return arrays rather than lists/collections.

Currently indexing such a variable emits a 'Cobra.Core.UnknownMemberException?' from the RTL call to Cobra.Core.CobraImp?.getIndexerValue since it only looks for Object/Collection? Indexors and not ones on arrays.

See  UnknownMemberException thrown on local variable assignment for a very good example

Attachments

DynamicArrayIndex.patch Download (1.0 KB) - added by hopscc 11 years ago.

Change History

Changed 11 years ago by hopscc

Changed 11 years ago by hopscc

  • summary changed from Dynaic variables that are Arrays should support Indexors to Dynamic variables that are Arrays should support Indexing

Patch file is a q-and-D starting point supporting read indexing on single rank arrays.

Note: See TracTickets for help on using tickets.