RE: [sv-bc] Musings on array assignment compatibility

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Tue Jun 02 2009 - 18:58:39 PDT
Arturo writes

>  b = foreach'(a);

Yes, that's definitely better, although it would introduce another example of a cast that infers its type from context, after we just got rid of such rules for signed'() and 17'(). A possible drawback is that you might have multiple packed dimensions, yet only want the first dimension to get this element-by-element copying.

Another option would be a new assignment operator, such as

     b [=] a;

and for nonblocking

     b [<=] a;

If two-level copying were desired

     b [=][=] a;

and so on.  But, like foreach'(...), whatever solution is chosen needs to be syntactically obvious.

-- Brad

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Jun 2 18:59:18 2009

This archive was generated by hypermail 2.1.8 : Tue Jun 02 2009 - 19:01:53 PDT