Example of Rust code

Timon Gehr timon.gehr at gmx.ch
Sun Aug 12 06:42:47 PDT 2012


On 08/12/2012 10:17 AM, Johannes Pfau wrote:
>
> There are probably some more, less known use cases. For example this
> recent thread on stackoverflow shows how scope might be necessary to
> initialize an immutable variable.
> http://stackoverflow.com/questions/11860584/changing-immutable-members-inside-the-constructor
>
>

Such rules are not part of the current language. The comment that says
that they are is wrong. scope does not currently influence type
checking at method call boundaries.


More information about the Digitalmars-d mailing list