typedef const(char)[] A; A stripl(A s) { uint i; return s[i .. $]; } This should work. A slice of a typedef'ed array should not spoil the typedef.
typedef as subtype of const(char)[] just "inherits" methods of its supertype including opSlice :) which is defined as const(char)[] opSlice(size_t, size_t)
That's true of operator overloads defined by the programmer. This, OTOH, is a built-in operation on a built-in type form. Therefore the code is valid, just like typedef int Value; Value a, b, c; ... a = b + c;
Fixed dmd 1.041 and 2.026
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル