On Sunday, 4 June 2017 at 12:24:44 UTC, Suliman wrote:
// Will reuse the array, overwriting existing data.
// If other parts of the program are using existing data
// in the array, this will lead to hard-to-track-down bugs.
mytracks.length = 0;
mytracks.assumeSafeAppend();
Could you give an
// Will reuse the array, overwriting existing data.
// If other parts of the program are using existing data
// in the array, this will lead to hard-to-track-down bugs.
mytracks.length = 0;
mytracks.assumeSafeAppend();
Could you give an example where it can lead bugs? Do you mean
multi-thread
On Friday, 2 June 2017 at 13:32:02 UTC, Suliman wrote:
I remember that there was topic about remobing data from
struct/arrays of structs. But I do not remember what is
idiomatic way to do it, and can't google it.
something like:
struct MyTrack
{
ulong id;
string
I remember that there was topic about remobing data from
struct/arrays of structs. But I do not remember what is idiomatic
way to do it, and can't google it.
something like:
struct MyTrack
{
ulong id;
string recordDate;
int velocity;
int