Re: Milliseconds

2019-07-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, July 12, 2019 12:51:28 AM MDT Giovanni Di Maria via Digitalmars- d-learn wrote: > Hi > I have read much, before to write here. > How can i store, to an int variable, the milliseconds of the > current time? > It's simple, but i don't find the solution. > Thank you very much. > > Giovanni

Re: Milliseconds

2019-07-12 Thread Giovanni Di Maria via Digitalmars-d-learn
On Friday, 12 July 2019 at 07:21:58 UTC, Jonathan M Davis wrote: On Friday, July 12, 2019 12:51:28 AM MDT Giovanni Di Maria via Digitalmars- d-learn wrote: [...] You mean if the time is currently 15:46:52.7205007, you want an integer value that's 720? [...] Perfect Jonathan . Thank you

Re: Is there a way to slice non-array type in @safe?

2019-07-12 Thread Patrick Schluter via Digitalmars-d-learn
On Thursday, 11 July 2019 at 19:35:50 UTC, Stefanos Baziotis wrote: On Thursday, 11 July 2019 at 18:46:57 UTC, Paul Backus wrote: Casting from one type of pointer to another and slicing a pointer are both @system, by design. Yes, I'm aware, there are no pointers in the code. The pointer was

Re: Is it possible to execute a function inside .d script that has no main function?

2019-07-12 Thread BoQsc via Digitalmars-d-learn
On Thursday, 11 July 2019 at 10:41:38 UTC, Alex wrote: On Thursday, 11 July 2019 at 09:43:55 UTC, BoQsc wrote: Here I have a file named: module.d [...] There is no main() function since, I want to import this module, into another .d file. ( If I try to import and module.d does have main()

Re: Is there a way to slice non-array type in @safe?

2019-07-12 Thread Stefanos Baziotis via Digitalmars-d-learn
Thank you all for your responses. I understand that the compiler can't ensure @safe and @trusted is needed.. I'm not familiar though with all aspects of D and thought I might have missed something. On Friday, 12 July 2019 at 01:24:06 UTC, Jonathan M Davis wrote: BTW, if you're implementing mem

Blog Post #0052: MVC V - ComboBox with Integers

2019-07-12 Thread Ron Tarrant via Digitalmars-d-learn
Today's post deals with integers in a ComboBox. It's not exactly tricky, but a little clarification never hurts, right? Here's where you'll find it: https://gtkdcoding.com/2019/07/12/0052-mvc-v-int-combobox.html

Re: Blog Post #0052: MVC V - ComboBox with Integers

2019-07-12 Thread BoQsc via Digitalmars-d-learn
On Friday, 12 July 2019 at 11:13:31 UTC, Ron Tarrant wrote: Today's post deals with integers in a ComboBox. It's not exactly tricky, but a little clarification never hurts, right? Here's where you'll find it: https://gtkdcoding.com/2019/07/12/0052-mvc-v-int-combobox.html Gnome project should

Re: Blog Post #0052: MVC V - ComboBox with Integers

2019-07-12 Thread Ron Tarrant via Digitalmars-d-learn
On Friday, 12 July 2019 at 11:29:39 UTC, BoQsc wrote: Gnome project should just rewrite everything in D language, especially the Gnome Shell. At least that would be a right direction. LOL! It would likely take a planet-wide referendum, but I imagine you'll get strong support on this forum. :

Windows segfault, need brief help

2019-07-12 Thread Anonymouse via Digitalmars-d-learn
I'm suddenly getting segfaults when running tests on Windows. It works fine on Linux. I reduced it to a few lines (plus a dependency) with dustmite, but they don't really make sense[1]. Nevertheless they do trigger the segfault. Can someone with Windows 10 and dmd 2.087.0 try the following and

Re: Windows segfault, need brief help

2019-07-12 Thread Stefan Koch via Digitalmars-d-learn
On Friday, 12 July 2019 at 22:46:11 UTC, Anonymouse wrote: I'm suddenly getting segfaults when running tests on Windows. It works fine on Linux. I reduced it to a few lines (plus a dependency) with dustmite, but they don't really make sense[1]. Nevertheless they do trigger the segfault. Can s

Re: Windows segfault, need brief help

2019-07-12 Thread rikki cattermole via Digitalmars-d-learn
dmd v2.082 cannot reproduce Needs to be tested on something newer perhaps?

Re: Memory allocation failed in CT

2019-07-12 Thread Andrey via Digitalmars-d-learn
On Tuesday, 9 July 2019 at 19:04:53 UTC, Max Haughton wrote: Is this a 64 or 32 bit compiler? Also could you post the source code if possible? You could try "--DRT-gcopt=profile:1" druntime flag to see if the compiler is running out of memory for real Thanks for help. I solved my issue by re

Re: Windows segfault, need brief help

2019-07-12 Thread Boris Carvajal via Digitalmars-d-learn
On Friday, 12 July 2019 at 22:46:11 UTC, Anonymouse wrote: I'm suddenly getting segfaults when running tests on Windows. It works fine on Linux. I reduced it to a few lines (plus a dependency) with dustmite, but they don't really make sense[1]. Nevertheless they do trigger the segfault. Can s