How about assert?

Koroskin Denis 2korden at gmail.com
Mon Apr 28 11:04:12 PDT 2008


On Mon, 28 Apr 2008 16:29:11 +0400, downs <default_357-line at yahoo.de>  
wrote:

> Note that if we had trailing delegate syntax, combined with a  
> break/continue convention like we currently have with opApply, as well  
> as return forwarding, foreach wouldn't be necessary and could be moved  
> to a library function :)
>
> The result would look something like: foreach([2, 3, 4, 5]) (int x) {  
> writefln(x); }
>
> Probably too big a change though, sadly.
>
> Also, let's really move assert into an object.d function. There's _no_  
> reason this should be a keyword.
>
>  --downs

Remove assert and you loose static assert, too.
Unless, you introduce static_assert keyword :)



More information about the Digitalmars-d mailing list