Search

August 25, 2010
Issues »
...0);
    }
    body
    {
        ptr = cast(uint*)v.ptr;
        len = numbits;
    }



But if you compile (with no...
August 24, 2010
Issues »
...the BitArray struct:

struct BitArray
{
    size_t len;
    uint* ptr;

...

    void init(void[] v, size...
August 24, 2010
General »
...fat pointers (C structs that keep ptr + len) as D may be enough to avoid...
August 24, 2010
Learn »
...0);
    }
    body
    {
        ptr = cast(uint*)v.ptr;
        len = numbits;
    }


But it seems this program works...
August 10, 2010
Learn »
...offset, int len)
{
        auto pre = array[0 .. offset];
        auto slice = array[offset .. offset+len];
        auto...
August 09, 2010
Learn »
...offset, int len)
{
	auto pre = array[0 .. offset];
	auto slice = array[offset .. offset+len];
	auto...
August 08, 2010
General »
...for line in open(file_name):
        total += len(line)
    return total

print "Total:", process(argv...
August 07, 2010
Learn »
...text(num);
    int len = s.length;
    for (int i = 0; i < len / 2; ++i) {
        if...
August 05, 2010
General »
...enforce could be made, so this works:

enforce(a < len, new RangeError("out of bounds"));
July 30, 2010
General »
...int wctomb(char *s, wchar_t wch) {
    len = WideCharToMultiByte(__locale_codepage, ...);
}

I found the C...
87 88 89 90 91 92 93 94 95 96 97 98
Next ›   Last »