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

2018-09-13 Thread rmc via Digitalmars-d-learn
On Thursday, 13 September 2018 at 14:31:53 UTC, Jesse Phillips wrote: On Monday, 10 September 2018 at 09:23:19 UTC, SuperPrower wrote: 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 pa

Re: remove file access denied

2018-09-13 Thread Norm via Digitalmars-d-learn
On Thursday, 13 September 2018 at 23:25:24 UTC, Josphe Brigmo wrote: I am trying to remove a file remove(filename); and I get an access denied! I can remove it from explorer just fine. I am able to remove other files but there should be no reason why the file can't be removed in this case.

Re: DMD32 compiling gtkd out of memory on 32bit Windows 7 machine

2018-09-13 Thread dangbinghoo via Digitalmars-d-learn
On Wednesday, 12 September 2018 at 15:13:36 UTC, Timoses wrote: try `dub --build-mode=singleFile` ? I believe this will compile each file and then link them together (instead of compiling it all together what dub does, afaik). There's been another topic on memory consumption of compilation [1

remove file access denied

2018-09-13 Thread Josphe Brigmo via Digitalmars-d-learn
I am trying to remove a file remove(filename); and I get an access denied! I can remove it from explorer just fine. I am able to remove other files but there should be no reason why the file can't be removed in this case. All I am doing to mess with the file is reading it's contents right

Re: Any free stock market data API?

2018-09-13 Thread Aldog via Digitalmars-d-learn
On Thursday, 4 January 2018 at 23:04:44 UTC, Amorphorious wrote: Most are in other languages: https://www.alphavantage.co/ https://iextrading.com/ are two free ones. I'm just hoping for a more D'ish solution. I know https://intrinio.com offers free financial data that can be accessed throu

Re: Error: incompatible types for 'shared(SysTime)' and 'shared(SysTime)'

2018-09-13 Thread ag0aep6g via Digitalmars-d-learn
On 09/13/2018 03:25 PM, Arafel wrote:     // How can we update the timestamp? Neither of those work     timestamp = Clock.currTime;     timestamp = cast(shared) Clock.currTime; cast() timestamp = Clock.currTime;

Re: dip1000 issue

2018-09-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/7/18 7:59 AM, Orfeo wrote: On Friday, 7 September 2018 at 14:36:18 UTC, rikki cattermole wrote: On 08/09/2018 2:29 AM, Orfeo wrote: ==> And why (maybe a silly question) `-dip1000` breaks  my project so badly without warning.. DIP 1000 is an experimental addition to D, that is yet to be c

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

2018-09-13 Thread Jesse Phillips via Digitalmars-d-learn
On Monday, 10 September 2018 at 09:23:19 UTC, SuperPrower wrote: 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

Re: Error: incompatible types for 'shared(SysTime)' and 'shared(SysTime)'

2018-09-13 Thread Arafel via Digitalmars-d-learn
On 07/05/2016 04:16 PM, ag0aep6g wrote: On 07/05/2016 07:25 AM, ketmar wrote: cast `shared` away. yes, this is how you supposed to use it now: cast it away. after having ensured thread safety that is Sorry to resurrect an old thread, but then how can one update a SysTime field in a shared c

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

Re: Pass 'this' as reference

2018-09-13 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, September 13, 2018 4:04:58 AM MDT Jan via Digitalmars-d-learn wrote: > Many thanks Adam and Steve! Works like a charm! :D > I presumed classes are lvalues. I shouldn't make things more > complicated than they are ;-) Well, the variables _are_ lvalues. It's just that they're reference

Re: Pass 'this' as reference

2018-09-13 Thread Jan via Digitalmars-d-learn
Many thanks Adam and Steve! Works like a charm! :D I presumed classes are lvalues. I shouldn't make things more complicated than they are ;-)

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

2018-09-13 Thread Kagamin via Digitalmars-d-learn
You didn't update dub?