On 2015-04-01 21:16, Dicebot wrote:
This is fixed by having smaller modules. If test for a single module
takes more than few blinks of an eye, something is wrong already.
For unit tests, yes. But there are other kinds of tests as well.
Integration, functional, user acceptance test and so on.
On 2015-04-01 20:49, Idan Arye wrote:
So now we just need a way to keep a line number unmodified when you add
lines above it...
I'm not sure what kind of tools you have in mind.
* Print a link which points back to a failing test, requires file and
line information
* Running a specific
On 2015-04-01 21:31, Dicebot wrote:
P.S. I hate all the Ruby testing facilities, hate with bloody passion.
The unit test framework in the Ruby standard library:
class FooTest
def test_foo_bar
assert 3 == 3
end
end
Looks likes most other testing frameworks out there to me.
--
/Jacob
On 2015-04-02 02:28, bitwise wrote:
If I'm understanding correctly, doing it this way is to avoid making
changes to the compiler, right?
I don't understand this decision because it seems that most of the
needed infrastructure is already built into ModuleInfo, and that it just
needs to be
On Thu, 02 Apr 2015 08:45:10 +0200, Jacob Carlborg wrote:
Why should the non-template
functions that _have_ the source code available suffer?
'cause inferring attributes requires running full semantic analysis on
the code, so each imported function *must* be fully processed. and with
https://issues.dlang.org/show_bug.cgi?id=14389
--- Comment #7 from Ketmar Dark ket...@ketmar.no-ip.org ---
quickfix:
class A {
@safe: // this will last forever
(nothrow): // and this will be reset on next `id:`
}
--
On 02.04.2015 09:19, Jonathan M Davis via Digitalmars-d-learn wrote:
On Tuesday, March 31, 2015 12:47:34 anonymous via Digitalmars-d-learn wrote:
On Tuesday, 31 March 2015 at 11:51:26 UTC, drug wrote:
import std.datetime;
import std.stdio;
void main()
{
Martin Nowak:
Your persistent interest in integer overflow checks make we
wonder if you were responsible for this?
http://www.around.com/ariane.html
I am not responsible for that, but I try to not be responsible
for future molecular biology mistakes equivalent to that Ariane
fiasco.
Bye,
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 Thursday, 2 April 2015 at 09:09:04 UTC, Martin Nowak wrote:
I'm not asking for a linear algebra library in phobos, although
we need one in dub and should consider having one in Phobos at
some point too.
But it would be nice if std.numeric came with a
multiply(T)(T[][] a, T[][] b, T[][]
On 2/04/2015 2:52 a.m., tchaloupka wrote:
Hi,
I have a bunch of square r16 and png images which I need to flip
horizontally.
My flip method looks like this:
void hFlip(T)(T[] data, int w)
{
import std.datetime : StopWatch;
StopWatch sw;
sw.start();
foreach(int i; 0..w)
{
On 2015-04-02 02:33, Martin Nowak wrote:
o current directory
o home directory
o exe directory (windows)
o directory off of argv0
o SYSCONFDIR (default=/etc/) (non-windows)
This sucks.
--
/Jacob Carlborg
On Thursday, 2 April 2015 at 05:55:52 UTC, Jens Bauer wrote:
So are there any suggestions on enabling debug-code, which
might give hints on what is going wrong ?
You can find information on debugging GDC here:
http://wiki.dlang.org/GDC/Development/DevelopmentEnvironment
Mike
https://issues.dlang.org/show_bug.cgi?id=14389
--- Comment #5 from Daniel Čejchan czda...@gmail.com ---
n reply to Ketmar Dark from comment #3)
or simply introduce syntax to unattribute something. this is much more
useful, imo, and not breaking any existing code.
this is very sad situation,
On 2015-04-01 21:28, Ary Borenszweig wrote:
No, it's actually much simpler but less powerful. This is because the
language is not as dynamic as Ruby. But we'd like to keep things as
simple as possible.
Can't you implement that using macros?
But right now you get these things:
1. You can
On 4/1/15 11:45 PM, Jacob Carlborg wrote:
On 2015-04-01 22:26, Walter Bright wrote:
The problem with inferring attributes on non-template functions is the
source must be available to the compiler. That's obviously true for
templates, but not so true for non-templates, where only the signature
On 2015-04-01 22:26, Walter Bright wrote:
The problem with inferring attributes on non-template functions is the
source must be available to the compiler. That's obviously true for
templates, but not so true for non-templates, where only the signature
is available.
In my experience with D,
On Wednesday, 1 April 2015 at 22:49:55 UTC, Martin Nowak wrote:
³: Places 2, 3, and 4 thanks to std.numeric.dotProduct. An
optimized
dense matrix multiplication would get us #1.
According to
https://github.com/JuliaLang/julia#Required-Build-Tools-External-Libraries
building Julia requires
https://issues.dlang.org/show_bug.cgi?id=14389
--- Comment #6 from Ketmar Dark ket...@ketmar.no-ip.org ---
simply resetting 'em all is messy too: then i have to repeat all that `@safe
nothrow @nogc` yet again when i changed visibility from `private` to `public`,
for example.
and making
https://issues.dlang.org/show_bug.cgi?id=12863
Denis Shelomovskij verylonglogin@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=5060
Denis Shelomovskij verylonglogin@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=4435
--- Comment #6 from Denis Shelomovskij verylonglogin@gmail.com ---
*** Issue 5060 has been marked as a duplicate of this issue. ***
--
On 2015-04-01 21:25, Dicebot wrote:
I 100% disagree. Having built-in unittest blocks have been a huge win
for the language and greatly improved quality of library ecosystem.
Value of standardization and availability is tremendous here.
Only problem is that development of the feature has
On Thu, 02 Apr 2015 06:59:40 +, ketmar wrote:
On Thu, 02 Apr 2015 08:45:10 +0200, Jacob Carlborg wrote:
Why should the non-template functions that _have_ the source code
available suffer?
'cause inferring attributes requires running full semantic analysis on
the code, so each
On Thursday, 2 April 2015 at 07:56:19 UTC, Mike Parker wrote:
On 4/2/2015 11:36 AM, Craig Dillabaugh wrote:
derelict.util.exception.SymbolLoadException@../../../.dub/packages/derelict-util-1.9.1/source/derelict/util/exception.d(35):
Failed to load symbol SDL_HasAVX from shared library
On 2015-04-01 21:18, Kapps wrote:
The only issue I have with the way unittests are done right now, is the
incredibly annoying requirement of having a main function and that main
gets called. It makes generic tooling and CI systems much more annoying,
as you have to try and guess whether you
On Thu, 02 Apr 2015 08:37:26 +0200, Jacob Carlborg wrote:
On 2015-04-01 21:25, Dicebot wrote:
I 100% disagree. Having built-in unittest blocks have been a huge win
for the language and greatly improved quality of library ecosystem.
Value of standardization and availability is tremendous
On Thu, 02 Apr 2015 06:52:14 +, ketmar wrote:
p.s. ah, sure, it should be `shared static this()`. %$Y^%@%.
signature.asc
Description: PGP signature
I have next request, that work fine with curl:
curl -X POST -F upload=@wgs84_latlon.zip
http://ogre.adc4gis.com/convert
I wrote next code:
void main()
{
auto binfile = cast(ubyte[])
read(`D:\Apps\curl\wgs84_latlon.zip`);
auto http = HTTP(http://ogre.adc4gis.com/convert;);
On 4/2/2015 11:36 AM, Craig Dillabaugh wrote:
derelict.util.exception.SymbolLoadException@../../../.dub/packages/derelict-util-1.9.1/source/derelict/util/exception.d(35):
Failed to load symbol SDL_HasAVX from shared library libSDL2.so
This error message is telling you two things. First, SDL
On 4/2/2015 4:56 PM, Mike Parker wrote:
Derelict will load either SDL 2.0.2 or 2.0.3...
...by default.
On Thursday, 2 April 2015 at 08:32:13 UTC, anonymous wrote:
It would be nice to have such a good matrix multiplication in
Phobos but I think there are more important things to work on
(GC, AA, ...),
I'm not asking for a linear algebra library in phobos, although
we need one in dub and should
On Tuesday, March 31, 2015 12:47:34 anonymous via Digitalmars-d-learn wrote:
On Tuesday, 31 March 2015 at 11:51:26 UTC, drug wrote:
import std.datetime;
import std.stdio;
void main()
{
long.max.SysTime.toISOExtString.writeln;
}
dmd 2.065 (dpaste.dzfl.pl):
https://issues.dlang.org/show_bug.cgi?id=14392
Issue ID: 14392
Summary: Operator overload is shadowed by alias this
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
https://issues.dlang.org/show_bug.cgi?id=14387
--- Comment #1 from Don clugd...@yahoo.com.au ---
The spec says:
As a debugging tool, the compiler may insert checks to verify that the
condition indeed holds by evaluating AssignExpression at runtime. If it
evaluates to a non-null class reference,
https://issues.dlang.org/show_bug.cgi?id=14389
--- Comment #8 from Daniel Čejchan czda...@gmail.com ---
I would agree on that, that :: was just a first thing that came to my mind, but
I have a feeling that the standard syntax should be used for temporary
attribtes instead. I am aware that it
On Wednesday, 1 April 2015 at 18:04:31 UTC, Ary Borenszweig wrote:
However, when you have a big complex project you start having
other needs:
1. Named unit-tests, so you can better find what failed
2. Better error messages for assertions
3. Better output to rerun failed tests
4. Setup and
Just a follow up comment. Apparently the instructions for
installing all libraries at once in the tutorial don't work for
OpenSuse. So I couldn't just install the SDL library but had
to install the other libraries individually:
So just in case there are any other OpenSuse users out there
https://issues.dlang.org/show_bug.cgi?id=13985
Denis Shelomovskij verylonglogin@gmail.com changed:
What|Removed |Added
CC|
weaselcat:
was it a conscious decision to make the AA [] operator not
work like map/etc in C++?
What do you mean?
accessing a non-existing element in C++'s map/unordered_map
inserts the default instead of raising an exception
int main(int argc, char *argv[])
{
Am Thu, 02 Apr 2015 05:55:48 +
schrieb Jens Bauer doc...@who.no:
So are there any suggestions on enabling debug-code, which might
give hints on what is going wrong ?
I'm not sure if there's any debug code, but here's what I would do:
/opt/gdc/bin/gdc test.d -c -wrapper gdb,--args
I have successfully built GDC on CubieBoard2 (Cubian) now.
I've rebuilt GDC on the G5 as well, using the same script.
I've used nano for making object.d and start.d, in order to avoid
too many problems with character encoding.
In addition, I've used hexdump -C file.d to verify that the
On 2 April 2015 at 08:15, Martin Nowak via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 04/01/2015 10:31 PM, novice2 wrote:
Can DMD compiler do it itself, as one of optimizations?
You could do it as part of LTO or whole program optimization.
It requires another compiler/linker phase,
https://issues.dlang.org/show_bug.cgi?id=13985
--- Comment #2 from Vladimir Panteleev thecybersha...@gmail.com ---
The test is no longer reproducible after
https://github.com/D-Programming-Language/dmd/pull/4427
But I don't know if this fixed the underlying problem.
--
On Thursday, 2 April 2015 at 20:55:04 UTC, David Gileadi wrote:
On 4/2/15 1:34 PM, Dicebot wrote:
On Wednesday, 1 April 2015 at 20:48:43 UTC, Atila Neves wrote:
On Wednesday, 1 April 2015 at 19:31:37 UTC, Dicebot wrote:
P.S. I hate all the Ruby testing facilities, hate with
bloody passion.
On Thu, Apr 2, 2015 at 12:04 PM, Andrei Alexandrescu via Digitalmars-d
digitalmars-d@puremagic.com wrote:
...
The way I see it, the notion of having one build with strippable unittests
is a nice idea but technically challenging. It's also low impact - today
concurrent CPU is cheap so
On Thursday, 2 April 2015 at 17:38:17 UTC, Josh Phillips wrote:
Hey Guys!
I've started using Arduino, specifically with Processing. I'm
using it essentially as a usb controller. Is there a good way
to translate this to D? There doesn't seem to be any standard
library for usb usage. Are
On 4/2/15 2:46 PM, Wyatt wrote:
On Thursday, 2 April 2015 at 20:55:04 UTC, David Gileadi wrote:
Having never used Cucumber but having been interested in it, what was
the unpleasantness?
Dealing with it at work, I find it puts us scarily at the mercy of
regexen in Ruby, which is unsettling to
On Thursday, 2 April 2015 at 21:55:59 UTC, Iain Buclaw wrote:
On 1 April 2015 at 04:17, weaselcat via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On Tuesday, 31 March 2015 at 23:53:07 UTC, weaselcat wrote:
On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote:
I found this repository
On 4/2/15 1:34 PM, Dicebot wrote:
On Wednesday, 1 April 2015 at 20:48:43 UTC, Atila Neves wrote:
On Wednesday, 1 April 2015 at 19:31:37 UTC, Dicebot wrote:
P.S. I hate all the Ruby testing facilities, hate with bloody passion.
You're going to _love_ my DConf talk ;) I was expecting that
On Wednesday, 1 April 2015 at 14:00:52 UTC, bearophile wrote:
If you have to perform performance benchmarks then use ldc or
gdc.
Also disable bound tests with your compilation switches.
Add the usual pure/nothrow/@nogc/@safe annotations where you
can (they don't increase speed much,
On Thursday, 2 April 2015 at 20:55:04 UTC, David Gileadi wrote:
Having never used Cucumber but having been interested in it,
what was the unpleasantness?
Dealing with it at work, I find it puts us scarily at the mercy
of regexen in Ruby, which is unsettling to say the least. More
On 1 April 2015 at 04:17, weaselcat via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On Tuesday, 31 March 2015 at 23:53:07 UTC, weaselcat wrote:
On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote:
I found this repository (reddit!) that hosts common benchmarks for many
languages such
On Wednesday, 1 April 2015 at 12:09:25 UTC, w0rp wrote:
Of course, why be clever here at all and do such things? It's
an editor problem. Write the full import lines out, and if you
hate typing out the path each time, use tricks in your editor
to make that easier, or use an IDE.
no
this is
On Wednesday, 1 April 2015 at 20:48:43 UTC, Atila Neves wrote:
On Wednesday, 1 April 2015 at 19:31:37 UTC, Dicebot wrote:
P.S. I hate all the Ruby testing facilities, hate with bloody
passion.
You're going to _love_ my DConf talk ;) I was expecting that
already, you let me know what you
On Thursday, 2 April 2015 at 06:21:53 UTC, Jacob Carlborg wrote:
On 2015-04-01 21:16, Dicebot wrote:
This is fixed by having smaller modules. If test for a single
module
takes more than few blinks of an eye, something is wrong
already.
For unit tests, yes. But there are other kinds of tests
On Thursday, 2 April 2015 at 13:40:49 UTC, Vadim Lopatin wrote:
Useful feature is added to DlangUI.
You can write UI layout as QML-like code, and load it in
runtime from file, resource, or just string constant.
Great job, Vadim! Thank you!
On Wednesday, 1 April 2015 at 23:29:00 UTC, Vlad Levenfeld wrote:
On Tuesday, 31 March 2015 at 13:25:47 UTC, John Colvin wrote:
On Tuesday, 31 March 2015 at 12:49:36 UTC, Vlad Levenfeld
wrote:
Is there any way (or could there be any way, in the future)
of getting the code from lambda
On 2 April 2015 at 00:15, Martin Nowak via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 04/01/2015 10:31 PM, novice2 wrote:
Can DMD compiler do it itself, as one of optimizations?
You could do it as part of LTO or whole program optimization.
It requires another compiler/linker phase,
https://issues.dlang.org/show_bug.cgi?id=14396
ag0ae...@gmail.com changed:
What|Removed |Added
Keywords||pull
CC|
On Thursday, 2 April 2015 at 22:44:56 UTC, Andrei Alexandrescu
wrote:
It's the end of Q1. Walter and I reviewed our vision document.
We're staying the course with one important addition: switching
to ddmd, hopefully with 2.068.
http://wiki.dlang.org/Vision/2015H1
Andrei
What is the plan
On 4/2/15 4:47 PM, weaselcat wrote:
Is the workflow for getting into std.experimental defined - i.e, does it
have to be reviewed before going into std.experimental or after?
We didn't discuss that much yet, but in all likelihood we need two
stages of review: general fitness assessment for
https://issues.dlang.org/show_bug.cgi?id=14397
Issue ID: 14397
Summary: dmd: Provide full source range for compiler errors
[enhancement]
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status:
On Thursday, 2 April 2015 at 23:44:01 UTC, Andrei Alexandrescu
wrote:
On 4/2/15 4:39 PM, Brian Schott wrote:
On Thursday, 2 April 2015 at 22:44:56 UTC, Andrei Alexandrescu
wrote:
It's the end of Q1. Walter and I reviewed our vision
document. We're
staying the course with one important
On Thursday, 2 April 2015 at 23:12:25 UTC, biozic wrote:
The code below doesn't compile. Why this error message?
---
struct Item {
int i;
}
struct Params {
Item* item;
this(int i) {
item = new Item(i); // line 9
}
}
struct Foo(Params params) {}
enum foo =
https://issues.dlang.org/show_bug.cgi?id=14398
Issue ID: 14398
Summary: Segfault when nested struct in static array accesses
context
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
On Tuesday, 31 March 2015 at 18:20:05 UTC, cym13 wrote:
I found this repository (reddit!) that hosts common benchmarks
for many languages such as D, Nim, Go, python, C, etc... It
uses only standard structures not to influence the benchmark.
https://github.com/kostya/benchmarks
Thanks for
It's the end of Q1. Walter and I reviewed our vision document. We're
staying the course with one important addition: switching to ddmd,
hopefully with 2.068.
http://wiki.dlang.org/Vision/2015H1
Andrei
On Thursday, 2 April 2015 at 22:44:56 UTC, Andrei Alexandrescu
wrote:
It's the end of Q1. Walter and I reviewed our vision document.
We're staying the course with one important addition: switching
to ddmd, hopefully with 2.068.
http://wiki.dlang.org/Vision/2015H1
Andrei
I see that the
On Thursday, 2 April 2015 at 23:44:01 UTC, Andrei Alexandrescu
wrote:
On 4/2/15 4:39 PM, Brian Schott wrote:
On Thursday, 2 April 2015 at 22:44:56 UTC, Andrei Alexandrescu
wrote:
It's the end of Q1. Walter and I reviewed our vision
document. We're
staying the course with one important
On Tuesday, 31 March 2015 at 22:25:29 UTC, rumbu wrote:
Unfortunately, I cannot edit directly on wiki.dlang.org since
my account is not confirmed (confirmation e-mail is not sent
despite several attempts).
By any chance, do you use gmail? The email sent by the wiki
appeared in my gmail's spam.
On Friday, 3 April 2015 at 00:21:47 UTC, Andrei Alexandrescu
wrote:
Hey folks, is there any way to figure out whether a type is
immutable or shared given its typeinfo?
Yes: if it is an instance of TypeInfo_Invariant or
TypeInfo_Shared.
void main() {
string s;
char[] c;
https://issues.dlang.org/show_bug.cgi?id=14400
Issue ID: 14400
Summary: minor nit- wiki front page needs to reflect latest D
version at bottom: currently 2.066
Product: D
Version: D2
Hardware: x86_64
OS:
On 4/2/15 4:39 PM, Brian Schott wrote:
On Thursday, 2 April 2015 at 22:44:56 UTC, Andrei Alexandrescu wrote:
It's the end of Q1. Walter and I reviewed our vision document. We're
staying the course with one important addition: switching to ddmd,
hopefully with 2.068.
On Thursday, 2 April 2015 at 23:39:53 UTC, Brian Schott wrote:
On Thursday, 2 April 2015 at 22:44:56 UTC, Andrei Alexandrescu
wrote:
It's the end of Q1. Walter and I reviewed our vision document.
We're staying the course with one important addition:
switching to ddmd, hopefully with 2.068.
On 3/04/2015 4:27 a.m., John Colvin wrote:
On Thursday, 2 April 2015 at 11:49:44 UTC, Rikki Cattermole wrote:
On 3/04/2015 12:29 a.m., John Colvin wrote:
On Thursday, 2 April 2015 at 09:55:15 UTC, Rikki Cattermole wrote:
On 2/04/2015 10:47 p.m., Rikki Cattermole wrote:
On 2/04/2015 2:52
Hey folks, is there any way to figure out whether a type is immutable or
shared given its typeinfo? I see there's only the flags() method that
doesn't tell that. I'm thinking we'd do good to extend that.
This is needed for allocators. I'm thinking an allocator might be
interested at creation
On Thursday, 2 April 2015 at 12:40:14 UTC, Laeeth Isharc wrote:
Hi.
I am sure most of you saw this:
http://arstechnica.com/gadgets/2015/04/googles-arc-opens-up-to-developers-runs-android-apps-on-most-desktop-oses/
Thanks, I had not seen this, only the earlier hack where some dev
got the
On 3/04/2015 1:21 p.m., Andrei Alexandrescu wrote:
Hey folks, is there any way to figure out whether a type is immutable or
shared given its typeinfo? I see there's only the flags() method that
doesn't tell that. I'm thinking we'd do good to extend that.
This is needed for allocators. I'm
On Thursday, 2 April 2015 at 07:45:16 UTC, Suliman wrote:
I have next request, that work fine with curl:
curl -X POST -F upload=@wgs84_latlon.zip
http://ogre.adc4gis.com/convert
I wrote next code:
void main()
{
auto binfile = cast(ubyte[])
read(`D:\Apps\curl\wgs84_latlon.zip`);
The code below doesn't compile. Why this error message?
---
struct Item {
int i;
}
struct Params {
Item* item;
this(int i) {
item = new Item(i); // line 9
}
}
struct Foo(Params params) {}
enum foo = Foo!(Params(1));
---
test.d(9): Error: Item(1) is not an lvalue
Thanks, I had not seen this, only the earlier hack where some
dev got the alpha version of ARC working on desktop OS's on his
own, which I thought about mentioning here but didn't. I
figured it wasn't that important.
Yes - my judgement (acknowledging I am stepping outside of my
area of core
https://issues.dlang.org/show_bug.cgi?id=14399
Issue ID: 14399
Summary: std.json cannot parse its own output for nan
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Reading lexer.c, in order to find out what's causing me problems
on my PowerMac, I came across this snippet, and I'd like to point
out that it is not reliable:
case '\r':
p++;
if (*p != '\n') // if CR stands
by itself
On Thursday, 2 April 2015 at 09:06:52 UTC, Manu wrote:
On 2 April 2015 at 08:15, Martin Nowak via Digitalmars-d
digitalmars-d@puremagic.com wrote:
On 04/01/2015 10:31 PM, novice2 wrote:
Can DMD compiler do it itself, as one of optimizations?
You could do it as part of LTO or whole program
On Thursday, 2 April 2015 at 09:55:15 UTC, Rikki Cattermole wrote:
On 2/04/2015 10:47 p.m., Rikki Cattermole wrote:
On 2/04/2015 2:52 a.m., tchaloupka wrote:
Hi,
I have a bunch of square r16 and png images which I need to
flip
horizontally.
My flip method looks like this:
void hFlip(T)(T[]
On 3/04/2015 12:29 a.m., John Colvin wrote:
On Thursday, 2 April 2015 at 09:55:15 UTC, Rikki Cattermole wrote:
On 2/04/2015 10:47 p.m., Rikki Cattermole wrote:
On 2/04/2015 2:52 a.m., tchaloupka wrote:
Hi,
I have a bunch of square r16 and png images which I need to flip
horizontally.
My flip
https://issues.dlang.org/show_bug.cgi?id=14393
Nicolas Sicard dran...@gmail.com changed:
What|Removed |Added
Keywords||CTFE
--
https://issues.dlang.org/show_bug.cgi?id=14393
Issue ID: 14393
Summary: 'is' operator gives inconsistent results at runtime
and compile-time for array duplication
Product: D
Version: D2
Hardware: x86_64
OS:
https://issues.dlang.org/show_bug.cgi?id=13985
--- Comment #4 from Kenji Hara k.hara...@gmail.com ---
Addition of test case:
https://github.com/D-Programming-Language/dmd/pull/4547
--
On 2/04/2015 10:47 p.m., Rikki Cattermole wrote:
On 2/04/2015 2:52 a.m., tchaloupka wrote:
Hi,
I have a bunch of square r16 and png images which I need to flip
horizontally.
My flip method looks like this:
void hFlip(T)(T[] data, int w)
{
import std.datetime : StopWatch;
StopWatch sw;
On Wednesday, 1 April 2015 at 17:51:40 UTC, John Colvin wrote:
Don't really see the point. Here's a neat thing that's
definitely cheating because although it stores the results in
the type system, the arithmetic is done in constant-folding:
struct Integer(int a){}
template Value(T)
{
I'm mainly talking about a simple
code based solution but I'm also curious about how easily this
would be by compiler modification.
__
NOOR
On Thursday, 2 April 2015 at 01:50:56 UTC, Cassandra Nix wrote:
Thanks to the correct
We sould track down the old links and redirect to the new
documentation pages.
I'll fix this as follows:
Dgame will load DerelictSDL2 as usual and then it will check if
the supported version is below 2.0.2. If so, DerelictSDL2 will be
reloaded with SharedLibVersion(MAX_SUPPORTED_VERSION)).
That should that work, right?
https://issues.dlang.org/show_bug.cgi?id=14389
--- Comment #9 from Ketmar Dark ket...@ketmar.no-ip.org ---
actually, standard is what developers decided to be standard. so if they will
bless any variant, it will become standard syntax. ;-)
the thing is that is is very-very hard (almost
i know that such compilers do exist. i just don't believe that making
workarounds for broken compilers is the right way to go.
'\n' is defined as new line, which in turn defined as \x0a in ASCII
table. and '\r' is defined as carriage return, which in turn is defined
as \x0d in ASCII table. any
Which compilers?
MrCpp, MrC, MPWC, MPWCpp and CodeWarrior.
These compilers must respect the platform's definition of \n =
newline and \r = carriage return.
Because the platform defines newline = 13, then \n must have the
value 13.
Since there's not clear definition of \n and \r, they can't
On Wednesday, 1 April 2015 at 13:35:22 UTC, ketmar wrote:
people with Java/C/C++/etc. background tend to forget about the
power of
metaprogramming: they have no such tool at hand, so they don't
even think
about it.
C++ with boost:
-
#include iostream
#include boost/preprocessor/cat.hpp
https://issues.dlang.org/show_bug.cgi?id=13985
--- Comment #3 from Kenji Hara k.hara...@gmail.com ---
(In reply to Vladimir Panteleev from comment #2)
The test is no longer reproducible after
https://github.com/D-Programming-Language/dmd/pull/4427
But I don't know if this fixed the
1 - 100 of 182 matches
Mail list logo