Skip to content

Instantly share code, notes, and snippets.

@majiang
Created September 3, 2012 15:51
Show Gist options
  • Select an option

  • Save majiang/3610208 to your computer and use it in GitHub Desktop.

Select an option

Save majiang/3610208 to your computer and use it in GitHub Desktop.
extern (C) ulong* f(size_t l, ulong* x, ref size_t rl)
{
ulong[] ret;
/* 実際の処理が入る */
rl = ret.length;
return &ret[0];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment