digitalmars.D.learn - Regarding std.collection.Array
- bearophile (9/9) Aug 27 2013 Is it a good idea to add to std.collection.Array a method similar
- Tobias Pankrath (4/13) Aug 28 2013 It could be useful. Although I currently wouldn't have any use
Is it a good idea to add to std.collection.Array a method similar
to:
T[] unsafeRelease() pure nothrow {
return this._data._payload;
}
It's meant to be used as an unsafe hack to call some some
functions that require a built-in array as input.
Bye,
bearophile
Aug 27 2013
On Wednesday, 28 August 2013 at 00:45:48 UTC, bearophile wrote:
Is it a good idea to add to std.collection.Array a method
similar to:
T[] unsafeRelease() pure nothrow {
return this._data._payload;
}
It's meant to be used as an unsafe hack to call some some
functions that require a built-in array as input.
Bye,
bearophile
It could be useful. Although I currently wouldn't have any use
cases in my projects.
It should return this._data._payload[0 .. length].
Aug 28 2013








"Tobias Pankrath" <tobias pankrath.net>