[Issue 7992] std.algorithm.find breaks in certain circumstances
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Apr 26 14:59:43 PDT 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7992
--- Comment #1 from William Moore <nyphbl8d at gmail.com> 2012-04-26 15:00:48 PDT ---
Note: the structure definition is incorrect, it should be:
struct omgstring {
        string data;
        // Start hasLength functions
        @property {
                size_t length() const {return data.length;}
                void length(size_t len) {data.length = len;}
        }
        // End hasLength functions
        // Start InputRange functions
        bool empty() const {return data.empty();}
        dchar front() const {return data.front();}
        void popFront() {data.popFront();}
        // End InputRange functions
        // Start ForwardRange functions (implies InputRange)
        omgstring save() {return this;}
        // End ForwardRange functions
}
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list