Ah, of course I find the solution immediately after I post. At least it seems to work fine;

```
struct Array(T) {
  T[] foo;

  this ( size_t size ) {
    T* data = cast(T*)malloc(size);
    foo = data[0..size];
  }
}
```


:-)

Reply via email to