[sv-bc] Doubts on Streaming Operator

From: Shabnam Banu <shabnam_at_.....>
Date: Tue Jan 02 2007 - 23:32:57 PST
Hi,
  There are certain issues related to Streaming operator ,which are not 
clear from
   LRM.Please clarify me following doubts on Streaming Operator.

1.Whether Streaming Operator can be used as an independent expression 
within an
    expression or not .i.e
   whether
        int a,b,c,d,e;
        a= {<<{c,d,e}}+b;
   is semantically correct or not.

2. The BNF for 'with' construct of streaming operator is:
  
   stream_expression ::= expression(0) [ with [ array_range_expression ] 
]                 array_range_expression ::=
        
         expression(1)
       | expression(2) : expression(3)
       | expression(4) +: expression(5)
       | expression(6) -: expression(7)
 

  The   array_range_expression  can be considered as a part select  on 
expression(0),when
  array_range_expression ::=
     | expression(2) : expression(3)
       | expression(4) +: expression(5)
       | expression(6) -: expression(7)

   part select rule says(as mentioned in LRM) that expression(2) , 
expression(3),expression(5)
   and expression(7) should be constant.But this is not mentioned in 
case of 'with '
    construct.Whether partselect rules are also applicable here ?.
    please clarify that whether expression(2) , 
expression(3),expression(5) and expression(7) 
    should be constant or not ,in case of 'with ' construct of streaming 
operator.

Thanks,
Shabnam.




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Jan 2 23:35:23 2007

This archive was generated by hypermail 2.1.8 : Tue Jan 02 2007 - 23:35:41 PST