Re: D mention on developer.apple.com

2014-09-26 Thread AsmMan via Digitalmars-d
On Friday, 26 September 2014 at 09:18:20 UTC, Chris wrote: On Friday, 26 September 2014 at 06:37:49 UTC, Jacob Carlborg wrote: On 26/09/14 03:31, Michel Fortin wrote: Maybe this will be of interest to someone. D was mentioned on the official Swift Blog today: Swift borrows a clever feature fr

Re: What are the worst parts of D?

2014-09-22 Thread AsmMan via Digitalmars-d
On Saturday, 20 September 2014 at 14:22:32 UTC, Tofu Ninja wrote: On Saturday, 20 September 2014 at 13:30:24 UTC, Ola Fosheim Grostad wrote: On Saturday, 20 September 2014 at 12:39:23 UTC, Tofu Ninja wrote: What do you think are the worst parts of D? 1. The whining in the forums. 2. Lacks fo

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-09 Thread AsmMan via Digitalmars-d
On Tuesday, 9 September 2014 at 14:50:37 UTC, Andre Kostur wrote: On 2014-09-09, 6:55 AM, ketmar via Digitalmars-d wrote: On Tue, 09 Sep 2014 13:15:55 + AsmMan via Digitalmars-d wrote: in : templatename‹params› out: templatename!(params) Why dou want to turn it into C++'s style?

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-09 Thread AsmMan via Digitalmars-d
On Tuesday, 9 September 2014 at 13:56:10 UTC, ketmar via Digitalmars-d wrote: On Tue, 09 Sep 2014 13:15:55 + AsmMan via Digitalmars-d wrote: > in : templatename‹params› > out: templatename!(params) Why dou want to turn it into C++'s style? look carefully: it's not &quo

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-09 Thread AsmMan via Digitalmars-d
On Monday, 8 September 2014 at 08:51:10 UTC, Ola Fosheim Grøstad wrote: I've started to make some minor mods to the DMD parser to tailor it to my own taste, but there is no reason to do double work, even if experimental. So I wonder which patches are available or in the works by others? I'm c

Re: Can I pass a function by parameter?

2014-09-07 Thread AsmMan via Digitalmars-d
On Sunday, 7 September 2014 at 21:42:31 UTC, Jakob Ovrum wrote: On Sunday, 7 September 2014 at 21:31:11 UTC, AsmMan wrote: Thank you too. Btw, why the & operator in this syntax? I used to think ref keyword sort of C's T** and & operator is neeeded.. or is it because f can be a function called w

Re: Can I pass a function by parameter?

2014-09-07 Thread AsmMan via Digitalmars-d
On Sunday, 7 September 2014 at 21:02:16 UTC, John Colvin wrote: On Sunday, 7 September 2014 at 20:47:47 UTC, AsmMan wrote: I'm trying to use a bit of function programming. In a function like this: int f(in int[] arr, bool delegate(int) func); call using: bool g(int n) { ... } f(arr, g); ins

Re: Can I pass a function by parameter?

2014-09-07 Thread AsmMan via Digitalmars-d
On Sunday, 7 September 2014 at 21:23:26 UTC, Jakob Ovrum wrote: On Sunday, 7 September 2014 at 21:02:16 UTC, John Colvin wrote: bool g(int n) { ... } f(arr, &g); This will fail if `&g` is a function pointer, such as when `g` is declared at module-level scope. In that case, it has to be expli

Can I pass a function by parameter?

2014-09-07 Thread AsmMan via Digitalmars-d
I'm trying to use a bit of function programming. In a function like this: int f(in int[] arr, bool delegate(int) func); call using: bool g(int n) { ... } f(arr, g); instead of: f(arr, x => x == 0); it is possible?

Re: Mono corrupted D files

2014-09-06 Thread AsmMan via Digitalmars-d
On Saturday, 6 September 2014 at 19:09:30 UTC, Kapps wrote: On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote: Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the

Re: Mono corrupted D files

2014-09-06 Thread AsmMan via Digitalmars-d
On Saturday, 6 September 2014 at 17:51:50 UTC, Etienne Cimon wrote: On 2014-09-05 21:48, AsmMan wrote: I was so happy when my search got a result... but these results are very small blocks of an old version of the files I lost. One of the files had around 800 lines I can find say, 150/180 line

Re: Mono corrupted D files

2014-09-05 Thread AsmMan via Digitalmars-d
Does anyone knows if the Mono for D is active on this forum? or even knows how can I contact he? I can't find any email/web page... Probably he knows if there's a way to get back this zero-ed files. Get them back by reading from a hex debugger was the closest I did so far but as it just show

Re: Mono corrupted D files

2014-09-05 Thread AsmMan via Digitalmars-d
On Thursday, 4 September 2014 at 15:52:57 UTC, Bruno Medeiros wrote: On 03/09/2014 22:13, AsmMan wrote: Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex de

Re: Mono corrupted D files

2014-09-05 Thread AsmMan via Digitalmars-d
On Thursday, 4 September 2014 at 03:04:12 UTC, Etienne Cimon wrote: On 2014-09-03 17:13, AsmMan wrote: Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex deb

Re: Mono corrupted D files

