CVS difference for ai12s/ai12-0245-1.txt

Differences between 1.1 and version 1.2
Log of other versions for file ai12s/ai12-0245-1.txt

--- ai12s/ai12-0245-1.txt	2018/01/13 02:45:34	1.1
+++ ai12s/ai12-0245-1.txt	2018/01/18 06:51:55	1.2
@@ -410,3 +410,95 @@
 "use". Any new syntax has to preserve this property.
 
 ****************************************************************
+
+From: Stephen Leake
+Sent: Sunday, January 14, 2018  11:12 AM
+
+>>I don't like the old 2003 proposal of "with and use".  It sounds 
+>>awkward  and would be unsuitable for sorting.
+>
+> This statement doesn't make any sense. No one is sorting Ada source 
+> code with a program,
+
+That's not true; Emacs Ada mode will insert a missing "with" clause for you in
+response to a compiler error message, and it sorts the with clauses in the
+process. It does take into account "limited with" while sorting.
+
+> and for manual sorting, one completely ignores the prefix and puts the 
+> unit names in order.
+
+Programs can do the same.
+
+****************************************************************
+
+From: Randy Brukardt
+Sent: Monday, January 15, 2018  3:30 PM
+
+...
+> That's not true; Emacs Ada mode will insert a missing "with" 
+> clause for you in response to a compiler error message, and it sorts 
+> the with clauses in the process. It does take into account "limited 
+> with" while sorting.
+
+I wasn't thinking about an IDE doing that; but of course, no Ada-aware
+application is going to have a problem, regardless of what syntax is used.
+
+****************************************************************
+
+From: Britt Snodgrass
+Sent: Monday, January 15, 2018  6:53 PM
+
+Some closing comments on my proposal:
+
+1. I agree that my example of "use limited private with ..." was totally
+   wrong. I was trying to reinforce that having other reserved words in front
+   of "with" has precedent. but I should have checked the RM  in the case of
+   limited withs.
+
+2. Regarding sorting, I would want these "use with" clauses to sort into their
+   own subgroup of adjacent lines in the context clause  region. For example,
+   given the following original adjacent lines:
+
+  with Aardvark;
+  use with Gorilla;  -- i.e., same effect as "with Gorilla; use Gorilla
+  with Horse
+  with Lion;
+  use with Orix;     -- i.e., same effect as "with Orix; use Orix;"
+  with Zebra;"
+
+I would select all these lines in a text editor and sort them to get:
+
+  use with Gorilla;  -- i.e., same effect as "with Gorilla; use Gorilla
+  use with Orix;     -- i.e., same effect as "with Orix; use Orix;"
+  with Aardvark;
+  with Horse;
+  with Lion;
+  with Zebra;
+
+If the word order were "with use" instead of "use with" then the "with use" 
+clauses might be intermingled among the plain "with"s after sorting,
+depending on the package names, e.g.,
+
+  with Aardvark;
+  with Horse;
+  with Lion;
+  with use Gorilla;  -- i.e., same effect as "with Gorilla; use Gorilla
+  with use Orix;     -- i.e., same effect as "with Orix; use Orix;"
+  with Zebra;
+
+and this is less readable because of the intermingling.
+
+3. A key reason that I would like "use with" is that I frequently have to
+   write Ada code segments in the context of certain test support tools with
+   very limited editing capabilities (e.g.,  Vec....ast, with little edit
+   boxes that have fewer features than notepad). In such environments it is
+   helpful to use package use clauses but tedious to repeat long package
+   names. I recognize that most of you may not have the experience of writing
+   code in such primitive editors so you might not appreciate the utility of
+   this request.
+
+Randy is concerned that convenience features may get in the way of
+readability. I agree this is a risk in general, but I don't think it would
+happen for this proposal. Quite the opposite, actually.
+
+***************************************************************

Questions? Ask the ACAA Technical Agent