Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 13 Apr 2011 13:10:05 -0500 Return-Path: Sender: std-cpp-request@vandevoorde.com Approved: austern@google.com Message-ID: <90jvqmFhg6U15@mid.individual.net> Newsgroups: comp.std.c++ From: Ian Collins Subject: valarray computed assignment - arrays of different sizes Organization: unknown Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Original-Date: Wed, 13 Apr 2011 09:51:18 +1200 X-Submission-Address: std-c++-submit@vandevoorde.com To: undisclosed-recipients:; Date: Wed, 13 Apr 2011 13:06:08 CST Lines: 20 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-QDgJTceJrB7CbGnYTJMl791UB5K2/8Yj0ZaLOVY9nHLPCXccLItvCbA8K+qkQFjLXJZOdiHHBUv0e+D!qp5UQYGFUXzqOZcv8dnxy2vOYm9h+lJ0V0znIp2uOhf/86T1hIdy+VyDq9w= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1825 Xref: x330-a1.tempe.blueboxinc.net comp.std.c++:100 In section 26.6.2.7 valarray computed assignment, paragraph 3 states "If the array and the argument array do not have the same length, the behavior is undefined." Is there a good reason why equal length should not be a requirement? The same applies to binary operators (26.6.3.1) and logical operators (26.6.3.2). -- Ian Collins [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]