comp.lang.ada
 help / color / mirror / Atom feed
From: hfrumblefoot@yahoo.com (Hambut)
Subject: Re: Ada and pointers
Date: 15 Aug 2001 11:54:38 -0700
Date: 2001-08-15T18:54:39+00:00	[thread overview]
Message-ID: <fb75c450.0108151054.74fdfc5@posting.google.com> (raw)
In-Reply-To: 9ldto7$9pg$1@nh.pace.co.uk

"Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org> wrote in message news:<9ldto7$9pg$1@nh.pace.co.uk>...
> Well, the statement is true enough because after all, dynamic allocation and
> the things done by pointers are really a kind of fiction. Memory is
> basically one big array that you index with integers, so obviously, a
> non-dynamic/non-pointer solution must exist. Anything you do with pointers
> could be implemented with a one dimensional array and integer indexes -
> because that's what the compiler translates it into.
> 

Well the statement that pointers can be mimic-ed through other
mechanisms is certainly true enough, and I agree with your other
points but........

I was thinking about the dynamic allocation aspects - if you can't or
don't want to bound the memory used then it becomes difficult to see
how you could work without dynamic memory allocation (which is,
admittedly, not precisely related to pointers - but they provide a
popular way of getting access to dynamically allocated memory).

Of course this is all fairly non-specific, but in terms of a formal
mathematical proof - well (and here's a leap into the unknown coupled
with thinking aloud, so feel free to flame the rest of this...)
wouldn't this mean that you'd somehow have to prove that all
algorithms had bounded memory use?  This seems a hard thing to do (and
I'm not precisely sure this would completely prove that pointers can
be disregarded - for example what about alias-ing capabilities?)

That said I agree that in a practical sense you can probably do
without pointers, albeit with some effort and discomfort.

Cheers,

Hambut



  parent reply	other threads:[~2001-08-15 18:54 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-13  7:05 How Ada could have prevented the Red Code distributed denial of service attack Gautier Write-only-address
2001-08-15  7:19 ` Ada and pointers Tony Gair
2001-08-15 12:49   ` Hambut
2001-08-15 13:33     ` Marin David Condic
2001-08-15 12:57       ` Jonathan DeSena
2001-08-16  1:46         ` Tony Gair
2001-08-16 13:37           ` Marin David Condic
2001-08-16 15:43             ` Darren New
2001-08-16 16:29               ` James Rogers
2001-08-16 16:56                 ` Darren New
2001-08-17 14:58                   ` Ted Dennison
2001-08-17 17:14                     ` Darren New
2001-08-15 16:02       ` James Rogers
2001-08-15 17:16         ` Marin David Condic
2001-08-15 19:52           ` James Rogers
2001-08-15 21:00             ` Marin David Condic
2001-08-15 18:54       ` Hambut [this message]
2001-08-15 19:53         ` Marin David Condic
2001-08-16  8:25           ` Hambut
2001-08-15 16:25     ` Warren W. Gay VE3WWG
2001-08-15 13:37   ` Ted Dennison
replies disabled

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