= Appending = ''Part of'' TutorialFundamentals == Description == Shows how appending works with D dynamic strings. == Example == {{{ #!d import std.stdio; void main() { string s; writefln("Length: %d\tString: '%s'", s.length, s); s ~= "something "; writefln("Length: %d\tString: '%s'", s.length, s); s ~= "whatever"; writefln("Length: %d\tString: '%s'", s.length, s); } }}} == Output == {{{ Length: 0 String: '' Length: 10 String: 'something ' Length: 18 String: 'something whatever' }}} == Source == Based on [http://jcc_7.tripod.com/d/tutor/appending.html appending.html] by jcc7.