We're long overdue for a "D is awesome" post
Ali Çehreli
acehreli at yahoo.com
Wed May 31 09:06:10 UTC 2023
On 5/30/23 14:42, H. S. Teoh wrote:
> So here's one.
Thank you for reminding us. ;)
> void genSplitHtml(File = std.stdio.File)(Data data, ...) { ... }
Smart! In the past, I used runtime polymorhism to achieve the same. Oops! :)
> MockFile can be expanded in the future to simulate, e.g. a full
> filesystem,
Yep. Mine was using associative arrays keyed by strings (file names) and
data as dynamic arrays.
Ali
More information about the Digitalmars-d
mailing list