Re: [sv-ec] Invalid example of srandom - mantis 1391

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Wed Mar 22 2006 - 07:48:56 PST
method_call_root was not just added to handle 'this' and 'super', but to
support method calls for any expressions that yield handles allowing
such calls.

An example like the following from 7.11

   p.next.next.next.val

would still be legal as 

   p.next().next().next().val

Otherwise one could only chain through a sequence of handles using
default argument values.

-- Brad

p.s. According to Table 8-3, dot is an operator.


-----Original Message-----
From: Rich, Dave [mailto:Dave_Rich@mentor.com] 
Sent: Tuesday, March 21, 2006 10:59 PM
To: Brad Pierce; sv-ec@eda.org
Subject: RE: [sv-ec] Invalid example of srandom - mantis 1391

Brad,

ERR-47 was added to allow things like this.method_call() and
super.method_call(). It still does not make '.' an operator. 

> -----Original Message-----
> From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of
Brad
> Pierce
> Sent: Tuesday, March 21, 2006 10:29 PM
> To: sv-ec@eda.org
> Subject: Re: [sv-ec] Invalid example of srandom - mantis 1391
> 
> >That would be true if '.' was defined as an operator, but it's not in
> >SystemVerilog; it's a hierarchical identifier separator.
> 
> That interpretation is not consistent with
> 
>    http://www.eda.org/sv-ec/Errata/ERR_47.html
> 
> which introduced "method_call_root" to the BNF on Dec. 15, 2003
> 
>    http://www.eda.org/sv-ec/Minutes/SV-EC-Minutes-2003-December-15.txt
> 
> See also
> 
>    http://www.eda.org/sv-bc/hm/1733.html
> 
> -- Brad
> 
> 
Received on Wed Mar 22 07:49:02 2006

This archive was generated by hypermail 2.1.8 : Wed Mar 22 2006 - 07:49:07 PST