How can I make a nested array and flatten it at run time in D?

2019-03-07 Thread Philos Kim via Digitalmars-d-learn
I want to make a nested array and flatten it at run-time like this. auto nestedArray = [1, 2, [3, 4], 5]; auto flattenedArray = myFun(nestedArray); writeln(flattenedArray); // => [1, 2, 3, 4, 5] How can I do this in D? Please help me out!

linker @ meaning and how to compile static libs

2012-02-02 Thread Kim
=Tango -L/SUBSYSTEM:console:5 OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html .objs\sevenz.obj(sevenz) Error 42: Symbol Undefined _main7zDec@12 --- errorlevel 1 From Kim