comp.lang.ada
 help / color / mirror / Atom feed
From: rod.chapman@praxis-cs.co.uk (Rod Chapman)
Subject: Re: Ada style of passing 'in' parameters considered dangerous?
Date: 10 Feb 2003 01:49:48 -0800
Date: 2003-02-10T09:49:48+00:00	[thread overview]
Message-ID: <cf2c6063.0302100149.4ab9b3c8@posting.google.com> (raw)
In-Reply-To: 86isvuzabx.fsf@hoastest1-8c.hoasnet.inet.fi

Antti Sykari <jsykari@gamma.hut.fi> wrote in message news:<86isvuzabx.fsf@hoastest1-8c.hoasnet.inet.fi>...
> - If there are such cases, could it have been prevented by having
>   different policy in the language?

Yes - use SPARK!

>   Do you think it would've been
>   better to force the programmer to specify the parameter passing
>   mechanism, for example?

How?  Forcing programmers to explicitly use access parameters,
for instance, sounds like a really bad idea.

SPARK is free from parameter passing dependencies.  The language
doesn't specify a mechanism (this would be a big mistake, since
the language wouldn't then be a true subset of Ada...), but rather
simply enforces language rules so that it is impossible to write a program
where the mechanism chosen by a compiler can ever result in differing
dynamic semantics at run-time.  These rules are checked by the Examiner.
All violations are detected statically (in polynomial time) for incomplete
programs (basically meaning the rules are chekcable only using
the specification of called units, not their bodies...very important
for doing analysis when you haven't actually finished
writing the program yet!)
 - Rod, SPARK Team



  parent reply	other threads:[~2003-02-10  9:49 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-08 22:24 Ada style of passing 'in' parameters considered dangerous? Antti Sykari
2003-02-09  0:41 ` James S. Rogers
2003-02-09  2:11   ` Robert A Duff
2003-02-09  2:25   ` Jeffrey Carter
2003-02-11  8:39   ` Gautier
2003-02-09  2:01 ` Robert A Duff
2003-02-09  2:33   ` Vinzent Hoefler
2003-02-09  6:07   ` Richard Riehle
2003-02-09  7:13   ` Robert I. Eachus
2003-02-10  4:40     ` Martin Dowie
2003-02-09  2:08 ` Jeffrey Carter
2003-02-10  0:13 ` Leif Holmgren
2003-02-10  9:49 ` Rod Chapman [this message]
2003-02-11  9:14 ` Gautier
2003-02-11 13:49   ` Antti Sykari
2003-02-11 17:18   ` Gautier
2003-02-11 17:29     ` Vinzent Hoefler
2003-02-12  1:09   ` Richard Riehle
replies disabled

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