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);
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
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
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
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
immutable long[string] aa = [
"foo": 5,
"bar": 10,
"baz": 2000
];
... Error: non-constant expression ["foo":5L, "bar":10L,
"baz":2000L]
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.
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
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
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
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
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
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
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
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,
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
https://issues.dlang.org/show_bug.cgi?id=15189
Timothee Cour changed:
What|Removed |Added
CC|
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
101 - 118 of 118 matches
Mail list logo