What should be the semantics for the same

This is a discussion on What should be the semantics for the same within the verilog forums in Programming Languages category; 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...

Go Back   Application Development Forum > Programming Languages > verilog

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-30-2008, 09:38 AM
parag_paul@hotmail.com
Guest
 
Default What should be the semantics for the same

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
Reply With Quote
  #2  
Old 08-03-2008, 11:31 AM
Jonathan Bromley
Guest
 
Default Re: What should be the semantics for the same

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.
Reply With Quote
  #3  
Old 08-11-2008, 12:40 AM
parag_paul@hotmail.com
Guest
 
Default Re: What should be the semantics for the same

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
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 12:51 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.