What should be the semantics for the same

  • Thread starter parag_paul@hotmail.com
  • Start date
P

parag_paul@hotmail.com

Guest
For an assoc array with wildcard index,
what will be the type for the first index that you get back using
calls like

assoc_array.first() , assoc_array.next(), assoc_array.last(),

what will be the type of element that you will send to these in case
of indices which are mixed with strings, ints, integers etc
 
On Wed, 30 Jul 2008 06:38:59 -0700 (PDT), "parag_paul@hotmail.com"
<parag_paul@hotmail.com> wrote:

For an assoc array with wildcard index,
what will be the type for the first index that you get back using
calls like

assoc_array.first() , assoc_array.next(), assoc_array.last(),

what will be the type of element that you will send to these in case
of indices which are mixed with strings, ints, integers etc
The LRM forbids these traversal methods on wildcard-index
associative arrays.
--
Jonathan Bromley, Consultant

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

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.bromley@MYCOMPANY.com
http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
 
On Aug 3, 8:31 pm, Jonathan Bromley <jonathan.brom...@MYCOMPANY.com>
wrote:
On Wed, 30 Jul 2008 06:38:59 -0700 (PDT), "parag_p...@hotmail.com"

parag_p...@hotmail.com> wrote:
For an assoc array with wildcard index,
what will be the type for the first index that you get back using
calls like

assoc_array.first() , assoc_array.next(), assoc_array.last(),

what will be the type of element that you will send to these in case
of indices which are mixed with strings, ints, integers etc

The LRM forbids these traversal methods on wildcard-index
associative arrays.
--
Jonathan Bromley, Consultant

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

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.brom...@MYCOMPANY.comhttp://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
hi Jonathan
Do you remember the section where it does so.
As far as I remember I think it tells that if the index type sent is
smaller than the index the assoc array has, we will have to truncate
it

there is a example where a int is truncated to a byte ,
1000 become 200+ something
 

Welcome to EDABoard.com

Sponsor

Back
Top