comp.lang.ada
 help / color / mirror / Atom feed
From: "AG" <ang@xtra.co.nz>
Subject: Re: Conditional types?
Date: Tue, 12 Nov 2002 22:41:12 -0800
Date: 2002-11-12T22:41:12-08:00	[thread overview]
Message-ID: <904A9.7105$8o1.1165601@news.xtra.co.nz> (raw)
In-Reply-To: emomqa.0d4.ln@beastie.ix.netcom.com


"Dennis Lee Bieber" <wlfraed@ix.netcom.com> wrote in message
news:emomqa.0d4.ln@beastie.ix.netcom.com...

>         0x80 (just to keep the numbers small) could be signed -128,
unsigned
> +123 -- without some additional information the bit pattern tells one
> nothing.

However, that number can't be the result (assuming 8-bit signed numbers)
of something like:  X := -Y  *if* you know that all possible Y values are
positive. So, if inside a large body of data you find a single pattern like
that, it must mean that one of the assumptions was incorrect: either the
Ys can be negative (and, on top, the negation works like that) or the
operation performed was something different from the simple negation.
Or, maybe, the Ys encoding was different. All of that is info - eliminating
the possibilities. All derived from a single 8-bit pattern too [Well, that
last one isn't really true of course since it did involve quite a bit of
extra
info, but that single 8-bit pattern was the test that allowed to make
a choice between theories about what the data and it's handling are].

>
>         You /might/ be able to identify that /some/ patterns are not
/valid/
> floats, but that is the limit.





  reply	other threads:[~2002-11-13  6:41 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
2002-11-13  6:41   ` AG [this message]
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