CVS difference for arm/source/07.mss

Differences between 1.58 and version 1.59
Log of other versions for file arm/source/07.mss

--- arm/source/07.mss	2005/07/10 05:16:21	1.58
+++ arm/source/07.mss	2005/07/12 05:01:16	1.59
@@ -1,10 +1,10 @@
 @Part(07, Root="ada.mss")
-@Comment{$Date: 2005/07/10 05:16:21 $}
+@Comment{$Date: 2005/07/12 05:01:16 $}
 @Comment{$Source: e:\\cvsroot/ARM/Source/07.mss,v $}
-@Comment{$Revision: 1.58 $}
+@Comment{$Revision: 1.59 $}
@@ -1859,7 +1859,7 @@
 @ChgAdded{Version=[2],Text=[For a @nt{function_call}, we only require
 for a limited type that would have
 been a return-by-reference type in Ada 95. We do this because
 we want to minimize disruption to Ada 95 implementations and users.]}
@@ -2397,16 +2397,17 @@
 @ChgAdded{Version=[1],Text=[For an @nt{aggregate} of a controlled type
 whose value is assigned,
-other than by an @nt{assignment_statement} or a
-@Chg{Version=[2],New=[@nt{simple_return_statement} of a return type with no
-part that is of a task, protected, or explicitly limited record type],
-Old=[@nt{return_statement}]}, the
+other than by an @nt{assignment_statement}
+@Chg{Version=[2],New=[],Old=[ or a @nt{return_statement}]}, the
 implementation shall not create a separate anonymous object for the
 @nt{aggregate}. The aggregate value shall be constructed directly in the target
 of the assignment operation and Adjust is not called on the target object.]}
-@ChgAdded{Version=[1],Type=[Leading],Text=[This is necessary to prevent
+New=[ @i<build-in-place> requirement],Old=[]} is necessary to prevent
 elaboration problems with deferred constants of controlled types. Consider:]}
@@ -2430,6 +2431,16 @@
 necessarily raise Program_Error (unless the permissions given below are
 used by the implementation).],Old=[]}
+@ChgAdded{Version=[2],Text=[An @nt{aggregate} used in the return expression
+of a @nt{simple_return_statement} has to be built-in-place in the anonymous
+return object, as this is similar to an object declaration. (This is a change
+from Ada 95, but it is not an inconsistency as it only serves to restrict
+implementation choices.) But this only covers the @nt{aggregate}; a separate
+anonymous return object can still be used unless it too is required to be
+built-in-place (see @RefSecNum{Limited Types}).]}

Questions? Ask the ACAA Technical Agent