On Wednesday, 3 February 2016 at 06:11:07 UTC, H. S. Teoh wrote:
I still can't come up with a compelling use case that would
justify using a const/immutable class member, that couldn't be
done by some other means, though. Especially since we're
talking about classes, we already have all the
On Monday, 1 February 2016 at 21:40:45 UTC, Enjoys Math wrote:
module signals_and_slots;
How do you implement this template called like:
void onColorChange(in Color) {
// do something with color
}
auto slots = Slots!(void delegate(in Color), Color);
slots.connect();
auto color = Color(0.0,
Am 03.02.2016 um 08:45 schrieb Ola Fosheim Grøstad:
On Wednesday, 3 February 2016 at 07:06:47 UTC, cym13 wrote:
It's all true, D rose up 6 positions:
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
I don't quite know what the leading factor for that change was but it
sure will
On Wednesday, 3 February 2016 at 06:25:49 UTC, Joakim wrote:
On Tuesday, 2 February 2016 at 18:45:20 UTC, Nikolay wrote:
You're probably better off porting dmd 2.068 first (as it's the
last dmd written wholly in C++), using it to compile dmd git
master on NetBSD, then porting druntime and
Am 03.02.2016 um 09:53 schrieb Ola Fosheim Grøstad:
On Wednesday, 3 February 2016 at 08:43:39 UTC, Sönke Ludwig wrote:
And how do you verify that that's a better classification? If you look
at the graphs of any of "D", "dlang", "D programming language", "D
language", "D programming", none of
On Wednesday, 3 February 2016 at 10:36:31 UTC, Iain Buclaw wrote:
On 3 February 2016 at 10:25, Nikolay via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:
That is a relatively recent change with respect to the age of
NetBSD. :-)
I guess that in LDC the intrinsic for std.math.sin is
On Wednesday, 3 February 2016 at 08:43:39 UTC, Sönke Ludwig wrote:
And how do you verify that that's a better classification? If
you look at the graphs of any of "D", "dlang", "D programming
language", "D language", "D programming", none of them seems to
correlate with events such as the date
On 3 February 2016 at 10:25, Nikolay via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:
> On Wednesday, 3 February 2016 at 07:45:23 UTC, Iain Buclaw wrote:
>
>> On 2 Feb 2016 7:50 pm, "Nikolay via Digitalmars-d" <
>> digitalmars-d@puremagic.com> wrote:
>>
>> Is NetBSD similar to FreeBSD in
On Wednesday, 3 February 2016 at 07:06:47 UTC, cym13 wrote:
[...]
I don't quite know what the leading factor for that change was
but it sure will be great for its image.
Oh, I am sure I caused it myself, I am new on D and all my
searching for it and than Bang ! :-)
So, don't try to
On Wednesday, 3 February 2016 at 10:41:40 UTC, Martin
Tschierschke wrote:
open for more people. Like me, frustrated from ever faster
computers becoming slower by scripting languages and Browsers
doing the job, where a real alternative is around the corner: D.
D has been around the corner for
On Wednesday, 3 February 2016 at 07:50:07 UTC, cym13 wrote:
Also I find showing even little achievements good for the
troop's morale.
Well, it is better to have good information. If you zoom in on
the link above you'll see some interesting facts on daily
patterns. The Swift and Go graph go
Am 03.02.2016 um 09:23 schrieb Sönke Ludwig:
Am 03.02.2016 um 08:45 schrieb Ola Fosheim Grøstad:
On Wednesday, 3 February 2016 at 07:06:47 UTC, cym13 wrote:
It's all true, D rose up 6 positions:
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
I don't quite know what the
On Wednesday, 3 February 2016 at 09:09:20 UTC, Sönke Ludwig wrote:
At least it shows the characteristic spikes for each language
and the related searches look reasonable. But the popularity of
D pre-2007 looks odd, and with such a bias it's impossible to
read anything out of the more recent
On Wednesday, 3 February 2016 at 04:19:37 UTC, jmh530 wrote:
A few extra questions: 1) In other parts of the code I'm using
extern(System), but that doesn't work for these. Why is
extern(C) used for function pointers?,
extern(C) is only used with function pointers when it's needed.
It
On Wednesday, 3 February 2016 at 07:45:23 UTC, Iain Buclaw wrote:
On 2 Feb 2016 7:50 pm, "Nikolay via Digitalmars-d" <
digitalmars-d@puremagic.com> wrote:
Is NetBSD similar to FreeBSD in that you have 80-bit reals but
only the first 53 bits of the mantissa are used?
I don't know how
Is there some reliable way to detect that a destructor is called
because of exception unwinding?
I basically want to change behaviour within a destructor based on
whether the destructor is called as a result of a regular or an
exceptional situation.
E.g. commit changes to a database on
On Tuesday, 2 February 2016 at 14:36:05 UTC, Bambi wrote:
1. const isn't constant
The idea was to ease porting C code to D, so many things work the
same in C and D except for maybe integer types that were borrowed
from java.
The example snippet ' immutable(int[]) bar() immutable {} '
On Wednesday, 3 February 2016 at 08:40:54 UTC, Ola Fosheim
Grøstad wrote:
On Wednesday, 3 February 2016 at 08:34:47 UTC, Sönke Ludwig
wrote:
So for comparison, D (Programming Language) shows 36 searches
in January 2016 in Google Trends for me, while the webmaster
tools show 235 klicks on
Am 03.02.2016 um 09:29 schrieb Ola Fosheim Grøstad:
On Wednesday, 3 February 2016 at 08:23:39 UTC, Sönke Ludwig wrote:
Maybe it's showing different results to you, but the numbers I get are
tiny. Also, picking arbitrary search terms skews the results
considerably.
Not really, you look at
On Wednesday, 3 February 2016 at 08:34:47 UTC, Sönke Ludwig wrote:
So for comparison, D (Programming Language) shows 36 searches
in January 2016 in Google Trends for me, while the webmaster
tools show 235 klicks on vibed.org for "vibe.d" searches in the
same timeframe (12 clicks for "dlang").
On Wednesday, 3 February 2016 at 08:53:27 UTC, Ola Fosheim
Grøstad wrote:
enough volume to show up. "d programming language" is probably
only used by non-users, it shows a clear spike in october 2004,
july 2005, january 2007, july 2014, but a general falling
trend. While "dlang" is more
On Wednesday, 3 February 2016 at 11:41:28 UTC, Jonathan M Davis
wrote:
AFAIK, there is no way to detect whether an exception is in
flight or not aside from the cases where scope(failure) or
catch would catch the exception, and from what I recall of the
last time that someone asked this
Is there any example,framework or tutorial on how to call D from Tcl (write
new commands in D for Tcl)?
I am on Windows 10 x86_64.
thank you.
--
Dr. Vasileios Anagnostopoulos (MSc,PhD)
Researcher/Developer
ICCS/NTUA 9 Heroon Polytechneiou Str., Zografou 15773 Athens,Greece
T (+30) 2107723404 M
On Tuesday, 2 February 2016 at 23:41:07 UTC, H. S. Teoh wrote:
You're misunderstanding D's type system. Immutable is not a
"better const", as though const is somehow defective. Perhaps
the following diagram may help to clear things up:
const
/ \
On Wednesday, 3 February 2016 at 07:06:47 UTC, cym13 wrote:
It's all true, D rose up 6 positions:
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
I don't quite know what the leading factor for that change was
but it sure will be great for its image.
Well, people who observe
Hi, I'd like to use Derelict, more specifically the GLFW package,
but so far I have been unable to make it work. (I posted in the
IDE section but didn't get a reply (link below), and since the
Derelict forum seems not to exist anymore, I post here. I hope it
is OK to do so)
Things I tried :
On Wednesday, 3 February 2016 at 12:18:17 UTC, Whirlpool wrote:
Hi, I'd like to use Derelict, more specifically the GLFW
package, but so far I have been unable to make it work. (I
posted in the IDE section but didn't get a reply (link below),
and since the Derelict forum seems not to exist
On Wednesday, 3 February 2016 at 12:20:42 UTC, Vasileios
Anagnostopoulos wrote:
Is there any example,framework or tutorial on how to call D
from Tcl (write new commands in D for Tcl)?
I am on Windows 10 x86_64.
thank you.
I've created a wrapper around Tcl/Tk to create GUI's here:
On 03.02.2016 14:16, Robert M. Münch wrote:
Well, it should of course be:
BaseOperator: Value {
}
Still missing "class". I know I'm being pedantic, but if you're being
sloppy here, how do I know that you're not being sloppy where it matters?
Casting between class types that have an
On Wednesday, 3 February 2016 at 13:12:13 UTC, CraigDillabaugh
wrote:
C++ is likely searched the most because every time you need to
do anything non-trivial you need to go on Stack Overflow or a
similar site and find out how to do it, because there is very
little chance you would ever be able
On Wednesday, 3 February 2016 at 13:27:45 UTC, karabuta wrote:
I understand many D programmers were formally(or still is or
in-between) C++ but most explanations for certain things tells
me either D is a C++ clone or I need to learn C++ first before
I really understand D (kind of like C++ is a
On Wednesday, 3 February 2016 at 10:43:44 UTC, Ola Fosheim
Grøstad wrote:
On Wednesday, 3 February 2016 at 10:41:40 UTC, Martin
Tschierschke wrote:
open for more people. Like me, frustrated from ever faster
computers becoming slower by scripting languages and Browsers
doing the job, where a
On Wednesday, 3 February 2016 at 13:04:54 UTC, Mike Parker wrote:
latest release. Unfortunately, they do not provide a binary
distribution, so you will have to build the DLL from source or
find somewhere that makes it available prebuilt DLLs available
for you.
Actually, they do provide
I understand many D programmers were formally(or still is or
in-between) C++ but most explanations for certain things tells me
either D is a C++ clone or I need to learn C++ first before I
really understand D (kind of like C++ is a subset of D). I must
say that I never coded C++ beyond "hello,
On Wednesday, 3 February 2016 at 08:23:39 UTC, Sönke Ludwig wrote:
Maybe it's showing different results to you, but the numbers I
get are tiny. Also, picking arbitrary search terms skews the
results considerably.
Not really, you look at trends over time not absolutes.
Results using
On Wednesday, 3 February 2016 at 00:43:36 UTC, Dicebot wrote:
The fact DMD doesn't do anything scary right now when you do it
is a mere coincidence and may change in any release with no
notice.
DMD performs some immutable optimizations and people noticed it.
On Wednesday, February 03, 2016 11:09:00 Ola Fosheim Grøstad via
Digitalmars-d-learn wrote:
> Is there some reliable way to detect that a destructor is called
> because of exception unwinding?
>
> I basically want to change behaviour within a destructor based on
> whether the destructor is called
On Wednesday, 3 February 2016 at 10:16:56 UTC, Saurabh Das wrote:
Why doesn't this work? Is it a requirement that a proxied
struct must have a nothrow destructor and toHash?
It used to work in 2.066.1; bisecting points to this PR:
https://github.com/D-Programming-Language/phobos/pull/3043
On Wednesday, 3 February 2016 at 12:06:30 UTC, Martin
Tschierschke wrote:
If something is around the corner, you must know!
There are many corners. Some, like the corner of compiled
languages with automatic memory management and high level
features have moved a lot in the past few years
On Wednesday, 3 February 2016 at 13:07:51 UTC, Mike Parker wrote:
On Wednesday, 3 February 2016 at 13:04:54 UTC, Mike Parker
wrote:
latest release. Unfortunately, they do not provide a binary
distribution, so you will have to build the DLL from source or
find somewhere that makes it
On Wednesday, 3 February 2016 at 08:53:27 UTC, Ola Fosheim
Grøstad wrote:
You have to make a qualitative judgement. Terms such as "dlang"
has only been in used in recent years and probably only by
invested users. It is difficult to find terms for "D" that have
enough volume to show up. "d
On Wednesday, 3 February 2016 at 08:00:20 UTC, Ola Fosheim
Grøstad wrote:
On Wednesday, 3 February 2016 at 07:50:07 UTC, cym13 wrote:
Also I find showing even little achievements good for the
troop's morale.
Well, it is better to have good information. If you zoom in on
the link above you'll
Hello
I'm trying to count time difference to count time for how long
instance is running. Here is how am i doing it:
import std.stdio, sigv4, kxml.xml, awsxml;
import std.datetime;
import std.string;
void main()
{
SigV4 req = new SigV4;
IfResult result = req.go;
AwsXml
On Wednesday, 3 February 2016 at 19:21:06 UTC, Meta wrote:
On Wednesday, 3 February 2016 at 18:40:27 UTC, xtreak wrote:
Thanks. I was trying to get the return type of lambdas. I was
trying the following and got an error. I was using dpaste with
dmd 2.070
writeln(ReturnType!(a =(a *a)))
On Wednesday, 3 February 2016 at 14:19:32 UTC, Vasileios
Anagnostopoulos wrote:
Thank you very much. I investigate
Tcl_CmdProc
more closely.
On Wed, Feb 3, 2016 at 3:50 PM, Gary Willoughby via
Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote:
On Wednesday, 3 February 2016 at
On 2/3/16 11:28 AM, Jonathan M Davis via Digitalmars-d wrote:
On Sunday, 31 January 2016 at 06:34:26 UTC, Walter Bright wrote:
32/64 support now on Linux and FreeBSD.
https://github.com/D-Programming-Language/dmd/pull/5376
Turns out that FreeBSD is close enough to Linux that it "just
On Wednesday, 3 February 2016 at 12:12:03 UTC, Kagamin wrote:
Immutability provides stronger guarantee that allows more
optimizations, e.g. reading the same immutable value is known
to result in the same value so such repeated reading can be
optimized out, in C such optimization is illegal,
On 02/03/2016 02:33 PM, H. S. Teoh via Digitalmars-d-announce wrote:
On Wed, Feb 03, 2016 at 07:25:55PM +0200, Dicebot via Digitalmars-d-announce
wrote:
The problem is how you are going to expose templated stuff which
dominates most useful D libraries.
This is certainly an interesting idea
On Wednesday, February 03, 2016 11:47:35 Ola Fosheim Grøstad via
Digitalmars-d-learn wrote:
> On Wednesday, 3 February 2016 at 11:41:28 UTC, Jonathan M Davis
> wrote:
> > AFAIK, there is no way to detect whether an exception is in
> > flight or not aside from the cases where scope(failure) or
> >
On 02/03/2016 09:12 PM, Atila Neves wrote:
https://github.com/D-Programming-Language/phobos/pull/3968
I think fold should be nothrow, but maybe that's just me. It's also a
massive pain to make it that way, so I didn't for now.
Returning Unqual!(ElementType!R).init makes no sense though.
The
On Wednesday, 3 February 2016 at 19:48:48 UTC, Bubbasaur wrote:
Yes they leave and go to another language with a lot of tools
but the new language design sucks or it's slow to developing or
have restrictions whatever.
It is possible to position a language as a focused niche
alternative,
On Wednesday, 3 February 2016 at 21:45:04 UTC, Timon Gehr wrote:
On 02/03/2016 09:12 PM, Atila Neves wrote:
https://github.com/D-Programming-Language/phobos/pull/3968
I think fold should be nothrow, but maybe that's just me. It's
also a
massive pain to make it that way, so I didn't for now.
On 2/3/16 8:17 AM, Robert M. Münch wrote:
On 2016-02-02 18:59:35 +, Steven Schveighoffer said:
If this is valid D, I'm not sure what it means :)
There was one type, the rest I stripped totally away as IMO it's not
relevant for the actual problem.
Very relevant: what are you declaring?
On 02/02/16 21:24, Ali Çehreli wrote:
On 02/02/2016 07:21 AM, Shachar Shemesh wrote:
> it is a potential pitfall when implementing that I don't think is
> documented.
Good catch! Please either open a documentation bug for this or fork the
repo and fix it yourself. :) (Hopefully, there is an
On Wednesday, 3 February 2016 at 07:06:47 UTC, cym13 wrote:
It's all true, D rose up 6 positions:
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
Very good, and different from the other guy I think this list is
very reasonable, just look the top languages and their positions
On Wednesday, 3 February 2016 at 00:57:18 UTC, Andrei
Alexandrescu wrote:
On 2/2/16 3:50 PM, Atila Neves wrote:
On Tuesday, 2 February 2016 at 20:02:39 UTC, Andrei
Alexandrescu wrote:
On 2/2/16 11:02 AM, Atila Neves wrote:
On Friday, 29 January 2016 at 12:08:01 UTC, Andrei
Alexandrescu wrote:
On Wednesday, 3 February 2016 at 13:04:54 UTC, Mike Parker wrote:
- First I tried to create a VisualD project on Windows, and to
manually compile derelict-util and derelict-glfw3:
FYI, this thread motivated me to revisit the manual compilation
instructions in the Derelict docs [1]. I've
On Wednesday, 3 February 2016 at 14:19:14 UTC, ZombineDev wrote:
That's strange. Here's what I get: http://imgur.com/SZbJedj on
Chrome 48, Ubuntu 15.10 amd64.
What browser, OS, etc. are you using?
Using Chrome and I just have Ublock Origin here, I tried
dev-tools and there are NO errors or
On Wednesday, 3 February 2016 at 15:05:39 UTC, Sönke Ludwig wrote:
For std.move, isn't the only place where an exception can be
thrown in the destructor (which shouldn't throw)? It uses
memcpy to move the memory around to circumvent any extended
construction logic.
Not sure if you are
On Wednesday, 3 February 2016 at 12:21:05 UTC, Ola Fosheim
Grøstad wrote:
On Wednesday, 3 February 2016 at 12:06:30 UTC, Martin
Tschierschke wrote:
If something is around the corner, you must know!
There are many corners. Some, like the corner of compiled
languages with automatic memory
Thank you very much. I investigate
Tcl_CmdProc
more closely.
On Wed, Feb 3, 2016 at 3:50 PM, Gary Willoughby via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> On Wednesday, 3 February 2016 at 12:20:42 UTC, Vasileios Anagnostopoulos
> wrote:
>
>> Is there any
On Wednesday, 3 February 2016 at 01:55:16 UTC, bubbasaur wrote:
On Sunday, 24 January 2016 at 10:39:51 UTC, Vladimir Panteleev
wrote:
The font size looks larger than I recall seeing it in the iOS
simulator. I'm switching OSes so can't look at the moment
though.
I'm thinking that the end-all
On Wednesday, 3 February 2016 at 14:34:09 UTC, WebFreak001 wrote:
Combining that with the categories now gives a graph which
looks very likely to be correct:
Am 03.02.2016 um 00:21 schrieb Ali Çehreli:
On 02/02/2016 03:09 PM, Ola Fosheim Grøstad wrote:
On Tuesday, 2 February 2016 at 22:36:22 UTC, Ali Çehreli wrote:
This question has been brought up a lot lately. I've decided to look
at this more seriously yesterday.
Nice to see that others are
On Wednesday, 3 February 2016 at 14:34:26 UTC, Ola Fosheim
Grøstad wrote:
[..]
You know Comal? Isn't that a danish language that never got
much traction outside Denmark? I remember reading danish
computer magazines in the late 80s that devoted many pages to
it.
Comal, Yes, it was one of our
On 2/2/16 8:42 PM, Chris Wright wrote:
On Tue, 02 Feb 2016 15:41:07 -0800, H. S. Teoh via Digitalmars-d wrote:
Furthermore, since const provides actual guarantees that the called
function isn't going to touch the data, this opens up optimization
opportunities for the compiler.
const opens up
On Wednesday, 3 February 2016 at 09:09:20 UTC, Sönke Ludwig wrote:
BTW, this one (using the "programming" category) looks like it
could be somewhat neutral:
https://www.google.com/trends/explore#cat=0-5-31=d%20language%2C%20rust%20language%2C%20go%20language%2C%20swift%20language=q=Etc%2FGMT-1
On Wednesday, 3 February 2016 at 14:14:39 UTC, Martin
Tschierschke wrote:
Why? Syntax not C compatible, but for me this is a very strong
argument, because everybody is defining his own similar
elements and after "learning" some Languages
On Wednesday, 3 February 2016 at 14:41:01 UTC, Ola Fosheim
Grøstad wrote:
That would make D very popular in China and Russia, compared to
the US. Maybe it is, I don't know.
It puts Japan on the first place. Considering how the #dlang
twitter hashtag looks like this could be very true.
Another nice property of immutable data is that it can be safely
shared between threads: const data that is a readonly view into
changing mutable data may require locking to get consistent view
of data; immutable data doesn't require locking, since it doesn't
change.
On Wednesday, 3 February 2016 at 14:01:24 UTC, Ivan Kazmenko
wrote:
1. What works.
Read my post here:
http://stackoverflow.com/questions/34398408/struct-declaration-order/34398642#34398642
then see if you can use the same reasoning on your problem.
This code:
import std.stdio;
int very_very_long_function(in int k)
{
if (!__ctfe) writeln("Can't use ctfe!");
return k/2;
}
void main()
{
enum first = very_very_long_function(10);
writeln("First is ", first);
auto second = very_very_long_function(12);
On Wednesday, 3 February 2016 at 23:43:45 UTC, Enjoys Math wrote:
I am making a method called:
@property string debugIDString() {
in {
assert(super.toHash() == this.toHash());
} body {
}
body { // is currently:
return to!string(this.toHash());
}
and is returning a base10 string, so how
It would be nice to have a simple writeln that adds spaces
automatically like Python's 'print' in std.stdio, perhaps called
print.
On Tuesday, 2 February 2016 at 22:36:22 UTC, Ali Çehreli wrote:
Have you used something similar before? Is this a correct
approach to this problem?
This reminds me of C++ prior to C++11; there were libraries with
whole sets of data structures intended to make move-like
semantics work. While
On Wed, Feb 03, 2016 at 10:30:45PM +, John Colvin via Digitalmars-d wrote:
> On Wednesday, 3 February 2016 at 21:45:04 UTC, Timon Gehr wrote:
> >On 02/03/2016 09:12 PM, Atila Neves wrote:
> >>
> >>https://github.com/D-Programming-Language/phobos/pull/3968
> >>
> >>I think fold should be
On Wednesday, February 03, 2016 22:27:07 holo via Digitalmars-d-learn wrote:
> When i start same program on server in different timezone
> difference is much higher (more than hour). Why it is happening?
> Timezones shouldnt have influence on such equation.
You're probably getting problems due to
On Thursday, 4 February 2016 at 00:30:03 UTC, cym13 wrote:
On Thursday, 4 February 2016 at 00:23:07 UTC, ixid wrote:
It would be nice to have a simple writeln that adds spaces
automatically like Python's 'print' in std.stdio, perhaps
called print.
Sounds way too redundant to me.
Normally
On Wednesday, 3 February 2016 at 17:49:39 UTC, Marc Schütz wrote:
On Wednesday, 3 February 2016 at 16:07:59 UTC, Messenger wrote:
What is a good way to try to force it? Using enum? Then
optionally copying the value once to avoid the "manifest
constant" copy/paste behaviour, where applicable?
On 02/03/2016 11:39 PM, Andrea Fontana wrote:
On Wednesday, 3 February 2016 at 17:49:39 UTC, Marc Schütz wrote:
On Wednesday, 3 February 2016 at 16:07:59 UTC, Messenger wrote:
What is a good way to try to force it? Using enum? Then optionally
copying the value once to avoid the "manifest
On Wednesday, 3 February 2016 at 22:27:07 UTC, holo wrote:
When i start same program on server in different timezone
difference is much higher (more than hour). Why it is
happening? Timezones shouldnt have influence on such equation.
Try using `Clock.currTime(UTC())`. And make sure all
On Wednesday, 3 February 2016 at 11:22:50 UTC, Márcio Martins
wrote:
How would you select the package version you want to use.
Obviously it would be fine for small scripts to pick the latest
version, but no so much for non-trivial projects.
Somewhat related: I would love to be able to
On Wednesday, 3 February 2016 at 15:09:35 UTC, Adam D. Ruppe
wrote:
Read my post here:
http://stackoverflow.com/questions/34398408/struct-declaration-order/34398642#34398642
then see if you can use the same reasoning on your problem.
This indeed works without any other tricks such as
On Wed, Feb 03, 2016 at 11:45:15PM +, Enjoys Math via Digitalmars-d-learn
wrote:
> On Wednesday, 3 February 2016 at 23:43:45 UTC, Enjoys Math wrote:
> >I am making a method called:
> >
> >@property string debugIDString() {
> >in {
> > assert(super.toHash() == this.toHash());
> >} body {
> >
On 04.02.2016 00:45, Enjoys Math wrote:
On Wednesday, 3 February 2016 at 23:43:45 UTC, Enjoys Math wrote:
body { // is currently:
return to!string(this.toHash());
}
and is returning a base10 string, so how would I return a hex string so
I can compare numbers displayed to the debugger
On Thursday, 4 February 2016 at 00:23:07 UTC, ixid wrote:
It would be nice to have a simple writeln that adds spaces
automatically like Python's 'print' in std.stdio, perhaps
called print.
Sounds way too redundant to me.
On Wednesday, 3 February 2016 at 23:35:21 UTC, Tofu Ninja wrote:
...
Actually now that I think about it, you can do with out the
pragma and just define something like this...
mixin template DubDependency(string dependency, string vers)
{
// Does nothing but print a dependency
https://issues.dlang.org/show_bug.cgi?id=15644
--- Comment #1 from Walter Bright ---
https://github.com/D-Programming-Language/dmd/pull/5397
--
On Thursday, 28 January 2016 at 11:25:08 UTC, Laeeth Isharc wrote:
In theory it's completely irrelevant as to whether is something
is in the standard library or can just be imported via dub or a
git clone, but in practice that's not the case.
In support of this statement in particular I'd
https://issues.dlang.org/show_bug.cgi?id=15644
Issue ID: 15644
Summary: Change object layout ABI to MI style
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
This appears a simple problem: given numbers a, b, c, d, e, swap them
around so as to place the median in c and partition the others around
it. I.e. the postcondition is: a <= c && b <= c && c <= d && c <= e.
Searching the Net for this isn't easy. Fortunately "our own" Xinok has
the best of
https://issues.dlang.org/show_bug.cgi?id=15644
--- Comment #2 from Walter Bright ---
Spec change:
https://github.com/D-Programming-Language/dlang.org/pull/1225
--
https://issues.dlang.org/show_bug.cgi?id=15644
Walter Bright changed:
What|Removed |Added
See Also|
On Wednesday, 3 February 2016 at 19:21:06 UTC, Meta wrote:
On Wednesday, 3 February 2016 at 18:40:27 UTC, xtreak wrote:
Thanks. I was trying to get the return type of lambdas. I was
trying the following and got an error. I was using dpaste with
dmd 2.070
writeln(ReturnType!(a =(a *a)))
On Thu, 04 Feb 2016 01:23:14 +, Tofu Ninja wrote:
> Actually, nvm, wouldn't actually work because as soon as you add an
> import derelict.opengl3.gl3; it would error out because it cant find the
> file and it wouldn't print the dependencies.
You could do it with libdparse, since it doesn't
On Thursday, 4 February 2016 at 01:33:54 UTC, Era Scarecrow wrote:
On Thursday, 4 February 2016 at 01:24:15 UTC, Andrei
Alexandrescu wrote:
This appears a simple problem: given numbers a, b, c, d, e,
swap them around so as to place the median in c and partition
the others around it. I.e. the
On Wednesday, 3 February 2016 at 16:59:13 UTC, ZombineDev wrote:
And which version of Chrome are you using and on what OS?
I think it's something with my OS (Windows), because in Firefox
it isn't working too. And about the Chrome version it's the
latest.
On android/KitKat 4.4 I can see the
On Thursday, 4 February 2016 at 00:50:43 UTC, Tofu Ninja wrote:
On Wednesday, 3 February 2016 at 23:35:21 UTC, Tofu Ninja wrote:
...
Actually now that I think about it, you can do with out the
pragma and just define something like this...
mixin template DubDependency(string dependency,
On Wednesday, 3 February 2016 at 23:57:12 UTC, Ivan Kazmenko
wrote:
On Wednesday, 3 February 2016 at 22:09:37 UTC, sigod wrote:
On Wednesday, 3 February 2016 at 19:21:06 UTC, Meta wrote:
Ah, I see. I'd like to test something; can you please change
`(a) => a * a` to
`(int a) => a * a` and post
On 02/03/2016 09:01 PM, Matt Elkins wrote:
[code]
import std.algorithm;
struct ResourceHandle(T, alias Deleter, T Default = T.init)
{
// Constructors/Destructor
this(T handle) {m_handle = handle;}
@disable this(this);
~this() {Deleter(m_handle);}
// Operators
1 - 100 of 196 matches
Mail list logo