[sv-bc] array.find_index on wildcard-indexed associative arrays.

From: Jim King <jim.king_at_.....>
Date: Mon Mar 12 2007 - 09:05:21 PDT
Hi all,
While explaining array-searching methods to a groups of delegates on a course, the following occurred to me:

Given the following code:
<code>
some_type SA [*];
some_other_type RQ[$];
...
RQ = SA.find_index with (item_expression);
</code>

Of what type should RQ be, given that find_index may find elements indexed by different types?  Will/should I get a runtime type error?

Regards,
-- 
Jim King 
Consultant 

DOULOS - Developing Design Know-how
VHDL * SystemC * Verilog * SystemVerilog * e * PSL * Perl * 
Tcl/Tk * Project Services

Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, 
Hampshire, BH24 1AW, UK
Tel: +44 (0)1425 471223             Email: jim.king@doulos.com 

Fax: +44 (0)1425 471573             Web: http://www.doulos.com

The contents of this message  may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Mar 12 09:05:53 2007

This archive was generated by hypermail 2.1.8 : Mon Mar 12 2007 - 09:06:06 PDT