On Thursday, 11 October 2018 at 14:35:34 UTC, James Japherson
wrote:
Took me about an hour to track this one down!
A + (B == 0) ? 0 : C;
D is evaluating it as
(A + (B == 0)) ? 0 : C;
The whole point of the parenthesis was to associate.
I usually explicitly associate precisely because of
On Saturday, 22 September 2018 at 20:40:14 UTC, Jonathan Marler
wrote:
On Saturday, 22 September 2018 at 19:04:41 UTC, Henrik wrote:
[...]
That works for types but wouldn't work for keywords. Keywords
have special meaning in the lexical stage and you can't
extend/change the grammar of the
On Sunday, 9 September 2018 at 01:27:06 UTC, Josphe Brigmo wrote:
This has nothing to do with git. People think git is the end
all be all. What if git is not available, then what? It's
moronic to think that one has to use one or the other when both
options are available and both only add
On Wednesday, 22 February 2017 at 00:38:30 UTC, aberba wrote:
Using vibe.d, I bind to port 8080 at 127.0.0.1 but I can't
access server on my phone through hotspot using the external IP
from ip addr on Linux. But 127.0.0 running Apache server works.
Don't if its vibe.d or OS (ubuntu 14.04)
On Wednesday, 21 September 2016 at 21:14:15 UTC, H. S. Teoh wrote:
The problem here is that generic_code.d doesn't (and
shouldn't!) import
usertype.d, so usertype.opBinary is not visible in
generic_code.d. So
when algorithm() tries to look up the '+' operator in `t + u`,
it can't
find the
On Saturday, 21 May 2016 at 17:34:19 UTC, Kagamin wrote:
On Friday, 20 May 2016 at 19:37:23 UTC, Andrei Alexandrescu
wrote:
Was talking to Walter on the phone and he just had one of
those great ideas: encode in the function mangle that it
returns "auto". I thought that was fantastic. Would
On Tuesday, 10 May 2016 at 14:13:00 UTC, jmh530 wrote:
On Tuesday, 10 May 2016 at 04:02:52 UTC, Daniel Kozak wrote:
But for people like me $90 per night is too much. I live in
Czech Republic which is a really beautifull country in middle
of europe (it is called heart of europe). And even in
On Tuesday, 10 May 2016 at 14:26:27 UTC, Vladimir Panteleev wrote:
On Tuesday, 10 May 2016 at 14:19:15 UTC, krzaq wrote:
On Sunday, 8 May 2016 at 13:31:46 UTC, Vladimir Panteleev
wrote:
On Sunday, 8 May 2016 at 09:43:14 UTC, Steven Schveighoffer
wrote:
[...]
I understand that this is no
On Sunday, 8 May 2016 at 13:31:46 UTC, Vladimir Panteleev wrote:
On Sunday, 8 May 2016 at 09:43:14 UTC, Steven Schveighoffer
wrote:
My understanding is that libcurl isn't default installed on
some platforms (e.g. windows). So we have a dependency on an
external library that may not be present.
On Monday, 9 May 2016 at 09:58:32 UTC, Mark Isaacson wrote:
Full recognition that there was way less demand for another US
DConf... so perhaps somewhere easier to fly to?
Reykjavik?
Dublin?
Oslo?
Stockholm?
Barcelona?
London?
Those are pretty good hubs and have solid airfare from the
US...
On Friday, 6 May 2016 at 15:09:39 UTC, sarn wrote:
On Friday, 6 May 2016 at 14:53:15 UTC, Jonathan M Davis wrote:
Other places would certainly be interesting (e.g. Japan or
Australia), and we definitely have devs in such places, but I
don't know if we have enough likely attendees in such areas
On Thursday, 28 April 2016 at 05:10:25 UTC, Mithun Hunsur wrote:
On Thursday, 28 April 2016 at 04:47:38 UTC, Rory McGuire wrote:
[...]
Aha - if Google Maps is accurate, I have nothing to worry about
:) For reference, the number it gives me is 37 minutes.
In that case, +1 to starting late;
On Tuesday, 8 March 2016 at 14:31:56 UTC, Ola Fosheim Grøstad
wrote:
On Tuesday, 8 March 2016 at 14:16:22 UTC, maik klein wrote:
Not my post but I think it is an interesting discussion.
https://www.reddit.com/r/cpp/comments/49dgdb/why_i_am_not_happy_with_c17_c_17_outlook_march/
There are
On Monday, 7 March 2016 at 07:58:53 UTC, Era Scarecrow wrote:
On Monday, 7 March 2016 at 06:57:48 UTC, Ola Fosheim Grøstad
wrote:
immutable π = 3.14;
Oh, the horror!
With the assumption pi is declared elsewhere (say, in
std.math), what i wonder is the number for pi vs 2 letters.
Unicode
On Tuesday, 16 February 2016 at 11:08:28 UTC, Timon Gehr wrote:
On 16.02.2016 11:21, krzaq wrote:
By the way, your example in C++ would be even worse:
auto sum_of_filtered = x
.map([&](auto&& val){ foo(val); })
.filter([](auto&& val){ return is_bar(val); })
On Tuesday, 16 February 2016 at 07:59:49 UTC, w0rp wrote:
Personally, I find this proposal for C++ to be laughable. It's
like hitch hiking from New York to California, and only getting
as far as Texas and calling it good.
The great thing about our UFCS is the left-to-right chaining of
On Sunday, 24 January 2016 at 12:20:44 UTC, nbro wrote:
I was wondering if D is a good language for web development.
Which serious with an active community web frameworks are there?
I have heard about vibe.d, but I am not convinced. I think that
many people do not start using D because it
On Wednesday, 25 November 2015 at 10:17:02 UTC, Suliman wrote:
I think that using SDL format was big mistake. Not only I do
not want to spend time in learning yet another dead config
format that now use only one project -- DUB. In time when DUB
used json it was not perfect, but at last it was
On Thursday, 12 November 2015 at 07:47:16 UTC, Kagamin wrote:
On Thursday, 12 November 2015 at 07:00:43 UTC, krzaq wrote:
What about rethrowing C++ exceptions? Are we going to use
pointer notation for C++ exceptions? This may be the same
under the hood, but looks way different.
On Thursday, 12 November 2015 at 06:50:31 UTC, Walter Bright
wrote:
In order to interoperate with modern C++, it has been
abundantly clear for some time that D needs some support for
C++ exception handling:
[...]
What about rethrowing C++ exceptions? Are we going to use pointer
notation
On Friday, 6 November 2015 at 11:07:10 UTC, Gerald Jansen wrote:
On Tuesday, 3 November 2015 at 19:42:58 UTC, Andrei
Alexandrescu wrote:
I wrote this: http://wiki.dlang.org/Starting_as_a_Contributor,
is it what you need it to be? -- Andrei
Okay, so we have slight variations that cause
On Thursday, 5 November 2015 at 14:55:07 UTC, Adrian Matoga wrote:
On Thursday, 5 November 2015 at 14:09:46 UTC, nazriel wrote:
On Wednesday, 4 November 2015 at 00:31:14 UTC, Andrei
Alexandrescu wrote:
I'm leaving for http://codedive.pl/en/agenda/ to destroy.
Will be out for the week. --
On Wednesday, 4 November 2015 at 11:41:59 UTC, Idan Arye wrote:
On Tuesday, 3 November 2015 at 20:28:43 UTC, Andrei
Alexandrescu wrote:
On 11/03/2015 03:12 PM, Shammah Chancellor wrote:
Ditto. This needs `static continue` and `static break`.
Without this
functionality, the control flow
On Wednesday, 4 November 2015 at 01:28:42 UTC, rsw0x wrote:
On Wednesday, 4 November 2015 at 00:31:14 UTC, Andrei
Alexandrescu wrote:
I'm leaving for http://codedive.pl/en/agenda/ to destroy. Will
be out for the week. -- Andrei
Is this a conference?
Do you know if this will be recorded? Some
On Friday, 2 October 2015 at 02:25:21 UTC, Yaser wrote:
Are there any critical frameworks or libraries that are holding
you back in fully investing in D? Obviously I think D is an
awesome language, but some frameworks/libraries hold me back,
wish I could do everything in D.
Nothing major for
On Tuesday, 21 July 2015 at 14:07:22 UTC, Andrei Alexandrescu
wrote:
On 7/21/15 9:34 AM, Steven Schveighoffer wrote:
On 7/21/15 9:17 AM, Andrei Alexandrescu wrote:
At the first D meetup in the Silicon Valley, Vic (an
accomplished
entrepreneur who has been following up D'd path) discussed
On Tuesday, 16 June 2015 at 04:19:59 UTC, wobbles wrote:
http://stackoverflow.com/questions/30798244/dmd-looking-for-random-file-on-disk-when-linking
In short, it seems when the dmd -o command is passed a filename
with a space in it, dmd gets confused. Is this a bug?
I would say it's a bug
On Saturday, 13 June 2015 at 09:01:29 UTC, Vladimir Panteleev
wrote:
On Saturday, 13 June 2015 at 00:13:23 UTC, Marco Leise wrote:
Am Thu, 11 Jun 2015 06:26:29 +
schrieb weaselcat weasel...@gmail.com:
last I read was after dconf,
DMD 2.068 will have been released September 8th, 2015.
In
On Thursday, 11 June 2015 at 12:33:55 UTC, Steven Schveighoffer
wrote:
On 6/10/15 8:52 AM, John Colvin wrote:
On Tuesday, 9 June 2015 at 17:43:18 UTC, Steven Schveighoffer
wrote:
On 6/9/15 4:06 AM, Brian Schott wrote:
On Tuesday, 9 June 2015 at 07:49:24 UTC, Shachar Shemesh
wrote:
Also, you
On Friday, 5 June 2015 at 18:35:51 UTC, Marc Schütz wrote:
On Friday, 5 June 2015 at 17:50:55 UTC, ketmar wrote:
`const int` works, so i can't see why `auto auto` is failing.
Wrong analogy. Try `const const`, and it will fail with the
same error as `auto auto`: redundant attribute.
const
I've seen this linked on the forum fairly recently:
http://d.readthedocs.org/en/latest/ Maybe it can be used?
I reproduced this bug on my arch linux with DMD 2.067 and git
phobos (4cea8f1e4dd839568cc9e581bc15ee84f02e7135)
On Tuesday, 31 March 2015 at 21:24:20 UTC, Dicebot wrote:
I see no value in test names limited to valid identifiers. It
is only tiny bit more informative than `unittestXXX` we have
already. If we add names, please, let them be proper names that
are easy to read.
I'd rather have the name obey
On Monday, 23 March 2015 at 11:31:16 UTC, FG wrote:
And honestly, compared to
File(/tmp/a).byChunk(4096).joiner.startsWith(s)
you can *easily* guess that you have a file - do some
nonobvious magic on it - and check if *it* starts with `s`
just by reading it as plain English.
Now you've
On Monday, 23 March 2015 at 12:10:32 UTC, Kagamin wrote:
Well, things like std::string are not cooperative in this
regard. Though, it's copied only to be instantly destructed,
theoretically it should be elided if the involved constructors
are annotated with sufficient purity or complementary
On Monday, 23 March 2015 at 08:20:59 UTC, Kagamin wrote:
On Saturday, 21 March 2015 at 16:59:05 UTC, welkam wrote:
In C++ world always writing ++var can save some perf when
using with overloaded operators.
Do you have an example?
The compiler cannot optimize away calls to external functions
Something like
while (n != EOF) {
n = read(fd, buf, sizeof(buf));
if (n==-1) throw(...);
if (strcmp(buf, PREFIX) == 0) {
return buf;
}
}
return NULL;
Requires no prior knowledge, and have similar effect.
I'm surprised nobody commented
On Thursday, 19 March 2015 at 08:38:45 UTC, Kagamin wrote:
Hmm... I read it as it shall have the return type of int, but
if not, then it's implementation-defined.
In that case, I refer you to https://www.ietf.org/rfc/rfc2119.txt
On Thursday, 19 March 2015 at 07:42:48 UTC, Kagamin wrote:
On Wednesday, 18 March 2015 at 15:54:04 UTC, krzaq wrote:
Oh, right. I'm sorry, I assumed void main() means D, since
it's not legit C++.
C++ allows implementation-defined return type of main.
I'm afraid that you've mistaken C++ for
On Thursday, 19 March 2015 at 08:33:07 UTC, Kagamin wrote:
On Thursday, 19 March 2015 at 08:32:10 UTC, krzaq wrote:
but otherwise its type is implementation-defined.
This.
I'm not sure what you're failing to understand here. It **shall*
have the return type of int. The rest (as in:
On Wednesday, 18 March 2015 at 14:20:19 UTC, Benjamin Thaut wrote:
On Wednesday, 18 March 2015 at 14:17:13 UTC, Namal wrote:
Hello, as in the title. How can I call D functions from C++
(If my main() is in a c++ file).
Thanks alot!
D:
extern(C++) void SomeDFunction()
{
doSomething();
}
On Wednesday, 18 March 2015 at 15:51:28 UTC, Benjamin Thaut wrote:
On Wednesday, 18 March 2015 at 14:40:48 UTC, krzaq wrote:
I'm pretty sure the OP wanted to call D functions from C++,
not C++ functions from D.
If you look very closely you will notice that my example does
exactly what the
Asking for feature names is a very bad choice, you're essentially
excluding all beginners and it's almost impossible to google the
answers (you want to exclude lazy uninterested humans, not all of
them, right?). Besides, I thought D was supposed to be the type
of language one should be able to
I'd like to extend my program's functionality from plugins,
that'd be loaded by name (or not) as requested by the config
file. Is it possible to throw in a few dlls/sos implementing
those new modules into a directory and hope that they will be all
loaded and available to Object.factory in the
On Friday, 26 September 2014 at 14:14:05 UTC, Jacob Carlborg
wrote:
On 26/09/14 14:37, krzaq wrote:
I'd like to extend my program's functionality from plugins,
that'd be
loaded by name (or not) as requested by the config file. Is it
possible
to throw in a few dlls/sos implementing those new
On Wednesday, 17 September 2014 at 18:05:36 UTC, Ali Çehreli
wrote:
On 09/17/2014 08:30 AM, krzaq wrote:
On Wednesday, 17 September 2014 at 14:37:21 UTC, Marc Schütz
wrote:
On Wednesday, 17 September 2014 at 12:44:00 UTC, krzaq wrote:
I'd like to have something similar to C++'s
On Thursday, 18 September 2014 at 11:13:36 UTC, Marc Schütz wrote:
On Thursday, 18 September 2014 at 09:21:17 UTC, krzaq wrote:
That's not what I wanted. Maybe I should explain instead of
expecting you to divine my intentions, though :) I am trying
to rewrite the following program in D--making
I'd like to have something similar to C++'s
std::istream_iteratorint(std::cin)
Is it possible? I'm relatively indifferent to efficiency of the
solution.
On Wednesday, 17 September 2014 at 14:37:21 UTC, Marc Schütz
wrote:
On Wednesday, 17 September 2014 at 12:44:00 UTC, krzaq wrote:
I'd like to have something similar to C++'s
std::istream_iteratorint(std::cin)
Is it possible? I'm relatively indifferent to efficiency of
the solution.
import
On Friday, 29 August 2014 at 02:11:01 UTC, ketmar via
Digitalmars-d-announce wrote:
On Thu, 28 Aug 2014 16:18:42 +
safety0ff via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:
What do you have against capitalizing 'I' ?
don't even noticed that until your post. but maybe
On Friday, 29 August 2014 at 14:17:55 UTC, krzaq wrote:
On Friday, 29 August 2014 at 02:11:01 UTC, ketmar via
Digitalmars-d-announce wrote:
On Thu, 28 Aug 2014 16:18:42 +
safety0ff via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com wrote:
What do you have against capitalizing
On Friday, 29 August 2014 at 16:13:33 UTC, ketmar via
Digitalmars-d-announce wrote:
On Fri, 29 Aug 2014 14:17:53 +
krzaq via Digitalmars-d-announce
digitalmars-d-announce@puremagic.com
wrote:
If you're writing in a language, try to appear literate.
but what if i can't, for example? i can
Hello,
I'm trying to follow the documentation:
http://dlang.org/phobos/std_process.html#.execute
Unfortunately, the following code gives me a compiler error:
class Probator
{
char[] dir;
this(const char[] dir){
this.dir = dir.dup;
}
int
On Wednesday, 20 August 2014 at 16:16:03 UTC, ketmar via
Digitalmars-d-learn wrote:
On Wed, 20 Aug 2014 16:07:47 +
KrzaQ via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com wrote:
It's as if the implementation didn't expect the last argument.
try to upgrade to dmd 2.066
On Monday, 18 August 2014 at 19:00:23 UTC, Andrei Alexandrescu
wrote:
Congratulations to everyone involved!
http://www.reddit.com/r/programming/comments/2dwqvy/d_2066_nogc_c_namespaces_multidimensional_slices/
https://www.facebook.com/dlang.org/posts/905593426121006
55 matches
Mail list logo