Using Hashtags with posts

2017-04-04 Thread Binarydepth via Digitalmars-d
So I've been a member of Ask Ubuntu at Stack Exchange for a while now. I saw the tags could be useful here: Someone could search Metaprogramming, OOP, Imperative, Data type, Arrays and find something inside the DLearn section. That could work along with a post tutorial session.

Re: Always false float comparisons

2016-05-14 Thread Binarydepth via Digitalmars-d
On Monday, 9 May 2016 at 11:26:55 UTC, Walter Bright wrote: I wonder what's the difference between 1.30f and cast(float)1.30. There isn't one. I always saw type casting happening @ run-time and "literals" (pardon if that's not the correct term) to happen during compilation. I know that ther

Re: Always false float comparisons

2016-05-14 Thread Binarydepth via Digitalmars-d
On Saturday, 14 May 2016 at 20:41:12 UTC, Era Scarecrow wrote: writeln(f == 1.30f); writeln(cf == 1.30f); writeln(If == 1.30f); I guess this returned True ?

Re: Daily downloads in decline

2015-06-10 Thread Binarydepth via Digitalmars-d
On Wednesday, 10 June 2015 at 18:04:45 UTC, Andrei Alexandrescu wrote: On 6/10/15 10:36 AM, Binarydepth wrote: On Monday, 1 June 2015 at 18:11:32 UTC, Andrei Alexandrescu wrote: Per http://erdani.com/d/downloads.daily.png, the 28-day moving average of daily dmd downloads is in pronounced

Re: Daily downloads in decline

2015-06-10 Thread Binarydepth via Digitalmars-d
On Monday, 1 June 2015 at 18:11:32 UTC, Andrei Alexandrescu wrote: Per http://erdani.com/d/downloads.daily.png, the 28-day moving average of daily dmd downloads is in pronounced decline following a peak at the 2.067 release. It is possible that the recent release of Rust 1.0 has caused that, sh

Re: It may be useful to allow declaring variables without type

2015-06-10 Thread Binarydepth via Digitalmars-d
On Wednesday, 10 June 2015 at 17:32:18 UTC, Atila Neves wrote: On Wednesday, 10 June 2015 at 17:04:20 UTC, Binarydepth wrote: I think that it could be useful to declare variables as Python does and statically too in the same language. Just make it's type when a value is assigned t

Re: Daily downloads in decline

2015-06-10 Thread Binarydepth via Digitalmars-d
On Monday, 1 June 2015 at 18:11:32 UTC, Andrei Alexandrescu wrote: Per http://erdani.com/d/downloads.daily.png, the 28-day moving average of daily dmd downloads is in pronounced decline following a peak at the 2.067 release. It is possible that the recent release of Rust 1.0 has caused that, sh

Re: It may be useful to allow declaring variables without type

2015-06-10 Thread Binarydepth via Digitalmars-d
On Wednesday, 10 June 2015 at 17:13:33 UTC, Adam D. Ruppe wrote: You can do this with variants or even just plain strings. Hi, If it is not much trouble, care to explain how ?. I think that there would be need to have separate algorithms by data type. Maybe you can test the value of the data

It may be useful to allow declaring variables without type

2015-06-10 Thread Binarydepth via Digitalmars-d
I think that it could be useful to declare variables as Python does and statically too in the same language. Just make it's type when a value is assigned to the variable. This could allow a program to adjust it's data types accordingly to input when data is received from another program or an u

Re: Is this a bug ?

2013-11-28 Thread Binarydepth
On Friday, 29 November 2013 at 01:37:15 UTC, Adam D. Ruppe wrote: On Friday, 29 November 2013 at 01:35:31 UTC, bearophile wrote: A statically typed language should give a compile-time error for such mistake. It is perfectly valid to pass a string to the write function. He simply called the wr

Re: Is this a bug ?

2013-11-28 Thread Binarydepth
On Friday, 29 November 2013 at 00:40:29 UTC, Adam D. Ruppe wrote: On Friday, 29 November 2013 at 00:35:30 UTC, Binarydepth wrote: It compiles but in run time terminal shows a segmentation fault. works for me without segfaulting. What data did you input? write(" %d: %d\n", bd, a

Is this a bug ?

2013-11-28 Thread Binarydepth
Here is my code : It compiles but in run time terminal shows a segmentation fault. Am I doing something wrong ? Or do I have to file a Bug ? import std.stdio : write, readf; void funcion(int a, int t) { int temp, bd, an; temp=t