On 11/24/2017 08:28 PM, ketmar wrote:
quickfix. forgot to properly set requested OpenGL version.
http://files.catbox.moe/lx02hz.7z
Very cool! Works under wine for me. Not a game I was familiar with, so
it's cool learning hands-on about more of Konami's back catalog from one
of the best
https://issues.dlang.org/show_bug.cgi?id=15984
--- Comment #16 from MichaelZ ---
(In reply to robin.kupper from comment #15)
> While the first example works now, parameters in out contracts on interface
> functions are still garbage.
>
> See example
On Sunday, 24 January 2016 at 19:18:28 UTC, Gerald wrote:
On Monday, 18 January 2016 at 09:04:48 UTC, Luis wrote:
Please, write a HowTo some where. GtkD lack of documentation
it's very anoying.
I've gotten this going with Terminix and posted some
information what it took to get it going
On Tuesday, 28 November 2017 at 06:24:38 UTC, Dmitry Olshansky
wrote:
On Tuesday, 28 November 2017 at 06:12:19 UTC, Walter Bright
wrote:
On 11/27/2017 9:11 PM, rikki cattermole wrote:
On 28/11/2017 5:03 AM, Walter Bright wrote:
On 11/27/2017 6:55 PM, John wrote:
Should add optlink to that
On Tuesday, 28 November 2017 at 05:11:25 UTC, rikki cattermole
wrote:
On 28/11/2017 5:03 AM, Walter Bright wrote:
On 11/27/2017 6:55 PM, John wrote:
Should add optlink to that list, would love to see it
converted to D!
So would I, but there's no chance of that (unless someone else
wants to
On Monday, 27 November 2017 at 17:35:53 UTC, Ola Fosheim Grostad
wrote:
C++ is very much batteries not included... Which is good for
low level programming.
In that case, why is libstdc++ 12MB, while libphobos2 is half the
size, at 5.5MB?
On Monday, 27 November 2017 at 19:01:28 UTC, Ali Çehreli wrote:
P.S. I think you have an unnecessary 'ref' on the D version
because a slice is already a reference to elements:
Fixed, thank you.
On Tuesday, 28 November 2017 at 06:12:19 UTC, Walter Bright wrote:
On 11/27/2017 9:11 PM, rikki cattermole wrote:
On 28/11/2017 5:03 AM, Walter Bright wrote:
On 11/27/2017 6:55 PM, John wrote:
Should add optlink to that list, would love to see it
converted to D!
We have discussed this on
On Tuesday, 28 November 2017 at 05:10:39 UTC, bauss wrote:
null != void
also...void is a completely useless concept for initialisation.
what can you determine about the nothingness of void? ... nothing.
writeln(typeof(void).stringof); // ?? what do I know now? nothing.
vs
Nullable!int x;
On 11/27/2017 9:11 PM, rikki cattermole wrote:
On 28/11/2017 5:03 AM, Walter Bright wrote:
On 11/27/2017 6:55 PM, John wrote:
Should add optlink to that list, would love to see it converted to D!
So would I, but there's no chance of that (unless someone else wants to pick
up that flag).
On Tuesday, 28 November 2017 at 05:16:54 UTC, Michael V. Franklin
wrote:
On Tuesday, 28 November 2017 at 04:48:57 UTC, A Guy With an
Opinion wrote:
I'd be happy to submit an issue, but I'm not quite sure I'd be
the best to determine an error message (at least not this
early). Mainly because
On Tuesday, 28 November 2017 at 04:52:52 UTC, bauss wrote:
You're not measuring what you think for the Java program. Did
you calculate the runtime and JIT initialization time and
subtracted that from the actual execution time? Otherwise your
benchmark isn't sufficient.
For small programs,
On Tuesday, 28 November 2017 at 04:48:57 UTC, A Guy With an
Opinion wrote:
I'd be happy to submit an issue, but I'm not quite sure I'd be
the best to determine an error message (at least not this
early). Mainly because I have no clue what it was yelling at me
about. I only new to add static
On Tuesday, 28 November 2017 at 05:10:39 UTC, bauss wrote:
null != void
"initialized or not?" != void
On 28/11/2017 5:03 AM, Walter Bright wrote:
On 11/27/2017 6:55 PM, John wrote:
Should add optlink to that list, would love to see it converted to D!
So would I, but there's no chance of that (unless someone else wants to
pick up that flag). Years ago, I attempted to convert it to C. It was
On Monday, 27 November 2017 at 02:12:40 UTC, codephantom wrote:
On Saturday, 25 November 2017 at 15:34:21 UTC, John Chapman
wrote:
Is there any way of determining whether a variable has been
initialized or not? For example, if something is declared like
this:
int x = void;
can I check if
On 11/27/2017 6:55 PM, John wrote:
Should add optlink to that list, would love to see it converted to D!
So would I, but there's no chance of that (unless someone else wants to pick up
that flag). Years ago, I attempted to convert it to C. It was possible, but an
agonizingly slow process.
On Tuesday, 28 November 2017 at 02:26:34 UTC, Neia Neutuladh
wrote:
You might try reading my first post.
Java: 140ms to print "Hello world"
D: 50ms to turn a 400kb subtex document into an epub
You're not measuring what you think for the Java program. Did you
calculate the runtime and JIT
On Tuesday, 28 November 2017 at 04:37:04 UTC, Michael V. Franklin
wrote:
Please submit things like this to the issue tracker. They are
very easy to fix, and if I'm aware of them, I'll probably do
the work. But, please provide a code example and
offer a suggestion of what you would prefer it
On Tuesday, 28 November 2017 at 03:01:33 UTC, A Guy With an
Opinion wrote:
+ D code so far is pushing me towards more "flat" code (for a
lack of a better way to phrase it) and so far that has helped
tremendously when it comes to readability. C# kind is the
opposite. With it's namespace ->
On Tuesday, 28 November 2017 at 04:24:46 UTC, Adam D. Ruppe wrote:
immutable(int) errorCount() { return ...; }
I actually did try something like that, because I remembered
seeing the parens around the string definition. I think at that
point I was just so riddled with errors I just took a
On Monday, 27 November 2017 at 08:33:42 UTC, IM wrote:
- More exposure. I sometimes feel like there isn't enough D
material to consume on a regular basis (and I and certainly
many others are eager to learn more and more about the
language). i.e. one blog post (weekly?), and a single DConf
On Monday, 27 November 2017 at 18:32:39 UTC, Ola Fosheim Grøstad
wrote:
You get this:
shared_ptr -> control_block -> object
Actually, seems like the common implementation uses 16 bytes, so
that it has a direct pointer as well. So twice the size of
unique_ptr.
On Tuesday, 28 November 2017 at 04:19:40 UTC, A Guy With an
Opinion wrote:
Also, C and C++ didn't just have undefined behavior, sometimes
it has inconsistent behavior. Sometimes int a; is actually set
to 0.
set to?
A Guy With an Opinion wrote:
Eh...I still don't agree.
anyway, it is something that won't be changed, 'cause there may be code
that rely on current default values.
i'm not really trying to change your mind, i just tried to give a rationale
behind the choice. that's why `char.init` is 255
On Tuesday, 28 November 2017 at 03:01:33 UTC, A Guy With an
Opinion wrote:
- Some of the errors from DMD are a little strange.
Yes, indeed, and many of them don't help much in finding the real
source of your problem. I think improvements to dmd's error
reporting would be the #1 productivity
On Tuesday, 28 November 2017 at 04:17:18 UTC, A Guy With an
Opinion wrote:
On Tuesday, 28 November 2017 at 04:12:14 UTC, ketmar wrote:
A Guy With an Opinion wrote:
That is true, but I'm still unconvinced that making the
person's program likely to error is better than initializing
a number to
On Tuesday, 28 November 2017 at 04:12:14 UTC, ketmar wrote:
A Guy With an Opinion wrote:
That is true, but I'm still unconvinced that making the
person's program likely to error is better than initializing a
number to 0. Zero is such a fundamental default for so many
things. And it would be
A Guy With an Opinion wrote:
That is true, but I'm still unconvinced that making the person's program
likely to error is better than initializing a number to 0. Zero is such a
fundamental default for so many things. And it would be consistent with
the other number types.
basically, default
On Tuesday, 28 November 2017 at 03:37:26 UTC, rikki cattermole
wrote:
Its on our TODO list.
Allocators need to come out of experimental and some form of RC
before we tackle it again.
In the mean time https://github.com/economicmodeling/containers
is pretty good.
That's good to hear.
I
On 28/11/2017 3:01 AM, A Guy With an Opinion wrote:
Hi,
I've been using D for a personal project for about two weeks now and
just thought I'd share my initial impression just in case it's useful! I
like feedback on things I do, so I just assume others do to. Plus my
opinion is the best on
On Tuesday, 28 November 2017 at 03:01:33 UTC, A Guy With an
Opinion wrote:
- ...however, where are all of the collections? No Queue? No
Stack? No HashTable? I've read that it's not a big focus
because some of the built in stuff *can* behave like those
things. The C# project I'm porting
Hi,
I've been using D for a personal project for about two weeks now
and just thought I'd share my initial impression just in case
it's useful! I like feedback on things I do, so I just assume
others do to. Plus my opinion is the best on the internet! You
will see (hopefully the sarcasm is
On Monday, 27 November 2017 at 23:13:00 UTC, Walter Bright wrote:
On 11/27/2017 7:16 AM, Steven Schveighoffer wrote:
On 11/26/17 9:56 PM, Walter Bright wrote:
I have recently finished converting the Digital Mars C++
compiler front end from "C with classes" to D.
I did a double-take on this.
On Tuesday, 28 November 2017 at 02:32:58 UTC, Joakim wrote:
Yes, I was only talking about your statements about there not
being a moderator and implying forum posts couldn't be deleted,
as should be clear from the rest of what I wrote.
It certainly looks like at least one post has been
On Tuesday, 28 November 2017 at 02:26:34 UTC, Neia Neutuladh
wrote:
On Monday, 27 November 2017 at 17:35:53 UTC, Ola Fosheim
Grostad wrote:
On Monday, 27 November 2017 at 16:44:41 UTC, Neia Neutuladh
wrote:
I last used C++ professionally in 2015, and we were still
rolling out C++11.
On 11/27/2017 11:57 AM, Jonathan M Davis wrote:
I don't use the web interface for the newsgroup, and I have no interest in
doing so. I use the mailing list. The same goes for many of the major
contributors. Others use the newsgroup directly. IMHO, being stuck with any
form of forum software
On Tuesday, 28 November 2017 at 02:18:09 UTC, codephantom wrote:
If I work it out, I'll post back what i found.
ok. just needed to update firefox from (47.x to 57.x) and now it
works.
so 2 months after discovering D, i can finally take the tour ;-)
On Tuesday, 28 November 2017 at 02:19:52 UTC, Mike Parker wrote:
On Monday, 27 November 2017 at 20:07:34 UTC, Joakim wrote:
btw. I read somewhere that this forum software can't delete
threads. That sounds pretty silly. Even sillier if it's true.
It's not true, despite what Mike said
On Monday, 27 November 2017 at 17:35:53 UTC, Ola Fosheim Grostad
wrote:
On Monday, 27 November 2017 at 16:44:41 UTC, Neia Neutuladh
wrote:
I last used C++ professionally in 2015, and we were still
rolling out C++11. std::string_view is part of C++17. You're
calling me stupid for not having
On Sunday, 19 November 2017 at 13:35:13 UTC, Michael V. Franklin
wrote:
What's the official word? Does it require a DIP?
For those who might want to know, Walter has informed me that
this change will require a DIP. I already have two DIPs in the
queue right now, so I wouldn't mind if
On Monday, 27 November 2017 at 20:07:34 UTC, Joakim wrote:
btw. I read somewhere that this forum software can't delete
threads. That sounds pretty silly. Even sillier if it's true.
It's not true, despite what Mike said earlier.
I didn't say it's impossible to delete messages from the NNTP
On 11/27/2017 06:08 PM, codephantom wrote:
Why do we have this link?
https://tour.dlang.org
I cannot recall it ever working.
(is it just something at my end?)
What is it meant to take us to?
I remember needing to refresh the page in the browser. I don't know what
class of page
On Tuesday, 28 November 2017 at 02:11:32 UTC, Joakim wrote:
On Tuesday, 28 November 2017 at 02:08:24 UTC, codephantom wrote:
Why do we have this link?
https://tour.dlang.org
I cannot recall it ever working.
(is it just something at my end?)
What is it meant to take us to?
Works for me,
On Tuesday, 28 November 2017 at 02:08:24 UTC, codephantom wrote:
Why do we have this link?
https://tour.dlang.org
I cannot recall it ever working.
(is it just something at my end?)
What is it meant to take us to?
Works for me, though it hasn't always. What do you see, a blank
page? I
On 28/11/2017 2:08 AM, codephantom wrote:
Why do we have this link?
https://tour.dlang.org
I cannot recall it ever working.
(is it just something at my end?)
Never had a problem with it. Definitely working right now.
Why do we have this link?
https://tour.dlang.org
I cannot recall it ever working.
(is it just something at my end?)
What is it meant to take us to?
On Monday, 27 November 2017 at 19:20:53 UTC, Joseph Rushton
Wakeling wrote:
What would be the appropriate way to follow up on that idea?
The last I saw DIP 1006 was undergoing formal review, but the
end of that period seems to have passed with no further
follow-up.
Formal reviews have
On Tuesday, November 28, 2017 00:15:24 John via Digitalmars-d wrote:
> On Monday, 27 November 2017 at 17:48:35 UTC, Andrei Alexandrescu
>
> wrote:
> > Hi Mike, this forum is not an appropriate place for requesting
> > official answers. We don't scan the forums looking for matters
> > that need
On Monday, 27 November 2017 at 20:07:08 UTC, A Guy With a
Question wrote:
On Monday, 27 November 2017 at 19:41:03 UTC, Adam D. Ruppe
wrote:
On Monday, 27 November 2017 at 19:10:04 UTC, A Guy With a
One thing that is bugging me is having to mark up all of my
declarations with attributes.
Meh,
On Monday, 27 November 2017 at 17:48:35 UTC, Andrei Alexandrescu
wrote:
Hi Mike, this forum is not an appropriate place for requesting
official answers. We don't scan the forums looking for matters
that need attention. Feel free to send email to Walter and
myself, and that will get answered.
On Monday, 27 November 2017 at 23:10:22 UTC, Walter Bright wrote:
On 11/27/2017 12:07 PM, Joakim wrote:
It has been said that you shouldn't respond to such spam
posts, but my guess is that's only to make it easier to remove
the thread, by not having to hunt down all the replies or
something.
On 11/27/2017 7:16 AM, Steven Schveighoffer wrote:
On 11/26/17 9:56 PM, Walter Bright wrote:
I have recently finished converting the Digital Mars C++ compiler front end
from "C with classes" to D.
I did a double-take on this. Are we to see an article about it soon?
I suppose I should write
On 11/27/2017 12:07 PM, Joakim wrote:
It has been said that you shouldn't
respond to such spam posts, but my guess is that's only to make it easier to
remove the thread, by not having to hunt down all the replies or something.
Responding to spam encourages it. It's what the spammer wants. The
On Saturday, 25 November 2017 at 22:13:43 UTC, Adam D. Ruppe
wrote:
It technically did:
https://dlang.org/spec/function.html#local-variables
"It is an error to use a local variable without first assigning
it a value. The implementation may not always be able to detect
these cases. Other
On 27/11/2017 7:20 PM, Joseph Rushton Wakeling wrote:
On Sunday, 26 November 2017 at 12:09:37 UTC, rikki cattermole wrote:
On 26/11/2017 11:59 AM, Joseph Rushton Wakeling wrote:
One suggestion: replace -release=assert with -release=body, so in the
above, you would have:
On 11/19/2017 04:54 AM, Basile B. wrote:
> After testing some code with i've indeed observed that the transition
> period for `do` had started...
>
> "since when ?" i've wondered.
>
> Good question, it's even not in the changelog:
Same here! I learned about this in a D snippet in an article on
https://issues.dlang.org/show_bug.cgi?id=18015
--- Comment #2 from Ludovit Lucenic ---
I assume it won't be trivial but I'll do my best to provide one soon.
--
On Monday, 27 November 2017 at 20:13:35 UTC, Dmitry Olshansky
wrote:
I’ve seen a tech giant that works on uber high-performance
things making heavy use of STL, and being fond of C++14
“high-level” features.
Look, I am not against "high level" features, but shared_ptr is
nothing like the
On 27.11.2017 09:01, IM wrote:
On Monday, 27 November 2017 at 05:11:06 UTC, Neia Neutuladh wrote:
On Monday, 27 November 2017 at 00:14:40 UTC, IM wrote:
- It's quite clear that D was influenced a lot by Java at some
point, which led to borrowing (copying?) a lot of Java features that
may not
On Monday, 27 November 2017 at 10:57:18 UTC, Daniel Kozak wrote:
On my Archlinux there is no DSCanner error so maybe it
something wrong with my fedora box at work. But I have many
Possibly undefined symbol warnings and I do not know what it is.
Do you have DScanner configured in both
On Monday, 27 November 2017 at 18:29:56 UTC, Ola Fosheim Grøstad
wrote:
On Monday, 27 November 2017 at 17:16:50 UTC, Dmitry Olshansky
wrote:
Really, shared_ptr is the most contagious primitive of modern
C++.
Not really. Unique_ptr is, though.
To quote MS STL guy “I’m surprised we had no
On Friday, 24 November 2017 at 05:36:52 UTC, codephantom wrote:
On Friday, 24 November 2017 at 04:33:52 UTC, Walter Bright
wrote:
These posts have nothing to do with D, so please stop posting
them. This isn't a political forum.
Also, perhaps you could delegate the policing of off topic
On Monday, 27 November 2017 at 19:41:03 UTC, Adam D. Ruppe wrote:
On Monday, 27 November 2017 at 19:10:04 UTC, A Guy With a
One thing that is bugging me is having to mark up all of my
declarations with attributes.
Meh, you could also just ignore the attribute crap. Only reason
I ever mess
On Monday, 27 November 2017 at 19:21:52 UTC, Jacob Carlborg wrote:
On 2017-06-02 16:01, Jacob Carlborg wrote:
This is due to a regression in the compiler [1]. Please use
2.073.x until this has been fixed.
[1] https://issues.dlang.org/show_bug.cgi?id=17371
The issue has now been fixed.
On Monday, November 27, 2017 19:30:36 Mengu via Digitalmars-d wrote:
> On Monday, 27 November 2017 at 17:44:54 UTC, Andrei Alexandrescu
>
> wrote:
> > All: we have had an increase in troll posts lately. Please
> > avoid engaging them and resist the urge to correct assertions
> > no matter how
On 11/27/17 2:30 PM, Mengu wrote:
On Monday, 27 November 2017 at 17:44:54 UTC, Andrei Alexandrescu wrote:
All: we have had an increase in troll posts lately. Please avoid
engaging them and resist the urge to correct assertions no matter how
wrong, indignating, etc. The best response to troll
On Monday, 27 November 2017 at 19:10:04 UTC, A Guy With a
One thing that is bugging me is having to mark up all of my
declarations with attributes.
Meh, you could also just ignore the attribute crap. Only reason I
ever mess with them is if someone who is using them tries to use
my code...
On Monday, 27 November 2017 at 17:44:54 UTC, Andrei Alexandrescu
wrote:
All: we have had an increase in troll posts lately. Please
avoid engaging them and resist the urge to correct assertions
no matter how wrong, indignating, etc. The best response to
troll posts is spending the time that
On Mon, Nov 27, 2017 at 07:10:04PM +, A Guy With a Question via
Digitalmars-d-learn wrote:
> Hi again!
>
> I've been trying to do my best to write idiomatically. One thing that
> is bugging me is having to mark up all of my declarations with
> attributes. Which means I'm having to remember
On Sunday, 26 November 2017 at 12:09:37 UTC, rikki cattermole
wrote:
On 26/11/2017 11:59 AM, Joseph Rushton Wakeling wrote:
One suggestion: replace -release=assert with -release=body, so
in the above, you would have:
-release=body,in,out,invariant
... which has the nice intuitive
On 2017-06-02 16:01, Jacob Carlborg wrote:
This is due to a regression in the compiler [1]. Please use 2.073.x
until this has been fixed.
[1] https://issues.dlang.org/show_bug.cgi?id=17371
The issue has now been fixed. We'll see in which release of the compiler
it will show up.
--
On 11/27/17 2:10 PM, A Guy With a Question wrote:
Hi again!
I've been trying to do my best to write idiomatically. One thing that is
bugging me is having to mark up all of my declarations with attributes.
Which means I'm having to remember them all. It's a bit much to keep in
my head with
Hi again!
I've been trying to do my best to write idiomatically. One thing
that is bugging me is having to mark up all of my declarations
with attributes. Which means I'm having to remember them all.
It's a bit much to keep in my head with every function. Is there
a good way to reverse this
On 11/27/2017 10:47 AM, Dmitry wrote:
> On Monday, 27 November 2017 at 18:40:41 UTC, Ali Çehreli wrote:
>
>> So, it looks like the original code was accessing out of bounds and
>> probably that's why you inserted the ((index + 3) < N) check in the D
>> version because D was catching that error at
On Monday, 27 November 2017 at 18:40:41 UTC, Ali Çehreli wrote:
So, it looks like the original code was accessing out of bounds
and probably that's why you inserted the ((index + 3) < N)
check in the D version because D was catching that error at
runtime.
Yes, it is.
Which of course would
On Monday, 27 November 2017 at 17:44:54 UTC, Andrei Alexandrescu
wrote:
All: we have had an increase in troll posts lately. Please
avoid engaging them and resist the urge to correct assertions
no matter how wrong, indignating, etc. The best response to
troll posts is spending the time that
On 11/27/2017 10:25 AM, Dmitry wrote:
> On Monday, 27 November 2017 at 17:21:05 UTC, Dmitry wrote:
>> It fixed a delay (you can see it on video I posted before), but result
>> is same.
>
> It seems I found the problem.
>
> C++ version (line 93):
> if (image[index + 3] != 0)
>
> I changed to
> if
On Monday, 27 November 2017 at 18:00:59 UTC, Jonathan M Davis
wrote:
I don't understand this. I would expect most modern C++
programs to be using shared_ptr as the default for most
pointers and thus use it heavily.
You get this:
shared_ptr -> control_block -> object
Instead of this:
On Monday, 27 November 2017 at 17:16:50 UTC, Dmitry Olshansky
wrote:
Really, shared_ptr is the most contagious primitive of modern
C++.
Not really. Unique_ptr is, though.
To quote MS STL guy “I’m surprised we had no non-inteusive
ref-counted ptr in std lib for so long”.
Going Native videos
On Monday, 27 November 2017 at 17:21:05 UTC, Dmitry wrote:
It fixed a delay (you can see it on video I posted before), but
result is same.
It seems I found the problem.
C++ version (line 93):
if (image[index + 3] != 0)
I changed to
if (image[index] != 0)
and it works.
I don't understand
On Monday, November 27, 2017 15:56:09 Ola Fosheim Grostad via Digitalmars-d
wrote:
> On Monday, 27 November 2017 at 14:35:03 UTC, Dmitry Olshansky
>
> wrote:
> > Then watch Herb’s Sutter recent talk “Leak freedom by default”.
> > Now THAT guy must be out of his mind :)
>
> He could be, I havent
On 11/27/2017 05:43 AM, Michael V. Franklin wrote:
On Sunday, 19 November 2017 at 13:35:13 UTC, Michael V. Franklin wrote:
Apparently user-defined attributes are not permitted on enum members.
Issue is documented here: https://issues.dlang.org/show_bug.cgi?id=9701
Pull request implementing the
All: we have had an increase in troll posts lately. Please avoid
engaging them and resist the urge to correct assertions no matter how
wrong, indignating, etc. The best response to troll posts is spending
the time that would elsewhere go in flamewars, on good work. Feel free
to use your
Reminder...
On 11/17/2017 04:04 PM, Ali Çehreli wrote:
We're very fortunate to have Nic as our speaker this month. He will be
connecting remotely. We will announce the Google Hangouts link later so
that you can join as well.
"DCompute is a set of libraries designed to work with ldc to enable
On Monday, 27 November 2017 at 16:44:41 UTC, Neia Neutuladh wrote:
I last used C++ professionally in 2015, and we were still
rolling out C++11. std::string_view is part of C++17. You're
calling me stupid for not having already known about it. (Yes,
yes, you were sufficiently indirect to have a
On Friday, 10 November 2017 at 11:55:57 UTC, Guillaume Piolat
wrote:
For now we do have some @nogc alternatives for mutex, condition
variables, thread-pool, file reading, etc... (dplug:core
package) for use with the runtime disabled - the middle ground
that's way more usable than -betterC.
On Monday, 27 November 2017 at 17:01:29 UTC, Adam D. Ruppe wrote:
In the C++ version they are declared
std::vector pending;
std::vector pendingNext;
Ah, indeed. I thought that
pending.reserve(N);
pendingNext.reserve(N);
initializes them (last time I used C++ about 17 years ago...)
I
On Monday, 27 November 2017 at 15:56:09 UTC, Ola Fosheim Grostad
wrote:
On Monday, 27 November 2017 at 14:35:03 UTC, Dmitry Olshansky
wrote:
Then watch Herb’s Sutter recent talk “Leak freedom by
default”. Now THAT guy must be out of his mind :)
He could be, I havent seen it... Shared_ptr isnt
On Monday, 27 November 2017 at 14:35:39 UTC, Stefan Koch wrote:
First I'd make sure that what you get out of dlib load is the
same as the c++ version gets.
Just use standard debugging techniques.
Yes, it's same. As you can see, the top-middle area of the result
is same.
I wrote a video of
On Monday, 27 November 2017 at 14:58:42 UTC, Steven Schveighoffer
wrote:
I rely on the default value initialization all the time! I
don't know how that would jive with structs, since they are
technically local variables, but usually are valid without
initialization.
Yes, indeed, me too. I
On Monday, 27 November 2017 at 16:04:14 UTC, Dukc wrote:
Debatable in this case. Consider:
string servicePhoneNumber;
final switch (car.manufacturer) //an enumerated value.
Well, the compiler can see it is initialized before being read
again later, so that *should* pass the check (at least
On Monday, 27 November 2017 at 14:08:27 UTC, Dmitry wrote:
https://pastebin.com/GzZQ7WHt
The first thing that jumped out to me is this:
size_t[] pending = new size_t[N];
size_t[] pendingNext = new size_t[N];
That's giving it N elements of zero, then you append to it later
with
https://issues.dlang.org/show_bug.cgi?id=17371
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=17371
--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/a16826730fb7987d2012144cf7eaf46c53ae3735
Fix Issue 17371 - [REG 2.074.0] di generation broken for
On Monday, 27 November 2017 at 06:12:53 UTC, Ola Fosheim Grostad
wrote:
On Monday, 27 November 2017 at 05:11:06 UTC, Neia Neutuladh
std::string does the same thing. So if I reimplemented subtex
naively in C++, its performance would be closer to the C#
version than to the D version.
You meant
On Monday, 27 November 2017 at 15:34:22 UTC, Seb wrote:
On Monday, 27 November 2017 at 10:20:17 UTC, Chris wrote:
There seems to be a problem with
http://code.dlang.org/
at the moment (27.11.)
FYI there are a couple of mirrors now:
https://code-mirror.dlang.io
https://code-mirror2.dlang.io
Btw, it would improve the discourse if people tried to
distinguish between language constructs and library constructs...
On Saturday, 25 November 2017 at 09:39:15 UTC, Dave Jones wrote:
I mean at the end of the day, that would turn a run time error
into a compile time error which is a good thing isnt it?
Debatable in this case. Consider:
string servicePhoneNumber;
final switch (car.manufacturer) //an
On Monday, 27 November 2017 at 14:35:03 UTC, Dmitry Olshansky
wrote:
Then watch Herb’s Sutter recent talk “Leak freedom by default”.
Now THAT guy must be out of his mind :)
He could be, I havent seen it... Shared_ptr isnt frequently used,
it is a last resort,
atomic_shared_pointer is
1 - 100 of 139 matches
Mail list logo