From: Georg Bauhaus <see.reply.to@maps.futureapps.de>
Subject: Re: not X'Length
Date: Fri, 16 May 2008 10:15:16 +0200
Date: 2008-05-16T10:15:16+02:00 [thread overview]
Message-ID: <482d4294$0$6786$9b4e6d93@newsspool2.arcor-online.net> (raw)
In-Reply-To: <717bf87e-b8b6-4129-8051-7bd45cf2f7b2@a9g2000prl.googlegroups.com>
Points taken.
Adam Beneschan wrote:
> Your original post said something about expecting the compiler to
> complain about "not" being applied to a universal integer. I'm not
> quite sure what your intent was, but applying "not" to a universal
> integer is quite legitimate where modular types are concerned.
I was just wondering whether a compiler could know that provided
<R> is statically an integer type and <L> of a "perfectly normal
magic type", then let <R> have more weight in biasing the diagnostic
of <L> IN <R> so have the compiler consider the genesis of the latter.
But I will stop speculating about things behind the compiler's walls
and let the makers do other work undisturbed.
> Something like
>
> (Z and not 1)
>
> is a good way to clear a bit in Z, if Z's type is a modular type.
I guess as a matter of personal preference I'd choose (Z and not 2#1#)
and (not Unsigned_8'(X'Length-1)) or similar. OK, enough said.
next prev parent reply other threads:[~2008-05-16 8:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-15 9:19 not X'Length Georg Bauhaus
2008-05-15 9:39 ` christoph.grein
2008-05-15 10:12 ` christoph.grein
2008-05-15 20:48 ` Georg Bauhaus
2008-05-15 22:20 ` Adam Beneschan
2008-05-16 8:04 ` Manuel Collado
2008-05-16 8:15 ` Georg Bauhaus [this message]
2008-05-16 12:52 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox