This is legal. For the history, all the way back to 3.1a, see http://www.eda-stds.org/sv/sv-champions/hm/0554.html -- Brad ________________________________________ From: owner-sv-ec@eda.org [owner-sv-ec@eda.org] On Behalf Of Ryan, Ray [Ray_Ryan@mentor.com] Sent: Thursday, June 11, 2009 9:25 AM To: Jonathan Bromley Cc: owner-sv-ec@eda.org; sv-ec@eda.org Subject: RE: [sv-ec] Question about seeding $urandom I agree that process::self().srandom(seed) is NOT legal (because this uses a return result as a prefix). This would be more apparent if the empty paren's weren't optional on function calls. - Ray > -----Original Message----- > From: owner-sv-ec@server.eda.org > [mailto:owner-sv-ec@server.eda.org] On Behalf Of Jonathan Bromley > Sent: Thursday, June 11, 2009 1:19 AM > To: Cliff Cummings > Cc: owner-sv-ec@server.eda.org; sv-ec@server.eda.org > Subject: RE: [sv-ec] Question about seeding $urandom > > > [Cliff] found another working example of what I needed: > > > > process::self.srandom(seed); > > Yikes! Is this legal? I didn't think we could use a method > return result as the prefix to a .method() call. > Are the rules subtly bent for static methods? > -- > Jonathan Bromley > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Jun 11 09:52:27 2009
This archive was generated by hypermail 2.1.8 : Thu Jun 11 2009 - 09:52:57 PDT