On Sun, 14 Nov 2010 10:35:42 +0100
spir denis.s...@gmail.com wrote:
I finally found the bit where it describes associative array literals
and they look identical to initialising a flat array, so god only knows
which one gets picked when. It would be better if they where made
different.
some
[trivial?] problems with them)
On 11/12/2010 10:08 AM, Jacob Carlborg wrote:
Is D supposed to be able to handle nested associative arrays ?
Well, yes. The following code:
module main;
void main ()
{
auto tree = [ : [ : ]];
}
Using DMD 1.065 results in:
Assertion failed: (0), function
On 2010-11-12 17:44, Ellery Newcomer wrote:
Should be. Are you having problems?
(I don't use them much, but fwiw, it seems like tango had some
[trivial?] problems with them)
On 11/12/2010 10:08 AM, Jacob Carlborg wrote:
Is D supposed to be able to handle nested associative arrays ?
Well
Jacob Carlborg:
module main;
void main ()
{
auto tree = [ : [ : ]];
}
Using DMD 1.065 results in:
Assertion failed: (0), function toExpression, file init.c, line 437.
Please put it in Bugzilla if not already present :-)
Bye,
bearophile
to handle nested associative arrays ?
Well, yes. The following code:
module main;
void main ()
{
auto tree = [ : [ : ]];
}
Using DMD 1.065 results in:
Assertion failed: (0), function toExpression, file init.c, line 437.
That's static initialisation not an AA.
alias string[char
wrote:
Is D supposed to be able to handle nested associative arrays ?
Well, yes. The following code:
module main;
void main ()
{
auto tree = [ : [ : ]];
}
Using DMD 1.065 results in:
Assertion failed: (0), function toExpression, file init.c, line 437.
That's static initialisation not an AA
On 2010-11-13 14:39, bearophile wrote:
Jacob Carlborg:
module main;
void main ()
{
auto tree = [ : [ : ]];
}
Using DMD 1.065 results in:
Assertion failed: (0), function toExpression, file init.c, line 437.
Please put it in Bugzilla if not already present :-)
Bye,
bearophile
Done:
)
On 11/12/2010 10:08 AM, Jacob Carlborg wrote:
Is D supposed to be able to handle nested associative arrays ?
Well, yes. The following code:
module main;
void main ()
{
auto tree = [ : [ : ]];
}
Using DMD 1.065 results in:
Assertion failed: (0), function toExpression, file init.c, line 437
On Sat, 13 Nov 2010 17:27:08 +
div0 d...@sourceforge.net wrote:
How about associative array literal then? Regardless of what you call
it I shouldn't get an assertion failure.
True. It's been fixed in dmd2 though, you get:
Error: Integer constant expression expected instead of
On 13/11/2010 20:02, spir wrote:
On Sat, 13 Nov 2010 17:27:08 +
div0d...@sourceforge.net wrote:
How about associative array literal then? Regardless of what you call
it I shouldn't get an assertion failure.
True. It's been fixed in dmd2 though, you get:
Error: Integer constant
Is D supposed to be able to handle nested associative arrays ?
--
/Jacob Carlborg
Should be. Are you having problems?
(I don't use them much, but fwiw, it seems like tango had some
[trivial?] problems with them)
On 11/12/2010 10:08 AM, Jacob Carlborg wrote:
Is D supposed to be able to handle nested associative arrays ?
12 matches
Mail list logo