Skip to content

Commit c08ec64

Browse files
committed
fix RCArray.opDollar
1 parent 41cfb8d commit c08ec64

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/mir/rcarray.d

+6-6
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ struct mir_rcarray(T)
340340
mir_rcarray!(immutable T) lightImmutable()() scope return immutable @nogc nothrow @trusted @property
341341
{ return cast(typeof(return)) this; }
342342

343-
size_t opDollar(size_t pos : 0)() @trusted scope pure nothrow @nogc
343+
size_t opDollar(size_t pos : 0)() @trusted scope pure nothrow @nogc const
344344
{
345345
return _context !is null ? _context.length : 0;
346346
}
@@ -568,17 +568,17 @@ version(mir_test)
568568
this(this) @nogc nothrow @safe
569569
{
570570
() @trusted {
571-
// puts("this(this)\n");
571+
puts("this(this)\n");
572572
} ();
573573
}
574574

575575
~this() nothrow @nogc @safe
576576
{
577577
() @trusted {
578-
// if (s)
579-
// puts("~this()\n");
580-
// else
581-
// puts("~this() - zero\n");
578+
if (s)
579+
puts("~this()\n");
580+
else
581+
puts("~this() - zero\n");
582582
} ();
583583
}
584584
}

0 commit comments

Comments
 (0)