Re: no print function output do while

2017-09-28 Thread dark777 via Digitalmars-d-learn
On Thursday, 28 September 2017 at 18:46:56 UTC, Ali Çehreli wrote: On 09/28/2017 08:13 AM, dark777 wrote: no print function output do while in my program after entering the data and select the function that will print on the screen the same is not printing .. and if I choose 'q' or 'Q' does

Re: no print function output do while

2017-09-28 Thread Ali Çehreli via Digitalmars-d-learn
On 09/28/2017 08:13 AM, dark777 wrote: no print function output do while in my program after entering the data and select the function that will print on the screen the same is not printing .. and if I choose 'q' or 'Q' does the program not close what is happening? should not it work just

Re: Inter-module symbol resolution error of template type-parameter when using mixins

2017-09-28 Thread Nordlöw via Digitalmars-d-learn
On Wednesday, 27 September 2017 at 18:24:04 UTC, Nordlöw wrote: At ... Thanks Adam for your advice at https://stackoverflow.com/questions/46454887/inter-module-symbol-resolution-error-of-template-type-parameter-when-using-mixin?noredirect=1#comment79867792_46454887 I made things work in this

Re: no print function output do while

2017-09-28 Thread dark777 via Digitalmars-d-learn
On Thursday, 28 September 2017 at 21:34:46 UTC, arturg wrote: On Thursday, 28 September 2017 at 20:17:24 UTC, Ali Çehreli wrote: On 09/28/2017 12:18 PM, dark777 wrote: On Thursday, 28 September 2017 at 18:46:56 UTC, Ali Çehreli wrote: On 09/28/2017 08:13 AM, dark777 wrote: no print function

Re: no print function output do while

2017-09-28 Thread arturg via Digitalmars-d-learn
On Thursday, 28 September 2017 at 20:17:24 UTC, Ali Çehreli wrote: On 09/28/2017 12:18 PM, dark777 wrote: On Thursday, 28 September 2017 at 18:46:56 UTC, Ali Çehreli wrote: On 09/28/2017 08:13 AM, dark777 wrote: no print function output do while in my program after entering the data and

Re: no print function output do while

2017-09-28 Thread Ali Çehreli via Digitalmars-d-learn
On 09/28/2017 12:18 PM, dark777 wrote: On Thursday, 28 September 2017 at 18:46:56 UTC, Ali Çehreli wrote: On 09/28/2017 08:13 AM, dark777 wrote: no print function output do while in my program after entering the data and select the function that will print on the screen the same is not

no print function output do while

2017-09-28 Thread dark777 via Digitalmars-d-learn
no print function output do while in my program after entering the data and select the function that will print on the screen the same is not printing .. and if I choose 'q' or 'Q' does the program not close what is happening? should not it work just like in C ++?

Re: Day of week from date

2017-09-28 Thread Joel via Digitalmars-d-learn
Thanks guys. :-D

Day of week from date

2017-09-28 Thread Joel via Digitalmars-d-learn
With a given date, I want to know what day it is (like Sunday, Monday, etc). I had a look up on std.datetime, and core.time, but they don't seem to have a function for it.

Re: Day of week from date

2017-09-28 Thread rikki cattermole via Digitalmars-d-learn
On 29/09/2017 4:25 AM, Joel wrote: With a given date, I want to know what day it is (like Sunday, Monday, etc). I had a look up on std.datetime, and core.time, but they don't seem to have a function for it. https://dlang.org/phobos/std_datetime_date.html#.DateTime.dayOfWeek

Re: Day of week from date

2017-09-28 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, September 29, 2017 04:32:44 rikki cattermole via Digitalmars-d- learn wrote: > On 29/09/2017 4:25 AM, Joel wrote: > > With a given date, I want to know what day it is (like Sunday, Monday, > > etc). > > > > I had a look up on std.datetime, and core.time, but they don't seem to > > have

Re: Is it possible to specify the address returned by the address of operator?

2017-09-28 Thread DreadKyller via Digitalmars-d-learn
On Thursday, 28 September 2017 at 14:01:33 UTC, user1234 wrote: On Thursday, 28 September 2017 at 00:11:56 UTC, DreadKyller wrote: Notice how dereferencing the pointer did not call the overloaded function, because a pointer to Test is not the same type as a Test. Yeah, this is rather made to

Re: Is it possible to specify the address returned by the address of operator?

2017-09-28 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, September 27, 2017 22:01:26 DreadKyller via Digitalmars-d- learn wrote: > Also off-topic slightly, but am I the only one with massive > latency on this site? It took like almost 2 minutes from me > hitting reply before this page showed up, and my last few posts > took like a minute

Re: Sectioned variables?

2017-09-28 Thread kinke via Digitalmars-d-learn
On Wednesday, 27 September 2017 at 11:59:16 UTC, Arav Ka wrote: GCC supports a `__attribute((section("...")))` for variables to put them in specific sections in the final assembly. Is there any way this can be achieved in D? Does GDC support this? LDC does, see

Re: Is it possible to specify the address returned by the address of operator?

2017-09-28 Thread Steven Schveighoffer via Digitalmars-d-learn
On 9/27/17 12:35 PM, DreadKyller wrote: Been using D for a couple years now, however one problem I've had, more so recently since I've been dealing a lot with OpenGL is related to pointers. I have a matrix object to aid with the matrix math required for working with 3D transforms. However

Re: Is it possible to specify the address returned by the address of operator?

2017-09-28 Thread kinke via Digitalmars-d-learn
On Thursday, 28 September 2017 at 10:24:28 UTC, Jonathan M Davis wrote: On Wednesday, September 27, 2017 22:01:26 DreadKyller via Digitalmars-d- learn wrote: Also off-topic slightly, but am I the only one with massive latency on this site? It took like almost 2 minutes from me hitting reply

Re: Sectioned variables?

2017-09-28 Thread Nicholas Wilson via Digitalmars-d-learn
On Wednesday, 27 September 2017 at 11:59:16 UTC, Arav Ka wrote: GCC supports a `__attribute((section("...")))` for variables to put them in specific sections in the final assembly. Is there any way this can be achieved in D? Does GDC support this? GDC should

Re: Is it possible to specify the address returned by the address of operator?

2017-09-28 Thread user1234 via Digitalmars-d-learn
On Thursday, 28 September 2017 at 00:11:56 UTC, DreadKyller wrote: On Wednesday, 27 September 2017 at 23:24:58 UTC, user1234 wrote: Notice how dereferencing the pointer did not call the overloaded function, because a pointer to Test is not the same type as a Test. Yeah, this is rather made