comp.lang.ada
 help / color / mirror / Atom feed
From: Darren New <dnew@san.rr.com>
Subject: Re: Ada and pointers
Date: Thu, 16 Aug 2001 15:43:52 GMT
Date: 2001-08-16T15:43:52+00:00	[thread overview]
Message-ID: <3B7BEA38.7FD8E9F0@san.rr.com> (raw)
In-Reply-To: 9lgibn$ak1$1@nh.pace.co.uk

> It sounds to me like you think I'm claiming that people should translate
> their linked list programs into array implementations - or that trying to do
> so would be a good thing. This is not my claim at all.

FWIW, in college I used a Lisp interpreter written in Fortran IV.
INTEGER CAR(200000)
INTEGER CDR(200000)

 :-)


As an aside, I have a C library right now that uses lots of linked
lists. Linked lists of messages to send, linked lists of messages
awaiting answers, linked lists of message numbers sent for which no
answer has been received, etc.  Basically, most of these would be better
as arrays where I could add elements to either end or delete elements
from either end or the middle. Is there a better idiom for doing this in
Ada, rather than using access types? 

Basically, I guess I'm asking whether there's an idiom for building
unbounded queues rather than with linked lists using access types?

-- 
Darren New / Senior MTS & Free Radical / Invisible Worlds Inc.
San Diego, CA, USA (PST). Cryptokeys on demand. dnew@san.rr.com
           When was sliced bread invented?



  reply	other threads:[~2001-08-16 15:43 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 [this message]
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
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