From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: On pragma Precondition etc.
Date: Tue, 29 Jul 2008 16:19:20 +0200
Date: 2008-07-29T16:19:20+02:00 [thread overview]
Message-ID: <488f26e8$0$20705$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: <py8uf7h03ctg$.qp3cvq1pos4a$.dlg@40tude.net>
Dmitry A. Kazakov schrieb:
> On Tue, 29 Jul 2008 13:18:37 +0200, Martin Krischik wrote:
>
>> It too think a dedicated syntax would be best.
> Syntax issues are inferior, IMO. But I agree, no more new
> keywords, please! (:-))
On the other hand, overloading keywords is an invitation
to make things more puzzling. One reason is that context
is needed for disambiguation of the meaning of a keyword.
Another thing is, should conditions have parts? Possibly
named parts? In Eiffel, multiple preconditions are
connected by "and", thus
feature foo(X, Y: INTEGER) WHATEVER is
Must_Have_This: X > Y
Positive_Y: Y > 0
Even_X: X rem 2 = 0
do
...
The names do not add anything. However, when one of the pre-s
is false, the name is seen in the trace, and in the corresponding
EXCEPTION object.
For the Class Invariant, Randy Brukardt has mentioned
for T'Constraint use Function_Name;
--
Georg Bauhaus
Y A Time Drain http://www.9toX.de
next prev parent reply other threads:[~2008-07-29 14:19 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-25 8:01 On pragma Precondition etc Georg Bauhaus
2008-07-25 10:50 ` stefan-lucks
2008-07-25 11:05 ` mockturtle
2008-07-25 11:44 ` Alex R. Mosteo
2008-07-25 11:56 ` Georg Bauhaus
2008-07-28 8:02 ` Alex R. Mosteo
2008-07-29 11:18 ` Martin Krischik
2008-07-29 12:08 ` Dmitry A. Kazakov
2008-07-29 14:19 ` Georg Bauhaus [this message]
2008-07-29 14:49 ` Georg Bauhaus
2008-07-29 15:00 ` Dmitry A. Kazakov
2008-07-29 15:14 ` Georg Bauhaus
2008-07-29 15:55 ` Georg Bauhaus
2008-07-29 17:49 ` Dmitry A. Kazakov
2008-07-30 9:06 ` Georg Bauhaus
2008-07-30 13:47 ` Dmitry A. Kazakov
2008-07-30 17:45 ` Georg Bauhaus
2008-07-31 8:12 ` Dmitry A. Kazakov
2008-07-31 23:06 ` Georg Bauhaus
2008-08-01 8:40 ` Dmitry A. Kazakov
2008-07-30 9:22 ` Georg Bauhaus
2008-07-30 13:56 ` Dmitry A. Kazakov
2008-07-25 14:39 ` Robert A Duff
2008-07-25 16:50 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox