Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Created May 8, 2014 05:03
Show Gist options
  • Save jerstlouis/356d3bf4cbb1671936a4 to your computer and use it in GitHub Desktop.
Save jerstlouis/356d3bf4cbb1671936a4 to your computer and use it in GitHub Desktop.
PrintLn("a" + "B");
-----------------
String __a = { .len = 1, .string = "a", .refCount = 1 };
String __b = { .len = 1, .string = "b", .refCount = 1};
__a.concat(&__b);
PrintLn(__a);
__a.decrefMaybeDelete();
__b.decrefMaybeDelete();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment