>From: "Jonathan Bromley" <jonathan.bromley@doulos.com> >Method-like syntax has the benefit that it reduces >pollution of the systf namespace and consequent risk >of collision with user-defined PLI names. Apart from >that, it is just a different way of writing a function >call. Take your pick at the Alice's Restaurant that >is SystemVerilog. One situation where the method-like syntax is presumably preferred is where the return type is dependent on the type of the array or its elements. With a few exceptions (e.g. $signed and $unsigned) system function return types are fixed and do not depend on their argument types. A method, on the other hand, is conceptually a different function for each type it is invoked from, so it can have a different return type for each. Steven Sharp sharp@cadence.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Mar 27 16:19:48 2008
This archive was generated by hypermail 2.1.8 : Thu Mar 27 2008 - 16:21:53 PDT