Search

November 24, 2010
General »
...spacesToPrint =
+    sizediff_t spacesToPrint =
         f.width // start with the minimum width
         - digits.length  // take away...
November 22, 2010
Learn »
...is D1.  D2 does support appending different width characters to dchar[], I'm not sure...
November 18, 2010
General »
...release {
    const currentWidth = width;
    const currentHeight = height;
    scope (exit) {
        assert(currentWidth == width);
        assert(currentHeight == height...
November 18, 2010
General »
...possible):

void move(...)
    in {
        // ...
    } out {
        assert(width == old.width);
        assert(height == old.height);
    } body {
        // moving...
November 18, 2010
General »
...debug {
        const currentWidth = width;
        const currentHeight = height;
        scope (exit) {
            assert(currentWidth == width);
            assert(currentHeight == height...
November 18, 2010
General »
...allowed to change in a certain way
	// width and height of this Rectangle need to...
November 18, 2010
General »
...int currentWidth = width;
    int currentHeight = height;
    // moving the rectangle here
    assert(currentWidth == width);
    assert(currentHeight...
November 17, 2010
Learn »
...I solved it with:

void bar(char* buf, int width, int height)

Good old C :)
November 16, 2010
General »
...struct not class), generalize within reason (character width).

Would have been great to have a...
November 12, 2010
General »
...may be useful, e.g. for fixed width printing stuff:
  size_t getPhysPos(char[] str...
118 119 120 121 122 123 124 125 126 127 128
Next ›   Last »