From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: Conditional types?
Date: Sun, 10 Nov 2002 15:04:46 -0800
Date: 2002-11-11T00:12:50+00:00 [thread overview]
Message-ID: <emomqa.0d4.ln@beastie.ix.netcom.com> (raw)
In-Reply-To: mpzz9.1093$rG2.14157@sccrnsc03
Caffeine Junky fed this fish to the penguins on Sunday 10 November 2002
12:34 pm:
>
> You're recieving data through a function call or a procedure of some
> sort, but the source for some reason does not indicate explicitly what
> type of data it is. However, since you do have some limited knowledge
> of the system you can safely assume it's passing either a float, an
> integer, or an unsigned 32 bit integer. Is there a way do this in Ada
I know of NO language that can identify what 32 random bits of data is
supposed to represent. It could be 4 8-bit characters, 2 16-bit
characters, or even a memory address.
0x80 (just to keep the numbers small) could be signed -128, unsigned
+123 -- without some additional information the bit pattern tells one
nothing.
You /might/ be able to identify that /some/ patterns are not /valid/
floats, but that is the limit.
--
> ============================================================== <
> wlfraed@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
> wulfraed@dm.net | Bestiaria Support Staff <
> ============================================================== <
> Bestiaria Home Page: http://www.beastie.dm.net/ <
> Home Page: http://www.dm.net/~wulfraed/ <
next prev parent reply other threads:[~2002-11-10 23:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-10 20:34 Conditional types? Caffeine Junky
2002-11-10 23:04 ` Dennis Lee Bieber [this message]
2002-11-13 6:41 ` AG
2002-11-11 13:30 ` Marin David Condic
2002-11-11 17:30 ` Larry Kilgallen
2002-11-12 12:50 ` Marin David Condic
-- strict thread matches above, loose matches on Subject: below --
2002-11-10 20:34 Caffeine Junky
2002-11-10 21:35 ` tmoran
2002-11-11 4:43 ` Caffeine Junky
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox