A Case for Oxidation: A potential missed opportunity for D
kinke
noone at nowhere.com
Fri Jun 29 11:17:34 UTC 2018
On Friday, 29 June 2018 at 11:04:30 UTC, rikki cattermole wrote:
> It greatly simplifies development against existing C/C++
> codebases.
How so? By telling people you can express C++:
void cpy(char *dst, const char *src, size_t size)
{
for (size_t i; i < size; ++i)
dst[i] = src[i];
}
elegantly and safe like this in D:
void cpy(void[] dst, void[] src) { dst[] = src[]; }
unless they are using betterC (undefined reference to
'_d_arraycopy')? Just to highlight one lost language feature.
More information about the Digitalmars-d
mailing list