On Tue, 01 Nov 2011 14:42:42 -0400, J Arrizza <cppge...@gmail.com> wrote:
Robert,

I tried using variant.d using your exact test program below and I got
compiler errors:

$ dmd  variant.d dtest.d
variant.d(273): Error: no property 'length' for type 'Result'
variant.d(273): Error: no property 'length' for type 'Result'
variant.d(274): Error: no property 'length' for type 'Result'
variant.d(274): Error: no property 'length' for type 'Result'
variant.d(274): Error: no property 'length' for type 'Result'
variant.d(275): Error: no property 'length' for type 'Result'
variant.d(277): Error: no property 'length' for type 'Result'
variant.d(277): Error: no property 'length' for type 'Result'
variant.d(277): Error: no property 'length' for type 'Result'
variant.d(277): Error: no property 'length' for type 'Result'
variant.d(280): Error: no property 'length' for type 'Result'
$ dmd -v
DMD64 D Compiler v2.055

Am I missing a switch or something?

John

Nope, (hopefully) just patches. I maintain a list of the bugzilla patches (i.e. 
http://d.puremagic.com/issues/show_bug.cgi?id=5155) I've applied at the top of 
the file. But, mostly those are so DMD doesn't ICE; I've never seen this 
particular error before and am not sure how to interpret it. Hmm.. I don't use 
a Result type, but std.algoroithm does and one of the patches I always use is 
6256 (http://d.puremagic.com/issues/show_bug.cgi?id=6256), which addresses 
length for Map.

Reply via email to