comp.lang.ada
 help / color / mirror / Atom feed
From: JP Thornley <jpt@diphi.demon.co.uk>
Subject: Re: [Spark] Converting Arrays
Date: Wed, 12 Mar 2003 18:46:36 +0000
Date: 2003-03-12T18:46:36+00:00	[thread overview]
Message-ID: <qT5vqLJMC4b+IwF9@diphi.demon.co.uk> (raw)
In-Reply-To: slrnb6u84d.nt.lutz@taranis.iks-jena.de

In article <slrnb6u84d.nt.lutz@taranis.iks-jena.de>, Lutz Donnerhacke 
<lutz@iks-jena.de> writes
>main_rules(100): test__length_of_dest may_be_replaced_by test_it__dest__last - test_it__dest__first + 1.
>main_rules(101): test__length_of_dest may_be_replaced_by my__last - my__first + 1.

Note that here you have given two different replacements for the same 
item. It is not obvious what the Simplifier will do with these.

The restriction that an out mode parameter can't be referenced in a 
precondition seems to be the major cause of the difficulty, and I have 
(reluctantly) come to the conclusion that the way to avoid explicit 
rules for each instance of the output parameter is to pass the length as 
an additional parameter, as Rod suggests.

Cheers,

Phil

-- 
JP Thornley



  reply	other threads:[~2003-03-12 18:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-10 17:06 [Spark] Converting Arrays Lutz Donnerhacke
2003-03-10 20:03 ` James S. Rogers
2003-03-10 22:33   ` Lutz Donnerhacke
2003-03-11 10:14 ` Rod Chapman
2003-03-11 10:51   ` Lutz Donnerhacke
2003-03-11 10:52   ` Lutz Donnerhacke
2003-03-11 20:46     ` JP Thornley
2003-03-12  8:43       ` Phil Thornley
2003-03-12 11:57         ` Lutz Donnerhacke
2003-03-12 18:46           ` JP Thornley [this message]
2003-03-13 10:14             ` Lutz Donnerhacke
2003-03-12  9:43     ` Rod Chapman
2003-03-12 10:15       ` Lutz Donnerhacke
  -- strict thread matches above, loose matches on Subject: below --
2003-03-13  5:55 Grein, Christoph
2003-03-13  9:47 ` Peter Amey
2003-03-13 10:15   ` Lutz Donnerhacke
2003-03-21 15:05     ` Peter Amey
2003-03-21 15:17       ` Lutz Donnerhacke
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox