Search

September 13, 2004
General »
...4, 5);
   my %hash=(  'darkred' => '#bb0000',  'red' => '#ff0000',  'lightred' => '#ffcccc');

and this makes array and...
August 09, 2003
D »
...arrays
of char ??)
char[][char[]] myArray = [
    "red" => "ff0000",
    "green" =>  "00ff00"
];

I don't object to...
June 27, 2003
D »
...it should be

char[char[]] myArray = {
     ["red"] = "ff0000",
     ["green"] = "00ff00",
     ...

Secondly, it's not GCC...
June 27, 2003
D »
...users, after all...

char[char[]] myArray = {
    ["red"] "ff0000",
    ["green"] "00ff00",
    ...

http://gcc.gnu.org/onlinedocs...
June 26, 2003
D »
...why not simple assignment operator?
| >
| > myArray = {"red" = "ff0000", // ...
|
|
| Since structs are initialized with the ":" operator...
June 26, 2003
D »
...initialized with the ":" operator associative arrays should to

char[char[]] myArray = [
    "red": "ff0000",
    "green": "00ff00",
    ...
]

June 25, 2003
D »
...to think even further:

myArray = { "red" "ff0000", "green" "00ff00" ...}

or

myArray = {
"red" "ff0000",
"green" "00ff00",
..
}

June 25, 2003
D »
...why not simple assignment operator?

myArray = {"red" = "ff0000", 	// ...

This kind of syntax could be very...
June 25, 2003
D »
...above made me think about

myArray = {
"red", "ff0000";
"green", "00ff00";
"blue", "0000ff";
}

Of course, old...
June 25, 2003
D »
...at a time, as follows:

myArray["red"] = "ff0000";
myArray["green"] = "00ff00";
myArray["green"] = "0000ff";

What...
1 2
Next ›   Last »