[sv-bc] 7.14: struct literal typo


Subject: [sv-bc] 7.14: struct literal typo
From: Paul Graham (pgraham@cadence.com)
Date: Thu Dec 11 2003 - 11:20:44 PST


In section 7.14 of LRM 3.1a is the example:

    Similarly, an individual member can be set to override the general
    default and the type default:

    initial #10 s1 = {default:'1, s = ""}; // set all to 1 except s to ""

Is the 's = ""' a typo? It should be s:"". Otherwise, s = "" is an
assignment operator to some variable s, not member s of the struct.

Paul



This archive was generated by hypermail 2b28 : Thu Dec 11 2003 - 11:21:16 PST