Re: Error with associative array initializer DMD32 D Compiler v2.070.0

2016-03-03 Thread asdf via Digitalmars-d-learn
On Thursday, 3 March 2016 at 10:35:50 UTC, MGW wrote: The citation from https://dlang.org/spec/hash-map.html Static Initialization of AAs immutable long[string] aa = [ "foo": 5, "bar": 10, "baz": 2000 ]; unittest { assert(aa["foo"] == 5);

Re: Error with associative array initializer DMD32 D Compiler v2.070.0

2016-03-03 Thread MGW via Digitalmars-d-learn
The citation from https://dlang.org/spec/hash-map.html Static Initialization of AAs immutable long[string] aa = [ "foo": 5, "bar": 10, "baz": 2000 ]; unittest { assert(aa["foo"] == 5); assert(aa["bar"] == 10); assert(aa["baz"] == 2000); } Judging

Re: Error with associative array initializer DMD32 D Compiler v2.070.0

2016-03-03 Thread asdf via Digitalmars-d-learn
On Thursday, 3 March 2016 at 10:01:47 UTC, MGW wrote: immutable long[string] aa = [ "foo": 5, "bar": 10, "baz": 2000 ]; ... Error: non-constant expression ["foo":5L, "bar":10L, "baz":2000L] D associative arrays are a dynamic runtime feature, thus can't be initialized without

Re: Error with associative array initializer DMD32 D Compiler v2.070.0

2016-03-03 Thread Anonymouse via Digitalmars-d-learn
On Thursday, 3 March 2016 at 10:01:47 UTC, MGW wrote: immutable long[string] aa = [ "foo": 5, "bar": 10, "baz": 2000 ]; ... Error: non-constant expression ["foo":5L, "bar":10L, "baz":2000L] I'm not sure there's a way around this except by initialising it at runtime. So you can't

Re: Problem running code examples in the Home page

2016-03-03 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Thursday, 3 March 2016 at 05:24:26 UTC, Mike Parker wrote: On Thursday, 3 March 2016 at 05:09:17 UTC, mahdi wrote: When I click on "Run" I have the text "Running..." inside the box and nothing happens. I don't know if this is a problem with the code or the website but can someone please

Error with associative array initializer DMD32 D Compiler v2.070.0

2016-03-03 Thread MGW via Digitalmars-d-learn
immutable long[string] aa = [ "foo": 5, "bar": 10, "baz": 2000 ]; ... Error: non-constant expression ["foo":5L, "bar":10L, "baz":2000L]

Re: Argon: an alternative parser for command-line arguments

2016-03-03 Thread Johannes Pfau via Digitalmars-d-announce
Am Thu, 03 Mar 2016 09:09:38 + schrieb Markus Laker : > * It can open files specified at the command line. It can do a > simplified version of what cat(1) does and many Perl programs so, > and open a file specified by the user or fall back to reading > from stdin.

Re: GSOC Idea.

2016-03-03 Thread Johannes Pfau via Digitalmars-d
Am Thu, 3 Mar 2016 16:14:24 +1300 schrieb Rikki Cattermole : > On 03/03/16 9:21 AM, Marco wrote: > > Hi, I am Marco, a CS student at UCL. This is both a presentation > > post and also post where I ask some suggestions about an idea for a > > GSOC project. > > > > I am a

Re: Argon: an alternative parser for command-line arguments

2016-03-03 Thread Markus Laker via Digitalmars-d-announce
On Thursday, 3 March 2016 at 04:48:42 UTC, Jason White wrote: Looks nice! Can it support sub-commands (e.g., git status)? I suppose that can be done by passing through unused arguments and parsing those again. Yes, that's what I'd do. Also, you'll get more users if it's a dub package and on

[Issue 15748] New: inconsistent symbols generated by dmd vs ldc

2016-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15748 Issue ID: 15748 Summary: inconsistent symbols generated by dmd vs ldc Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: enhancement

Re: Argon: an alternative parser for command-line arguments

2016-03-03 Thread Markus Laker via Digitalmars-d-announce
On Thursday, 3 March 2016 at 01:52:11 UTC, Chris Wright wrote: You might want to take a minute to shill it here. What's great about it? OK. :-) * It parses positional parameters, error-checks them and places them into type-safe variables: it doesn't just pick out named --switches and then

Re: Unable to instantiate template with same name as function

2016-03-03 Thread Daniel Kozak via Digitalmars-d-learn
Dne 3.3.2016 v 09:58 Shriramana Sharma via Digitalmars-d-learn napsal(a): Hello people and thanks for your replies. Jonathan M Davis via Digitalmars-d-learn wrote: You can't overload a function and an eponymous template like that. They need to have distinct names. Why is it not possible

Re: Unable to instantiate template with same name as function

2016-03-03 Thread Shriramana Sharma via Digitalmars-d-learn
Hello people and thanks for your replies. Jonathan M Davis via Digitalmars-d-learn wrote: > You can't overload a function and an eponymous template like that. They > need to have distinct names. Why is it not possible for the overload to happen? After all, the compiler should be able to

Re: A little wrap over std.json

2016-03-03 Thread growlercab via Digitalmars-d-announce
On Wednesday, 2 March 2016 at 12:01:05 UTC, Andrea Fontana wrote: I just released on behalf of the company I work for (http://lab.2night.it ) a small library that works over std.json library. It is used internally but I think it can be useful for others too. It is focused on reading/writing

Re: A suggestion for modules names / sharing code between projects

2016-03-03 Thread Laeeth Isharc via Digitalmars-d
On Thursday, 3 March 2016 at 06:53:33 UTC, Sebastien Alaiwan wrote: Hi guys, thanks a lot for your answers! On Wednesday, 2 March 2016 at 22:42:18 UTC, ag0aep6g wrote: On 02.03.2016 21:40, Sebastien Alaiwan wrote: - I only work with separate compilation, using gdc (Windows-dmd produces OMF,

[Issue 15747] New: debug info missing for static library (dmd only, ldc is ok)

2016-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15747 Issue ID: 15747 Summary: debug info missing for static library (dmd only, ldc is ok) Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW

[Issue 15189] Dwarf debug info is inaccurate

2016-03-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15189 Timothee Cour changed: What|Removed |Added CC|

Re: Installing DUB on OSX

2016-03-03 Thread Joel via Digitalmars-d-learn
On Thursday, 3 March 2016 at 07:07:55 UTC, Jacob Carlborg wrote: On 2016-03-02 23:41, Joel wrote: I don't seem to have a folder 'build' there. It all seems writable. Hmm, that's really weird. I guess that's the folder it fails to write. Is it running as a different user. What if you change

<    1   2