From: Lionel.DRAGHI@fr.thalesgroup.com
To: comp.lang.ada@ada.eu.org
Subject: RE: Suggestion for Ada 200x - Interface inheritance
Date: Mon, 2 Jun 2003 17:57:22 +0200
Date: 2003-06-02T17:57:22+02:00 [thread overview]
Message-ID: <mailman.12.1054569301.12990.comp.lang.ada@ada.eu.org> (raw)
| -----Message d'origine-----
| De: Steve [mailto:nospam_steved94@attbi.com]
...
| What do you think of the idea of also optionally giving the
| mode of the
| parameter, which if present must match the function or procedure
| declaration. That is, extending the above example:
|
| result := Add( in left => 2, in right => 3 );
|
| Why? Readability. When reading code it is sometimes unclear from the
| caller whether or not a procedure modifies its parameters.
Yes, and i often need to "navigate" up to the operation declaration to see
parameter's mode.
My idea was to introduce "<=" for out parameters and "<=>" for in out.
Example:
Create (File <=> My_File,
Mode => In_File,
Name => "My_File",
Status <= Status);
Pretty clear, isn't it? :-) And could also apply to declaration!
Anyway, some ada-mode colouring parameters according to their mode would do
the job just fine for me.
--
Lionel Draghi
next reply other threads:[~2003-06-02 15:57 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-02 15:57 Lionel.DRAGHI [this message]
2003-06-02 18:58 ` Suggestion for Ada 200x - Interface inheritance Pascal Obry
2003-06-02 19:27 ` Bill Findlay
-- strict thread matches above, loose matches on Subject: below --
2003-06-04 16:22 Lionel.DRAGHI
2003-06-03 17:38 Lionel.DRAGHI
2003-06-03 17:47 ` Preben Randhol
2003-06-03 17:48 ` Vinzent Hoefler
2003-06-03 17:33 Lionel.DRAGHI
2003-06-03 17:46 ` Vinzent Hoefler
2003-06-03 18:49 ` Bill Findlay
2003-06-03 19:02 ` Vinzent Hoefler
2003-06-03 19:13 ` Vinzent Hoefler
2003-05-23 23:05 Steve
2003-05-24 1:02 ` Robert A Duff
2003-05-29 16:47 ` Brian Gaffney
2003-06-01 10:29 ` Craig Carey
2003-05-24 12:35 ` Wojtek Narczynski
2003-05-24 17:53 ` Georg Bauhaus
2003-05-25 13:11 ` Wojtek Narczynski
2003-05-24 22:07 ` Robert A Duff
2003-05-25 14:12 ` Wojtek Narczynski
2003-05-25 17:53 ` Jeffrey Carter
2003-05-25 18:47 ` Wesley Groleau
2003-05-25 19:42 ` Hyman Rosen
2003-05-26 7:53 ` Wojtek Narczynski
2003-05-26 15:50 ` Hyman Rosen
2003-05-27 18:41 ` Wojtek Narczynski
2003-05-27 18:55 ` Wesley Groleau
2003-05-27 19:13 ` Hyman Rosen
2003-05-28 13:07 ` Wojtek Narczynski
2003-05-28 13:28 ` Jean-Pierre Rosen
2003-05-29 0:58 ` Hyman Rosen
2003-05-28 22:13 ` Robert A Duff
2003-05-28 23:50 ` Hyman Rosen
2003-05-29 9:17 ` Dmitry A. Kazakov
2003-05-29 13:31 ` Wojtek Narczynski
2003-05-26 7:51 ` Wojtek Narczynski
2003-05-25 1:33 ` Steve
2003-05-25 10:37 ` Simon Wright
2003-05-26 7:54 ` Jean-Pierre Rosen
2003-05-26 10:07 ` Preben Randhol
2003-05-26 16:32 ` Pascal Obry
2003-05-26 16:59 ` Preben Randhol
2003-06-01 10:53 ` Craig Carey
2003-06-01 12:17 ` Preben Randhol
2003-05-26 7:49 ` Jean-Pierre Rosen
2003-06-02 9:01 ` Wojtek Narczynski
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox