[Issue 2984] Failure to find front/back/popBack/popFront/etc should fall back to opApply

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 15 16:22:14 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2984





--- Comment #2 from Koroskin Denis <2korden at gmail.com>  2009-05-15 16:22:13 PDT ---
Note that adding

Type[] opSlice()
{
    return _elements[0.._size];
}

to the Vector struct will result int the following error message instead:

Error: undefined identifier module Vector.empty
Error: function expected before (), not module Vector.empty of type void
Error: undefined identifier module Vector.popFront
Error: function expected before (), not module Vector.popFront of type void
Error: undefined identifier module Vector.front
Error: function expected before (), not module Vector.front of type void

-- 
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