Cloud

Cloud könnte als festes Bestandteil der Sprache dienen.

strcloud is cloud< string >;
h is handle               : strcloud += "Hallo";
i is strcloud::idx       : strcloud += "Welt";  // Dieser Index kann nur für strcloud verwendet werden, nicht für andere cloud<string>.
j is cloud<string>::idx : i;               // Zuweisung auf Basisklasse, kein Slicing.
 
emit h;  // "Hallo"
emit sizeof( h ); // 12  (integer+Zeiger auf strCloud)
emit h.index; // 1 ( Index )
 
emit i; // 2
emit sizeof( i ); // 4
emit strcloud[i]; // Welt;
 
emit strcloud[ strcloud<string>::index( j.index ); // Welt