2014-09-03 Thread AsmMan via Digitalmars-d
On Thursday, 4 September 2014 at 02:22:27 UTC, Sativa wrote: On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote: Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the

Re: Mono corrupted D files

2014-09-03 Thread AsmMan via Digitalmars-d
On Thursday, 4 September 2014 at 00:37:52 UTC, Israel wrote: On Wednesday, 3 September 2014 at 21:46:54 UTC, AsmMan wrote: On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote: Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values

Re: Mono corrupted D files

2014-09-03 Thread AsmMan via Digitalmars-d
On Wednesday, 3 September 2014 at 21:13:31 UTC, AsmMan wrote: Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep

Mono corrupted D files

2014-09-03 Thread AsmMan via Digitalmars-d
Something very strange happened 2/3 days ago. Two of my D files of the project I was working on got all values replaced by 0 (that's what I seen rather D code if I open the file with a hex debugger). The file size of both files keep intact although. And no, I have no backup of these files. I ha

Re: BitC, Rust, dog food and more

2014-08-21 Thread AsmMan via Digitalmars-d
On Thursday, 21 August 2014 at 10:02:44 UTC, Daniel Murphy wrote: "eles" wrote in message news:hojvezprzeaqqceml...@forum.dlang.org... > AFAIK, ddmd is well underway and is pretty much in an > alpha-state now. More precisely, I was asking this: http://forum.dlang.org/post/jko1cn$1s5v$1...@

Re: CaseStatement specification issue

2014-08-14 Thread AsmMan via Digitalmars-d
On Thursday, 14 August 2014 at 16:01:05 UTC, Baz wrote: On Thursday, 14 August 2014 at 13:19:36 UTC, Sergey Kozyr wrote: Sorry for previous message. Once again: I was reading D language reference and found some issue with "case ... :" statement specifications. Documentation http://dlang.org/sta

Re: Google definitely biased…

2014-08-11 Thread AsmMan via Digitalmars-d
On Monday, 11 August 2014 at 15:34:30 UTC, Sönke Ludwig wrote: Am 11.08.2014 17:23, schrieb Russel Winder via Digitalmars-d: … so what's new? I was trying to search for web-based material on D ranges and Go slices to see if they are basically the same thing. As soon as golang is a query term,

Re: Using D

2014-07-11 Thread AsmMan via Digitalmars-d
On Friday, 11 July 2014 at 17:15:36 UTC, H. S. Teoh via Digitalmars-d wrote: On Fri, Jul 11, 2014 at 03:30:15PM +, Chris via Digitalmars-d wrote: I have followed the recent discussions about D and I can see the usual pattern, to wit GC, Go (or whatever) is so much better, everyone blaming

Re: Better AAs

2014-07-06 Thread AsmMan via Digitalmars-d
On Sunday, 6 July 2014 at 22:53:56 UTC, bearophile wrote: Recently some people have said that D has about two thousand bugs open, so there is no hope to fix them, etc. Bye, bearophile Where was that?

Re: shorter alternative of constructor with parameter

2014-06-23 Thread AsmMan via Digitalmars-d
On Tuesday, 24 June 2014 at 03:19:58 UTC, AsmMan wrote: On Saturday, 21 June 2014 at 17:17:57 UTC, Suliman wrote: Dart and few others modern languages support short declaration constructor with parameter: class Person { String name; Person(String name) { this.name = name; } } // Shorte

Re: shorter alternative of constructor with parameter

2014-06-23 Thread AsmMan via Digitalmars-d
On Saturday, 21 June 2014 at 17:17:57 UTC, Suliman wrote: Dart and few others modern languages support short declaration constructor with parameter: class Person { String name; Person(String name) { this.name = name; } } // Shorter alternative class Person { String name; // par

Where is obj2asm on Windows?

2014-06-10 Thread AsmMan via Digitalmars-d
I have dmd and dmc installed on my system but I can't find obj2asm executable. IIRC, when I was on Linux I just installed dmd and had working obj2asm. Where's it on Windows 64-bit?

Re: [OT] Apple introduces Swift as Objective-C sucessor

2014-06-02 Thread AsmMan via Digitalmars-d
On Tuesday, 3 June 2014 at 00:06:15 UTC, Walter Bright wrote: On 6/2/2014 3:03 PM, Brad Anderson wrote: I like how the lambdas can omit the parameters then reference them by special $0, $1, etc (e.g., { $0 < $1 }). We had something similar years ago, to support regexes, and people hated it s

Re: D Users Survey: Primary OS?

2014-05-31 Thread AsmMan via Digitalmars-d
On Saturday, 31 May 2014 at 12:15:57 UTC, Adam D. Ruppe wrote: On Saturday, 31 May 2014 at 05:29:00 UTC, AsmMan wrote: Did you mean you use dmd compiler 32-bit itself or are you just using a 64-bit one with -m32 flag? the 32 bit compiler itself I was having problems like some functions like

Re: D Users Survey: Primary OS?

2014-05-30 Thread AsmMan via Digitalmars-d
On Thursday, 29 May 2014 at 20:07:53 UTC, Adam D. Ruppe wrote: I mostly use slackware linux (64 bit OS but i prefer to build 32 bit programs) for D stuff. I also use a variety of Windows systems from time to time, especially if I want to distribute a gui to other users (always 32 bit programs).