Proposal for scoped const contracts

Janice Caron caron800 at googlemail.com
Tue Mar 25 13:29:56 PDT 2008


On 25/03/2008, Oliver Dathe <o.dathe at gmx.de> wrote:
> The following is some kind of superset of what I have proposed in [1]
>
>  Example for syntax (*):
>
>      char[] f(char[] p : const(char)[]) { }

I don't think I'd like to have to specify the type twice for every
affected parameter.

I don't have a better idea though! :-(
(But I'm still thinking about it)



More information about the Digitalmars-d mailing list