September 13, 2004 General » Re: Most important issues for D (MIID) | |||
|---|---|---|---|
| |||
...4, 5); my %hash=( 'darkred' => '#bb0000', 'red' => '#ff0000', 'lightred' => '#ffcccc'); and this makes array and... | |||
August 09, 2003 D » Re: Associative Array Literal Syntax | |||
|---|---|---|---|
| |||
...arrays
of char ??)
char[][char[]] myArray = [
"red" => "ff0000",
"green" => "00ff00"
];
I don't object to... | |||
June 27, 2003 D » Re: Associative Array Literal Syntax | |||
|---|---|---|---|
| |||
...it should be
char[char[]] myArray = {
["red"] = "ff0000",
["green"] = "00ff00",
...
Secondly, it's not GCC... | |||
June 27, 2003 D » Re: Associative Array Literal Syntax | |||
|---|---|---|---|
| |||
...users, after all...
char[char[]] myArray = {
["red"] "ff0000",
["green"] "00ff00",
...
http://gcc.gnu.org/onlinedocs... | |||
June 26, 2003 D » Re: Associative Array Literal Syntax | |||
|---|---|---|---|
| |||
...why not simple assignment operator?
| >
| > myArray = {"red" = "ff0000", // ...
|
|
| Since structs are initialized with the ":" operator... | |||
June 26, 2003 D » Re: Associative Array Literal Syntax | |||
|---|---|---|---|
| |||
...initialized with the ":" operator associative arrays should to
char[char[]] myArray = [
"red": "ff0000",
"green": "00ff00",
...
]
| |||
June 25, 2003 D » Re: Associative Array Literal Syntax | |||
|---|---|---|---|
| |||
...to think even further:
myArray = { "red" "ff0000", "green" "00ff00" ...}
or
myArray = {
"red" "ff0000",
"green" "00ff00",
..
}
| |||
June 25, 2003 D » Re: Associative Array Literal Syntax | |||
|---|---|---|---|
| |||
...why not simple assignment operator?
myArray = {"red" = "ff0000", // ...
This kind of syntax could be very... | |||
June 25, 2003 D » Re: Associative Array Literal Syntax | |||
|---|---|---|---|
| |||
...above made me think about
myArray = {
"red", "ff0000";
"green", "00ff00";
"blue", "0000ff";
}
Of course, old... | |||
June 25, 2003 D » Associative Array Literal Syntax | |||
|---|---|---|---|
| |||
...at a time, as follows: myArray["red"] = "ff0000"; myArray["green"] = "00ff00"; myArray["green"] = "0000ff"; What... | |||
Copyright © 1999-2021 by the D Language Foundation