Re: dub doesn't work with dmd 1:2.082.0-1.0?

2018-09-18 Thread SuperPrower via Digitalmars-d-learn
On Thursday, 13 September 2018 at 14:31:53 UTC, Jesse Phillips wrote: Can you find /usr/bin/dmd or run dmd? Sorry if I wasn't clear enough, but I have dmd installed, and dub WAS working until upgrade of dmd. I suspect that problem occurs because dub wasn't upgraded from 1.10 -> 1.11, due t

Re: dub doesn't work with dmd 1:2.082.0-1.0?

2018-09-13 Thread SuperPrower via Digitalmars-d-learn
On Thursday, 13 September 2018 at 06:11:53 UTC, rmc wrote: There don't seem to be any changes to dub or dmd directly related to this error perhaps its a packaging issue? I really don't know, looks like it, but it's really weird, like, why and what exactly happened? I'll try asking same questio

dub doesn't work with dmd 1:2.082.0-1.0?

2018-09-10 Thread SuperPrower via Digitalmars-d-learn
dub was working nice until I updated my system (I run ArchLinux32) just now. dmd was updated from version 1:2.081.2-1.0 to 1:2.082.0-1.0 (according to pacman package manager). After that, I couldn't invoke dub for anything. Here is the attempt to run `dub --vverbose`: ``` Using dub registry u

Re: Returning dynamic array from the function?

2018-09-08 Thread SuperPrower via Digitalmars-d-learn
On Saturday, 8 September 2018 at 10:05:31 UTC, rikki cattermole wrote: onReceive: "The event handler that receives incoming data. Be sure to copy the incoming ubyte[] since it is not guaranteed to be valid after the callback returns." It could be a buffer on the stack, either way, .dup it bef

Re: Returning dynamic array from the function?

2018-09-08 Thread SuperPrower via Digitalmars-d-learn
On Saturday, 8 September 2018 at 09:36:21 UTC, rikki cattermole wrote: We're going to need to see a minified version of the code to see what you're doing. Sure, here it is: ``` auto getBoards() { string[] boardList; auto url = baseUrl ~ "/api/v2/boards"; auto http = HT

Returning dynamic array from the function?

2018-09-08 Thread SuperPrower via Digitalmars-d-learn
I have a function that produces dynamic array of strings. I would like to return this array from this function. I understand that dynamic arrays are of reference type, and thus if I try to return array variable, I will actually return a pointer to the first element of the array on the heap. Pro