Introspection/Reflection/etc on Linux

J Arrizza cppgent0 at gmail.com
Thu Nov 3 03:26:45 PDT 2011


Robert,

This stub shows the issue:

import std.stdio;
import std.range;

void main(string[] args)
  {
    string id = "somestring";
    auto rid = retro(id);
    writeln(rid.length);
  }

$: dmd  dtest.d
dtest.d(8): Error: no property 'length' for type 'Result'


I haven't applied either patch you mentioned below. Neither patch seems to
address retro() or Result...

John



On Wed, Nov 2, 2011 at 6:43 AM, Robert Jacques <sandford at jhu.edu> wrote:

> On Tue, 01 Nov 2011 14:42:42 -0400, J Arrizza <cppgent0 at 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
>>
>
> (I apologize if this gets sent twice, my newsreader is acting up)
>
> Nope, (hopefully) just patches. I maintain a list of the bugzilla patches
> (i.e. http://d.puremagic.com/issues/**show_bug.cgi?id=5155<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<http://d.puremagic.com/issues/show_bug.cgi?id=6256>),
> which addresses length for Map.
>



-- 
John
blog: http://arrizza.blogspot.com/
web: http://www.arrizza.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20111103/13a1b8c0/attachment.html>


More information about the Digitalmars-d mailing list