comp.lang.ada
 help / color / mirror / Atom feed
From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Re: win32ada design question/problem
Date: 1998/11/19
Date: 1998-11-19T00:00:00+00:00	[thread overview]
Message-ID: <365457FF.2B8541C6@elca-matrix.ch> (raw)
In-Reply-To: 36531538.483857@SantaClara01.news.InterNex.Net

Tom Moran wrote:

>   Why exactly is X'Address preferable to X'Unchecked_Access?
>   Having spent a fair amount of time in the past debugging/correcting
> supposedly portable code that incorrectly assumed an access type was a
> 'Address, I'm rather sensitive to this issue.

Other reasons:

- It's the good old Ada 83 way that has worked for 15 years now, wo why
change ?

- Try interfacing fcntl, setsockopt or some other weird functions using
access types: these somtimes return, or take as a parameter, a pointer
that points to a type that changes depending on the function you want to
perform, which is determined by the value of another parameter. You can
certainly do this with overloading, but I am not sure this buys much in
a thin binding.

Also, using 'Address properly does _not_ imply converting System.Address
to/from access types, which is a bad idea IMO.




  parent reply	other threads:[~1998-11-19  0:00 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-13  0:00 win32ada design question/problem Mats Weber
1998-11-13  0:00 ` Tom Moran
1998-11-16  0:00   ` Mats Weber
1998-11-18  0:00     ` Tom Moran
1998-11-18  0:00       ` dennison
1998-11-19  0:00       ` Mats Weber [this message]
1998-11-19  0:00       ` Mats Weber
1998-11-19  0:00         ` dennison
1998-11-19  0:00           ` David Botton
1998-11-19  0:00         ` David Botton
1998-11-19  0:00           ` Mats Weber
1998-11-23  0:00             ` Marin David Condic
1998-11-27  0:00     ` Roga Danar
1998-11-13  0:00 ` dennison
1998-11-16  0:00   ` Stephen Leake
1998-11-16  0:00     ` Tucker Taft
1998-11-17  0:00     ` dennison
1998-11-17  0:00       ` Mats Weber
1998-11-17  0:00         ` dennison
1998-11-17  0:00           ` Mats Weber
1998-11-17  0:00           ` Tucker Taft
1998-11-18  0:00             ` Tom Moran
1998-11-18  0:00               ` dennison
  -- strict thread matches above, loose matches on Subject: below --
1998-11-19  0:00 tmoran
1998-11-19  0:00 ` dennison
1998-11-19  0:00   ` Tom Moran
1998-11-20  0:00     ` dennison
1998-11-20  0:00       ` Tom Moran
1998-11-23  0:00     ` Marin David Condic
1998-11-23  0:00       ` Mats Weber
1998-11-24  0:00         ` 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