[Issue 1511] static assert doesn't fail as expected

Downs default_357-line at yahoo.de
Mon Sep 17 22:20:21 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

BCS wrote:
> Reply to d-bugmail at puremagic.com,
> 
>> http://d.puremagic.com/issues/show_bug.cgi?id=1511
>>
>> ------- Comment #2 from braddr at puremagic.com  2007-09-17 23:21 -------
>> is(T) is true as long as T is a type.  typeof() will return the type
>> of any
>> valid expression.  In your examples, all the expressions are valid.
>> So, um..
>> there's no bug here.
> 
> what is (char[] + char[]) ?
> 
> 
char[].
In theory, that's an array operation of addition of chars, but that's
not implemented yet.
It does have a type though.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG72AVpEPJRr05fBERAqJBAJ9cCYVsk/ON2wo70ESoT0rLHxS+igCeNo8+
BiDCgrrRaE7/KuYC00dGlFU=
=PHOR
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-bugs mailing list