-preview=in might break code

Per Nordlöw per.nordlow at gmail.com
Fri Oct 2 20:44:17 UTC 2020


On Friday, 2 October 2020 at 14:08:29 UTC, Steven Schveighoffer 
wrote:
> Compile without -preview=in, it prints:
> ...
> -Steve

I wonder how Ada handles multiple aliasing of the same argument 
to a set of reference (`alias`) parameters [1]. Does it have the 
same ownership and borrowing rules as Rust? I need to check...

https://en.wikibooks.org/wiki/Ada_Programming/Subprograms:

"Explicitly aliased parameters and access parameters specify pass 
by reference."


More information about the Digitalmars-d mailing list