On Friday, 4 March 2016 at 07:43:59 UTC, Ilya Yaroshenko wrote:
GitHub: https://github.com/9il/mrss
Dub: http://code.dlang.org/packages/mrss
libmrss: https://github.com/9il/mrss
See also: https://github.com/Laeeth/d_rss/
EDIT:
libmrss: http://www.autistici.org/bakunin/libmrss
GitHub: https://github.com/9il/mrss
Dub: http://code.dlang.org/packages/mrss
libmrss: https://github.com/9il/mrss
See also: https://github.com/Laeeth/d_rss/
On 03/03/16 19:31, Andrei Alexandrescu wrote:
https://www.mailinator.com/tymaPaulMultithreaded.pdf
Andrei
You just stepped on a pet peeve of mine. NIO isn't async IO. It's
non-blocking IO. Many people (including Microsoft's MSDN) confuse the
two, but they are completely and utterly
On Thursday, 3 March 2016 at 18:48:08 UTC, Chris Wright wrote:
You were a bit vague before. I interpreted you as saying "just
offer a range and an array-like API, and then you can use it
with std.algorithm". But if you meant to offer an API that is
similar to std.algorithm and also array-like,
On 03/03/2016 06:01 PM, deadalnix wrote:
> 2x64kb L1 cache, which probably reduce the cache trashing due
> to context switches
(I am speaking without measuring anything.)
I imagine that lost cache is one of the biggest costs in thread
switching. It would be great if a thread could select a
https://issues.dlang.org/show_bug.cgi?id=15752
Jack Stouffer changed:
What|Removed |Added
Keywords||diagnostic
--
https://issues.dlang.org/show_bug.cgi?id=15752
Issue ID: 15752
Summary: Diagnostic: Better Error Message for Assigning
Incorrect AA Empty Value
Product: D
Version: D2
Hardware: All
OS: All
Status:
On Friday, 4 March 2016 at 02:09:25 UTC, Era Scarecrow wrote:
On Friday, 4 March 2016 at 01:56:34 UTC, user001 wrote:
Was just wondering why UFCS only works in one direction, that
is why functions can be used as if it were part of a
struct/class but not the other way around.
int dot;
float
On Friday, 4 March 2016 at 01:56:34 UTC, user001 wrote:
Was just wondering why UFCS only works in one direction, that
is why functions can be used as if it were part of a
struct/class but not the other way around.
int dot;
float value = dot(a, b); // would be same as a.dot(b)
On Thursday, 3 March 2016 at 20:31:51 UTC, Vladimir Panteleev
wrote:
3. The first benchmark essentially measures the overhead of
fiber context switching and nothing else
Ha yes, forgot that. Many JVM use fiber instead of thread
internally.
On Friday, 4 March 2016 at 01:13:37 UTC, Ali Çehreli wrote:
On 03/03/2016 04:50 PM, Nicholas Wilson wrote:
> [...]
I think so. Also noting that C-style varargs can only work with
fundamental types (Am I correct there? I am carrying this
assumption from C++.), you may be happier with a
Haven't yet found email addresses for a few mentors (if you are
available this year):
Iain Buclaw
Jacob Ovrum
Also, there is still time to sign up if you are a potential
mentor.
For those of you interested in mentoring, the following is a good
(and short) read on how students should be
On Thursday, 3 March 2016 at 17:31:59 UTC, Andrei Alexandrescu
wrote:
https://www.mailinator.com/tymaPaulMultithreaded.pdf
Andrei
A lot of data presented are kind of skewed. For instance, the
synchronization costs across cores are done at 0% writes. It
comes to no surprise that
Was just wondering why UFCS only works in one direction, that is
why functions can be used as if it were part of a struct/class
but not the other way around.
struct Vec3
{
float x;
float y;
float z;
float dot(Vec3 o)
{
return x * o.x + y * o.y + z * o.z;
}
}
On Thursday, 3 March 2016 at 21:06:12 UTC, Andrei Alexandrescu
wrote:
Thanks! That will push introspection considerably further. I
toggled auto-pull. -- Andrei
I made the simplest change possible to get it to compile, PR
here[1]. It adds an extra allocation so any suggestions on
eliminating
On 03/03/2016 04:50 PM, Nicholas Wilson wrote:
> //f is a File*
> void fwrite(int line = __LINE__)(...)
> {
> f.write("/*",line,"*/ ");
> f.write(_argptr); //prints e.g 7FFF5B055440
> }
> basically i want
> fwrite("1 ","2\t","3\n");
> to print
> /*7*/ 1 23
>
> do I have to
On Friday, 4 March 2016 at 00:42:28 UTC, Walter Bright wrote:
On 3/3/2016 4:29 PM, Yuxuan Shui wrote:
After linking each _DxxTypeInfo___initZ symbol should have
a unique address,
so why are we using hash of type name as TypeInfo.toHash()?
I don't think this has anything to do with
//f is a File*
void fwrite(int line = __LINE__)(...)
{
f.write("/*",line,"*/ ");
f.write(_argptr); //prints e.g 7FFF5B055440
}
basically i want
fwrite("1 ","2\t","3\n");
to print
/*7*/ 1 23
do I have to iterate through _argptr
On 3/3/2016 4:29 PM, Yuxuan Shui wrote:
After linking each _DxxTypeInfo___initZ symbol should have a unique address,
so why are we using hash of type name as TypeInfo.toHash()?
I don't think this has anything to do with compacting GC. Is there something I'm
missing?
Because when working
On Saturday, 13 February 2016 at 19:19:46 UTC, Johan Engelen
wrote:
On Saturday, 13 February 2016 at 18:48:12 UTC, artemalive wrote:
DigitalWhip is a performance benchmark of statically typed
programming languages that
compile to native code:
https://github.com/artemalive/DigitalWhip
Could
On Thursday, 3 March 2016 at 23:54:15 UTC, cym13 wrote:
On Thursday, 3 March 2016 at 00:27:39 UTC, Walter Bright wrote:
On 3/2/2016 3:59 PM, Seb wrote:
I am just curious whether you have already considered moving
from Bugzilla to
the Github issue system and where your current opinion is.
1.
After linking each _DxxTypeInfo___initZ symbol should have a
unique address, so why are we using hash of type name as
TypeInfo.toHash()?
I don't think this has anything to do with compacting GC. Is
there something I'm missing?
On Thursday, 3 March 2016 at 23:58:39 UTC, Yuxuan Shui wrote:
On Thursday, 3 March 2016 at 23:51:16 UTC, Adam D. Ruppe wrote:
On Thursday, 3 March 2016 at 23:46:50 UTC, Yuxuan Shui wrote:
Will typeid(a) is typeid(b) yield different results than
typeid(a) == typeid(b)?
No. Indeed, opEquals on
On Thursday, 3 March 2016 at 23:51:16 UTC, Adam D. Ruppe wrote:
On Thursday, 3 March 2016 at 23:46:50 UTC, Yuxuan Shui wrote:
Will typeid(a) is typeid(b) yield different results than
typeid(a) == typeid(b)?
No. Indeed, opEquals on TypeInfo just calls is itself.
But opEquals also has extra
On Thursday, 3 March 2016 at 23:46:50 UTC, Yuxuan Shui wrote:
Will typeid(a) is typeid(b) yield different results than
typeid(a) == typeid(b)?
No. Indeed, opEquals on TypeInfo just calls is itself.
On Thursday, 3 March 2016 at 00:27:39 UTC, Walter Bright wrote:
On 3/2/2016 3:59 PM, Seb wrote:
I am just curious whether you have already considered moving
from Bugzilla to
the Github issue system and where your current opinion is.
1. Bugzilla is working famously for us.
2. I've had
Will typeid(a) is typeid(b) yield different results than
typeid(a) == typeid(b)?
On Thursday, 3 March 2016 at 03:22:02 UTC, Andrei Alexandrescu
wrote:
On 03/02/2016 05:38 PM, tsbockman wrote:
Once you've familiarized yourself with the basics of using D,
you can
read this:
http://wiki.dlang.org/Starting_as_a_Contributor
To help you get started contributing.
I see each
On 03/03/2016 05:17 AM, Andrew Edwards wrote:
> On 3/3/16 7:01 PM, MGW wrote:
>> immutable long[string] aa = [
>> "foo": 5,
>> "bar": 10,
>> "baz": 2000
>> ];
>
> The only way this can be done outside the body of a function is if it is
> a manifest constant. This works:
>
> enum
On 03/03/2016 02:06 PM, Jack Stouffer wrote:
This doesn't work either
string func(int a, int[int] b = int[int].init) {
Parentheses around int[int] works though. I don't know whether it's a bug.
string func(int a, int[int] b = (int[int]).init) {
Ali
I want to have one of the parameters on a function be optional.
The problem is, is that it's a AA and D does not seem to support
empty AA literals. Observe:
string func(int a, int[int] b = []) {
return "mem1";
}
void main() {
func(1);
}
$ dmd test
test.d(8): Error: cannot implicitly
https://issues.dlang.org/show_bug.cgi?id=15751
Issue ID: 15751
Summary: atomicLoad doesn't return stable result if compiled
with -profile
Product: D
Version: D2
Hardware: x86
OS: Windows
Status:
On Thursday, 3 March 2016 at 21:06:12 UTC, Andrei Alexandrescu
wrote:
Thanks! That will push introspection considerably further. I
toggled auto-pull. -- Andrei
I would recommend cancelling that as it's currently failing on
Linux and FreeBSD.
On 03/03/2016 02:54 PM, Meta wrote:
On Friday, 26 February 2016 at 23:09:52 UTC, Andrei Alexandrescu wrote:
So, what's an elegant solution to this? I looked up std.traits but
nothing seems to help. (Tried arity, no avail.)
There's this[1] PR which implements exactly what you want, but it's
On 03/03/2016 04:09 AM, Markus Laker wrote:
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. :-)
[snip]
Very nice! I think we should adopt some of these ideas for std.getopt as
well. -- Andrei
On Thursday, 3 March 2016 at 15:08:37 UTC, Jacob Carlborg wrote:
Does it support some longer documentation for the flags, i.e.
"git status -h" vs "git status --help"?
Yes. You can give an option a description, like this:
// ...
uint nr_doors;
// ...
Named("doors", nr_doors, 0) ("number of
On Thursday, 3 March 2016 at 20:31:47 UTC, Meta wrote:
On Thursday, 3 March 2016 at 20:16:55 UTC, Erik Smith wrote:
The later works and qualifying the allocator member variable
shared seems to solve the issue. Example:
struct A(T) {
alias Allocator = T;
shared Allocator allocator;
On Thursday, 3 March 2016 at 09:33:38 UTC, Johannes Pfau wrote:
The rest of this list sounds quite good, but please reconsider
automatically opening files:
https://media.ccc.de/v/32c3-7130-the_perl_jam_2
I guess the scenario can't happen in D as our open file methods
won't execute programs
On Thursday, 3 March 2016 at 04:48:42 UTC, Jason White wrote:
I was also dissatisfied with std.getopt and wrote a command
line argument parser (competition!):
https://github.com/jasonwhite/darg
Though it's not quite feature-complete yet, it does everything
I need it to. It uses
On Thursday, 3 March 2016 at 17:31:59 UTC, Andrei Alexandrescu
wrote:
https://www.mailinator.com/tymaPaulMultithreaded.pdf
Andrei
Not an expert on the subject, but FWIW:
1. This is from 2008
2. Seems to be highly specific to Java
3. The first benchmark essentially measures the overhead of
On Thursday, 3 March 2016 at 20:16:55 UTC, Erik Smith wrote:
The later works and qualifying the allocator member variable
shared seems to solve the issue. Example:
struct A(T) {
alias Allocator = T;
shared Allocator allocator;
this(string url="") {
allocator =
On Thursday, 3 March 2016 at 19:32:40 UTC, Brian Schott wrote:
On Thursday, 3 March 2016 at 19:01:52 UTC, Erik Smith wrote:
I get the error "allocate is not callable using a non-shared
object" and I'm not sure how to resolve it.
Are you calling `Mallocator.allocate()` or
On 03.03.2016 07:12, Shriramana Sharma wrote:
string ta(string s) { return s ~ "1"; }
template ta(string s) { enum ta = ta(s); }
In `ta(s)` here, `ta` is the enum itself again. It's similar to `int x =
x;`. Can't do that, of course.
Add a leading dot to refer to the module level `ta`
On Thursday, 3 March 2016 at 20:05:03 UTC, ag0aep6g wrote:
[1] https://en.wikipedia.org/wiki/Reverse_domain_name_notation
LOL at the code section of that page.
On 03.03.2016 07:53, Sebastien Alaiwan wrote:
However, using global package names means you're relying on the library
providers to avoid conflicts, in their package names, although they
might not even know each other. Which basically implies to always put
your name / company name in your package
https://issues.dlang.org/show_bug.cgi?id=15738
Илья Ярошенко changed:
What|Removed |Added
Hardware|x86_64 |All
https://issues.dlang.org/show_bug.cgi?id=15738
Илья Ярошенко changed:
What|Removed |Added
CC|
On 03/03/2016 09:31 AM, Andrei Alexandrescu wrote:
https://www.mailinator.com/tymaPaulMultithreaded.pdf
Andrei
Another interesting architecture is LMAX Disruptor:
https://lmax-exchange.github.io/disruptor/
Ali
On Friday, 26 February 2016 at 23:09:52 UTC, Andrei Alexandrescu
wrote:
So, what's an elegant solution to this? I looked up std.traits
but nothing seems to help. (Tried arity, no avail.)
There's this[1] PR which implements exactly what you want, but
it's currently not passing the auto-tester.
On Thursday, 3 March 2016 at 16:54:40 UTC, Andrei Alexandrescu
wrote:
http://blog.jooq.org/2016/01/12/if-java-were-designed-today-the-synchronizable-interface/
There was work on removing the default monitor from Object,
what is the status of it?
Thanks,
Andrei
On 3/2/16 9:33 PM, maik klein wrote:
On Thursday, 3 March 2016 at 02:26:09 UTC, cym13 wrote:
On Thursday, 3 March 2016 at 02:03:01 UTC, maik klein wrote:
Consider the following code
void main()
{
import std.stdio;
import std.range: iota, join;
import std.algorithm.iteration: map;
On 3/3/16 2:03 AM, Daniel Kozak via Digitalmars-d wrote:
Dne 3.3.2016 v 03:39 Jack Stouffer via Digitalmars-d napsal(a):
Dynamic arrays are reference types in D;
No, they are value types, but mimic reference types in some cases
The case that you pass something by reference, and change what
On Thursday, 3 March 2016 at 00:27:39 UTC, Walter Bright wrote:
On 3/2/2016 3:59 PM, Seb wrote:
I am just curious whether you have already considered moving
from Bugzilla to
the Github issue system and where your current opinion is.
1. Bugzilla is working famously for us.
Is it Kardashian
On Thursday, 3 March 2016 at 19:01:52 UTC, Erik Smith wrote:
I get the error "allocate is not callable using a non-shared
object" and I'm not sure how to resolve it.
Are you calling `Mallocator.allocate()` or
`Mallocator.instance.allocate()`?
Just a question on Mallocator and shared. My code does a lot of
non-GC heap allocation (malloc) for buffers, so I reached for
Mallocator as a starting point. I propagate an Allocator type
generically through my structs, but it is defaulted to Mallocator.
After checking with the docs & TDPL,
On Thursday, 3 March 2016 at 08:39:51 UTC, Laeeth Isharc wrote:
On Thursday, 3 March 2016 at 06:53:33 UTC, Sebastien Alaiwan
If, unfortunately, I happen to run into a conflict, i.e my
project uses two unrelated libraries sharing a name for their
top-level namespace, there's no way out for me,
On Thu, 03 Mar 2016 15:50:04 +, Piotrek wrote:
> On Thursday, 3 March 2016 at 01:49:22 UTC, Chris Wright wrote:
>> If you're trying to connect to a SQL database or a document database,
>> as I'd expect for something called "std.database"
>
> The thing is I strongly encourage to not reserve
On Thursday, 3 March 2016 at 17:31:59 UTC, Andrei Alexandrescu
wrote:
https://www.mailinator.com/tymaPaulMultithreaded.pdf
Andrei
Related to this, I watched a talk about user-level threads by
another Google engineer awhile back (also named Paul but not the
same person).
On 03/02/2016 07:57 PM, sigod wrote:
On Thursday, 3 March 2016 at 00:27:39 UTC, Walter Bright wrote:
3. If Github goes dark, we still have our local complete copies of the
git database. If Github issues goes dark, we lose it all. We control
the Bugzilla database. This database is ABSOLUTELY
On 03/02/2016 02:50 PM, Markus Laker wrote:
https://github.com/markuslaker/Argon
Let me know if you do something interesting with it.
Markus
Reminds me of one I used years ago for C#: I like the approach, it's a
good one. Getopt by comparison, while very good, always seemed like a
kludge
On Thursday, 3 March 2016 at 17:03:58 UTC, Kagamin wrote:
On Thursday, 3 March 2016 at 15:53:28 UTC, Erik Smith wrote:
auto r = db.connection().statement("select from t").range();
// nouns
db.execute("select from t").range();
`range` is probably ok.
Or
auto connection =
On Thursday, 3 March 2016 at 17:31:59 UTC, Andrei Alexandrescu
wrote:
https://www.mailinator.com/tymaPaulMultithreaded.pdf
Slide decks are so unbelievably bad at conveying information.
But, looking through it, I think I agree. There's a reason why I
stick with my cgi.d - using a simple
On Thursday, 3 March 2016 at 16:08:03 UTC, Piotrek wrote:
I agree with you we need database manipulation in Phobos.
However modules like db, gui, xml or similar are too much work
for a one developer. And as you can see from time to time there
apears someone with its own vision.
That's why,
On the other hand execute can simply return the reader with extra
getter for scalar result. Just don't do stuff until it's
iterated. Is it possible?
auto rows = db.execute("select * from t");
https://www.mailinator.com/tymaPaulMultithreaded.pdf
Andrei
On 3 Mar 2016 6:02 pm, "Andrei Alexandrescu via Digitalmars-d" <
digitalmars-d@puremagic.com> wrote:
>
> On 03/03/2016 11:57 AM, Andrei Alexandrescu wrote:
>>
>> This is one beautiful guide for contributors:
>> http://lilypond.org/doc/v2.19/Documentation/contributor/index. A
>> Lilypond advanced
https://issues.dlang.org/show_bug.cgi?id=15750
Issue ID: 15750
Summary: net/isemail uses lots of redundant helper methods
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Other options:
db.execute("select from t").reader; //row range
db.execute("select from t").get!long; //scalar
db.execute("select from t"); //non-query
On Thursday, 3 March 2016 at 15:53:28 UTC, Erik Smith wrote:
auto r = db.connection().statement("select from t").range();
// nouns
db.execute("select from t").range();
`range` is probably ok.
Or
auto connection = db.createConnection();
connection.execute("select from t").range();
auto r =
On 03/03/2016 11:57 AM, Andrei Alexandrescu wrote:
This is one beautiful guide for contributors:
http://lilypond.org/doc/v2.19/Documentation/contributor/index. A
Lilypond advanced user pointed it to me as a good example of community
management.
Would be awesome if we expanded our small
This is one beautiful guide for contributors:
http://lilypond.org/doc/v2.19/Documentation/contributor/index. A
Lilypond advanced user pointed it to me as a good example of community
management.
Would be awesome if we expanded our small contributor guides on the wiki
into a coherent document
http://blog.jooq.org/2016/01/12/if-java-were-designed-today-the-synchronizable-interface/
There was work on removing the default monitor from Object, what is the
status of it?
Thanks,
Andrei
On Wednesday, 2 March 2016 at 17:13:32 UTC, Erik Smith wrote:
There are a number of areas where this design is an improvement
over DDBC: ease-of-use, better resource management (no scope,
no GC), phobos compatibility, to name a few. There is a lot
more that needs to be added to make it
On Thursday, 3 March 2016 at 11:16:03 UTC, Dejan Lekic wrote:
On Tuesday, 1 March 2016 at 21:00:30 UTC, Erik Smith wrote:
I'm back to actively working on a std.database specification &
implementation. It's still unstable, minimally tested, and
there is plenty of work to do, but I wanted to
On Thursday, 3 March 2016 at 15:07:43 UTC, Kagamin wrote:
Also member names: methods are named after verbs, you use
nouns. Method `next` is ambiguous: is the first row the next
row? `fetch` or `fetchRow` would be better.
Those are actually internal methods not intended for the
interface
On Thursday, 3 March 2016 at 01:49:22 UTC, Chris Wright wrote:
If you're trying to connect to a SQL database or a document
database, as I'd expect for something called "std.database"
The thing is I strongly encourage to not reserve std.database for
external database clients and even what is
https://issues.dlang.org/show_bug.cgi?id=15749
Issue ID: 15749
Summary: allow `with` on an expression
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
https://issues.dlang.org/show_bug.cgi?id=15748
--- Comment #1 from Sobirari Muhomori ---
Single underscore is standard mangling for D symbols, most platforms take it
literally, mac traditionally adds extra underscore to all symbols.
--
On Thursday, 3 March 2016 at 14:21:15 UTC, Meta wrote:
On Thursday, 3 March 2016 at 14:19:32 UTC, Meta wrote:
On Thursday, 3 March 2016 at 05:24:26 UTC, Mike Parker wrote:
Works for me. It took a couple of seconds before the output
appeared, but it did appear.
I just tried to run the
On Wednesday, 2 March 2016 at 08:51:07 UTC, Manuel Maier wrote:
Hi there,
I was wondering why I should ever prefer std.range.lockstep
over std.range.zip. In my (very limited) tests std.range.zip
offered the same functionality as std.range.lockstep, i.e. I
was able to iterate using
Also member names: methods are named after verbs, you use nouns.
Method `next` is ambiguous: is the first row the next row?
`fetch` or `fetchRow` would be better.
On 2016-03-02 20:50, Markus Laker wrote:
https://github.com/markuslaker/Argon
Let me know if you do something interesting with it.
Does it support some longer documentation for the flags, i.e. "git
status -h" vs "git status --help"?
--
/Jacob Carlborg
On 04/03/16 3:09 AM, Marco wrote:
On Thursday, 3 March 2016 at 09:29:38 UTC, Johannes Pfau wrote:
Am Thu, 3 Mar 2016 16:14:24 +1300
schrieb Rikki Cattermole :
[...]
The arduino Due uses a Cortex M3, so arduino could mean ARM or AVR.
GDC can target AVR devices with
On Thursday, 3 March 2016 at 11:40:29 UTC, John Colvin wrote:
On Thursday, 3 March 2016 at 02:03:01 UTC, maik klein wrote:
Consider the following code
void main()
{
import std.stdio;
import std.range: iota, join;
import std.algorithm.iteration: map;
import std.conv: to;
I suggest you call the package stdx.db - it is not (and may not
become) a standard package, so `std` is out of question. If it
is supposed to be *proposed* as standard package, then `stdx`
is good because that is what some people have used in the past
(while others used the ugly
On Thursday, 3 March 2016 at 14:19:32 UTC, Meta wrote:
On Thursday, 3 March 2016 at 05:24:26 UTC, Mike Parker wrote:
Works for me. It took a couple of seconds before the output
appeared, but it did appear.
I just tried to run the "floating point rounding" example in
Chrome. I got a "service
On Thursday, 3 March 2016 at 05:24:26 UTC, Mike Parker wrote:
Works for me. It took a couple of seconds before the output
appeared, but it did appear.
I just tried to run the "floating point rounding" example in
Chrome. I got a "service temporarily unavailable" message.
On Thursday, 3 March 2016 at 08:58:25 UTC, Shriramana Sharma
wrote:
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
On Thursday, 3 March 2016 at 09:29:38 UTC, Johannes Pfau wrote:
Am Thu, 3 Mar 2016 16:14:24 +1300
schrieb Rikki Cattermole :
[...]
The arduino Due uses a Cortex M3, so arduino could mean ARM or
AVR.
GDC can target AVR devices with minimal changes. The main
problem
https://issues.dlang.org/show_bug.cgi?id=15721
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
Adam D. Ruppe wrote:
> On Wednesday, 2 March 2016 at 06:59:49 UTC, Tobias Müller wrote:
>> What's the usecase of DOM outside of browser
>> interoperability/scripting? The API isn't particularly nice,
>> especially in languages with a rich type system.
>
> I find my
On 3/3/16 7:01 PM, MGW wrote:
immutable long[string] aa = [
"foo": 5,
"bar": 10,
"baz": 2000
];
The only way this can be done outside the body of a function is if it is
a manifest constant. This works:
enum long[string] aa = [
"foo": 5,
"bar": 10,
"baz": 2000
];
Glad to announce D 2.070.2.
http://dlang.org/download.html
This unplanned point release fixes just a single issue over 2.070.2, see
the changelog for more details.
http://dlang.org/changelog/2.070.2.html
-Martin
On Thursday, 3 March 2016 at 10:14:43 UTC, Dominikus Dittes
Scherkl wrote:
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
On Thursday, 3 March 2016 at 02:03:01 UTC, maik klein wrote:
Consider the following code
void main()
{
import std.stdio;
import std.range: iota, join;
import std.algorithm.iteration: map;
import std.conv: to;
import std.meta: aliasSeqOf, staticMap, AliasSeq;
enum types =
On Wednesday, 2 March 2016 at 20:39:57 UTC, Adam D. Ruppe wrote:
On Wednesday, 2 March 2016 at 12:27:04 UTC, Adrian Matoga wrote:
Is it by design or is it a bug?
And, if it is by design, what is the reason for that?
That's by design. It allows you to override names from a
template mixin like
On Thursday, 3 March 2016 at 02:03:01 UTC, maik klein wrote:
Consider the following code
void main()
{
import std.stdio;
import std.range: iota, join;
import std.algorithm.iteration: map;
import std.conv: to;
import std.meta: aliasSeqOf, staticMap, AliasSeq;
enum types =
On Thursday, March 03, 2016 14:28:25 Shriramana Sharma via Digitalmars-d-learn
wrote:
> 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.
>
>
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);
On Tuesday, 1 March 2016 at 21:00:30 UTC, Erik Smith wrote:
I'm back to actively working on a std.database specification &
implementation. It's still unstable, minimally tested, and
there is plenty of work to do, but I wanted to share an update
on my progress.
I suggest you call the package
1 - 100 of 118 matches
Mail list logo