From 3f6dfe5196ca84bdf19f938a4809707c758d96a5 Mon Sep 17 00:00:00 2001 From: vwheeler Date: Tue, 29 Apr 2014 19:19:58 +0000 Subject: [PATCH] Corrected "my_polygons" code example to include a call to `forth' at the end of the loop, which was previously omitted. Author:vwheeler Date:2014-04-29T19:19:58.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1350 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../creating-new-void-safe-project.wiki | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/current/method/void-safe-programming-eiffel/creating-new-void-safe-project.wiki b/documentation/current/method/void-safe-programming-eiffel/creating-new-void-safe-project.wiki index 4857f79a..972b630a 100644 --- a/documentation/current/method/void-safe-programming-eiffel/creating-new-void-safe-project.wiki +++ b/documentation/current/method/void-safe-programming-eiffel/creating-new-void-safe-project.wiki @@ -258,6 +258,7 @@ As we traverse the list we would use assignment attempt to try to attach each The '''attached syntax''' allows us to check both attached status and type, and provides us with a fresh local variable when appropriate: @@ -271,6 +272,7 @@ The '''attached syntax''' allows us to check both attached status and type, and print (l_my_rectangle.diagonal) print ("%N") end + my_polygons.forth end As with the other examples of the '''attached syntax''', it is no longer necessary to make a declaration for the local variable, in this case l_my_rectangle.