Re: turning an array of structs into a struct of arrays

2015-07-03 Thread Babu via Digitalmars-d-learn
On Friday, 3 July 2015 at 10:52:03 UTC, Laeeth Isharc wrote: I have an array of structs eg struct PriceBar { DateTime date; double open; double high; double low; double close; } (which fields are present in this particular struct will depend on template arguments). what is the best

Re: DMD unittest doesn't work when using visual studio with a "Windows" Subsystem and Winmain combination

2015-07-03 Thread Babu via Digitalmars-d-learn
On Friday, 3 July 2015 at 08:59:17 UTC, Ronnie wrote: Hi I added some unittests {} code in a small test app. With a int main(string[] args){ ... } unittest { ... } and dmd -unittest, everything works fine. If I make a Windows app with a winmain int myWinMain(HINSTANCE hInstance, HINSTANCE h

Re: Allowing Expressions such as (low < value < high)

2014-09-05 Thread babu via Digitalmars-d-learn
On Friday, 5 September 2014 at 07:49:54 UTC, eles wrote: On Friday, 5 September 2014 at 07:26:45 UTC, klpo wrote: On Thursday, 4 September 2014 at 20:29:09 UTC, Nordlöw wrote: On Thursday, 4 September 2014 at 20:03:57 UTC, Nordlöw wrote: The problem is in D "[0..9]" has a completely different