Just sayin', fwiw...

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue May 21 01:39:15 UTC 2019


On Thursday, 16 May 2019 at 03:11:15 UTC, Nick Sabalausky 
(Abscissa) wrote:
> I'm tempted to just always "alias String = immutable(byte)[]"

Well actually, because "string" is just an alias defined in 
object.d, you can actually redeclare it to be something else in 
your own code.

-----
import std.stdio;

alias string = int[long];

void main()
{
     string im_not_a_string = [1: 10, 2: 20];
     writeln(im_not_a_string);
}
-----

Have fun. :P


More information about the Digitalmars-d mailing list