Re: Sorted ranges in combined sorted order?

2016-12-31 Thread Matthew Gamble via Digitalmars-d-learn
On Thursday, 20 October 2016 at 22:01:01 UTC, Ali Çehreli wrote: On 10/20/2016 02:15 PM, Nordlöw wrote: On Thursday, 20 October 2016 at 21:14:14 UTC, Nordlöw wrote: Given a range of ranges where individual ranges are already Ahh, my mistake. It's

why won't byPair work with a const AA?

2017-07-29 Thread Matthew Gamble via Digitalmars-d-learn
I have a class member function from which I'm trying to return a sorted array of key, value tuples stored in an associative array as a private member. The member function should be able to be marked const to prevent the AA from being modified. I have reduced the problem to the simple case

Re: why won't byPair work with a const AA?

2017-07-29 Thread Matthew Gamble via Digitalmars-d-learn
On Sunday, 30 July 2017 at 04:36:19 UTC, Ali Çehreli wrote: On 07/29/2017 09:19 PM, Matthew Gamble wrote: I have a class member function from which I'm trying to return a sorted array of key, value tuples stored in an associative array as a private member. The member function should be able to

problem with multiwayMerge and chunkBy

2017-11-04 Thread Matthew Gamble via Digitalmars-d-learn
Dear most helpful and appreciated D community, I'm a non-pro academic biologist trying to code a modeler of transcription in D. I've run into a small roadblock. Any help would be greatly appreciated. I'm hoping someone can tell me why I get the following run-time error from this code. I've

Re: problem with multiwayMerge and chunkBy

2017-11-05 Thread Matthew Gamble via Digitalmars-d-learn
On Sunday, 5 November 2017 at 03:21:06 UTC, Nicholas Wilson wrote: On Saturday, 4 November 2017 at 18:57:17 UTC, Matthew Gamble wrote: [...] It should, this looks like a bug somewhere, please file one at issues.dlang.org/ . in the mean time struct Replicate(T) { Tuple!(T, uint) e;

etc.c.zlib help

2015-07-01 Thread Matthew Gamble via Digitalmars-d-learn
I am trying to make the transition from C++ to D. I've hit a snag with the etc.c.zlib module where any attempt to use this module to open a file yields an error: Error 42: Symbol Undefined __lseeki64. Here is a simple example of code that gives the error upon compilation. import std.stdio;

Re: etc.c.zlib help

2015-07-03 Thread Matthew Gamble via Digitalmars-d-learn
On Friday, 3 July 2015 at 02:16:45 UTC, Mike Parker wrote: On 7/3/2015 8:44 AM, Matthew Gamble wrote: [...] The Phobos source actually includes the C source for zlib. You can find it in the DMD distribution in src/phobos/etc/c/zlib/. When Phobos is compiled, it also compiles zlib and pulls

Re: etc.c.zlib help

2015-07-02 Thread Matthew Gamble via Digitalmars-d-learn
On Thursday, 2 July 2015 at 20:19:49 UTC, Laeeth Isharc wrote: On Thursday, 2 July 2015 at 03:07:43 UTC, Matthew Gamble wrote: I am trying to make the transition from C++ to D. I've hit a snag with the etc.c.zlib module where any attempt to use this module to open a file yields an error:

Re: etc.c.zlib help

2015-07-02 Thread Matthew Gamble via Digitalmars-d-learn
On Thursday, 2 July 2015 at 12:36:35 UTC, Nicholas Wilson wrote: On Thursday, 2 July 2015 at 03:07:43 UTC, Matthew Gamble wrote: I am trying to make the transition from C++ to D. I've hit a snag with the etc.c.zlib module where any attempt to use this module to open a file yields an error:

LNK2019 error from using a function pointer to core.bitop functions?

2015-07-15 Thread Matthew Gamble via Digitalmars-d-learn
This member function of my struct uses a function pointer btx. When the line declaring the function pointer is present I get a LNK2019 error: unresolved external symbol. bool opIndexAssign(bool value, size_t[2] inds) { int function(size_t*, size_t) btx = (value) ? bts : btr; // error is here

Re: LNK2019 error from using a function pointer to core.bitop functions?

2015-07-17 Thread Matthew Gamble via Digitalmars-d-learn
On Friday, 17 July 2015 at 15:49:46 UTC, Roland Hadinger wrote: On Friday, 17 July 2015 at 15:47:39 UTC, Roland Hadinger wrote: Otherwise, I'd use templates and an alias. Maybe this will result in faster code: bool opIndexAssign(bool value, size_t[2] inds) { void impl(bool