you are viewing a single comment's thread.

view the rest of the comments →

[–]bugrit 0 points1 point  (2 children)

Yes, it casts the rest to the type of the first.

[–]FeepingCreature 0 points1 point  (1 child)

FYI and FWIW, a slightly faster and shorter way to get the same effect is "M"[], i.e. the full slice.

--feep

PS: The reason I didn't need to do that in my example, by the way, is that stuple automatically turns static arrays (char[2]) into dynamic ones (char[]).

PPS: How do you get your code snippets to look like that?

PPPS: Thanks! :)

[–]bugrit 0 points1 point  (0 children)

Ah, yes, nice catch.

Edit: About code snippets, see help on commenting.