[sv-bc] chapter 7 review comments

From: Francoise Martinolle <fm@cadence.com>
Date: Mon Jan 24 2005 - 12:38:46 PST

I found a few minor issues with chapter 7. Below is my compiled list of
issues. One is a question to the BC
about operator overloading.
 
Section 7.14
 
In the example:
struct { int A;
  struct {
     int B, C;
  } BC1, BC2;
}
 
 
ABC = {A:1, BC1: {B:2, C:3}, BC2 : {B:3, C:4} };
 
DEF = {default: 10};
 
We miss the fact that ABC and DEF are variables of the above struct
 
We should declare:
struct { int A;
  struct {
     int B, C;
  } BC1, BC2;
} ABC, DEF;
 
 
 
Section 7.15 page 92
The sentence after the first example :" In the tagged union expressions
below, the expressions in braces are structure expressions (see 7.14).
First 7.14 is renamed structure constructors, we should not talk anymore
about structure expressions.
 
page 93, first paragraph typo: ", or it is has a cast"
page 93 Question : are tagged unions only applicable to variables ? if not
the "variable" word in the whole paragraph should be replaced by data
object. The first sentence should be rewritten to say:
An uninitialized data object of tagged union type shall be undefined.... A
data object of tagged union type... " .
 
Page 93: 3rd paragraph: why hyphen between dot and notation?
using the usual dot-notation
 
Section 7.16: Sentence "To be copied or compared, the type of an aggregate
expression must be equivalent. " needs to be reworded as: " To be copied or
compared, the type of an aggregate expression must be equivalent to the type
of the expression it is copied to or compared with.
 
Section 7.17 Operator overloading
Page 94:
  The second paragraph says that an expected result data type exists in any
of the following context and it lists the relational operator with
unambiguous comparison. What is that? Why not any relational operator?
 
Section 7.18.1
3rd paragraph after the syntax box typo:
"... as an array slice : The specified number "
 
 
 
Received on Mon Jan 24 12:39:45 2005

This archive was generated by hypermail 2.1.8 : Mon Jan 24 2005 - 12:45:50 PST