https://issues.dlang.org/show_bug.cgi?id=18936
Issue ID: 18936
Summary: Internal error: dmd/backend/cgxmm.c 684
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
On Saturday, 2 June 2018 at 22:09:49 UTC, Neia Neutuladh wrote:
On Saturday, 2 June 2018 at 21:44:39 UTC, greatsam4sure wrote:
Sorry for the typo
is it possible to define infix function in D
3.min(5)// 3: where min is a function, works in D
3 min 5 // does not work.
thanks in advance
This
On Saturday, 2 June 2018 at 22:01:02 UTC, Ali Çehreli wrote:
On 06/02/2018 02:44 PM, greatsam4sure wrote:
> is it possible to define infix function in D
>
> 3.min(5)// 3: where min is a function, works in D
> 3 min 5 // does not work.
This is called universal function call syntax (UFCS) in D.
On Thursday, 7 September 2017 at 22:53:31 UTC, Biotronic wrote:
On Thursday, 7 September 2017 at 16:55:02 UTC, EntangledQuanta
wrote:
Sorry, I think you missed the point completely... or I didn't
explain things very well.
I don't think I did - your new explanation didn't change my
On Saturday, 2 June 2018 at 21:44:39 UTC, greatsam4sure wrote:
Sorry for the typo
is it possible to define infix function in D
3.min(5)// 3: where min is a function, works in D
3 min 5 // does not work.
thanks in advance
This is a horrible abuse of D's operator overloading discovered
by
On 06/02/2018 02:44 PM, greatsam4sure wrote:
> is it possible to define infix function in D
>
> 3.min(5)// 3: where min is a function, works in D
> 3 min 5 // does not work.
This is called universal function call syntax (UFCS) in D. The idea is
simple: You can pull the first argument out as if
Sorry for the typo
is it possible to define infix function in D
3.min(5)// 3: where min is a function, works in D
3 min 5 // does not work.
thanks in advance
On Saturday, 2 June 2018 at 21:27:11 UTC, Dmitry Olshansky wrote:
P.S. It’s a shame you couldn’t come this time, it was a blast!
And better code.dlang.org is just one of gems.
Thanks. You're right. I'll be back though, that I know for sure
:-)
is it possible to definite infix function in D
3.min(5)// 3 where min is a function works in D
3 min 5 // does not work.
thanks in advance
On Saturday, 2 June 2018 at 21:13:59 UTC, Bastiaan Veelo wrote:
I don't know since when https://code.dlang.org/ looks the way
it does, with the top most popular, most recently updated and
most recently added packages on the front page, but I like it a
lot!
Very nice!
I believe that was
I don't know since when https://code.dlang.org/ looks the way it
does, with the top most popular, most recently updated and most
recently added packages on the front page, but I like it a lot!
Very nice!
On Saturday, 2 June 2018 at 17:17:02 UTC, Neia Neutuladh wrote:
On Friday, 1 June 2018 at 17:59:21 UTC, Steven Schveighoffer
wrote:
The .di file is just an interface, it doesn't know what's
actually compiled in the binary.
To put it another way, the compiler only generates a
ModuleInfo (or
On Saturday, 2 June 2018 at 19:48:36 UTC, Matthias Klumpp wrote:
@crimaniak: If you really want to build with all compilers,
there is a workaround for this issue that does not involve you
supporting ancient D versions, and that is to actually use
Debian's GDC on Travis. I use this
On 2018-06-02 03:30, IntegratedDimensions wrote:
How can I modify the pre serialization and post serialization values? I
need to transform some variables that are stored but I would like to do
this easily "inline"(would be cool to be able to provide a delegate to
do the transformations at the
On Saturday, 2 June 2018 at 16:27:38 UTC, Seb wrote:
On Saturday, 2 June 2018 at 16:04:09 UTC, Matthias Klumpp wrote:
On Saturday, 2 June 2018 at 03:15:56 UTC, crimaniak wrote:
I started to work with Travis-CI, building packages using all
three main compilers, and noticed that I have problems
On Saturday, 2 June 2018 at 18:49:51 UTC, DigitalDesigns wrote:
Proposal:
[a..b;m]
m is the stride, if ; is not a good char then |, :, !, or #
could be good chars.
Ranges work for this and don’t need special syntax. Just saying.
On Saturday, 2 June 2018 at 09:48:26 UTC, IntegratedDimensions
wrote:
Getting N messages for N template parameter variations on a
template.
void foo(A,B)();
A and B are selected from N different values and all are used.
If there is an error in the function then I get N^2 error
messages, one
When Bjarne and the D community is criticizing your complexity,
that's saying something...
On 06/02/2018 08:35 PM, Neia Neutuladh wrote:
2. `int[4] a = null` treats the initialization as a copy from an array
whose value is null. If you run just that line of code, it will produce
an error at runtime: "object.Error@(0): Array lengths don't match for
copy: 0 != 4"
If you want to
Proposal:
[a..b;m]
m is the stride, if ; is not a good char then |, :, !, or # could
be good chars.
On Saturday, 2 June 2018 at 18:10:38 UTC, eastanon wrote:
Does D array implementation support an array of null values?
int a[4] = null;
But I ran into a type error while checking if a[i] is null
foreach(i; 0..3){
if(i == null){
writeln("it is null");
}
}
}
How do you set fixed size
On Saturday, 2 June 2018 at 07:23:42 UTC, Mike Parker wrote:
In this post for the D Blog, Jack Stouffer details how dscanner
is used in the Phobos development process to help improve code
quality and fight entropy.
The blog:
I am blocked in my project because of an issue while using
websockets.
I can simplify my problem like :
auto ws_url =
URL("wss://stream.binance.com:9443/ws/ethbtc@aggTrade");
auto ws = connectWebSocket(ws_url);
if ( !ws.connected )
return;
Does D array implementation support an array of null values?
int a[4] = null;
But I ran into a type error while checking if a[i] is null
foreach(i; 0..3){
if(i == null){
writeln("it is null");
}
}
}
How do you set fixed size array of null values and check if they
are null?
On Friday, 1 June 2018 at 17:59:21 UTC, Steven Schveighoffer
wrote:
The .di file is just an interface, it doesn't know what's
actually compiled in the binary.
To put it another way, the compiler only generates a ModuleInfo
(or dependency modules) for .d files. .di files are simply a
public
On Saturday, 2 June 2018 at 16:04:09 UTC, Matthias Klumpp wrote:
On Saturday, 2 June 2018 at 03:15:56 UTC, crimaniak wrote:
I started to work with Travis-CI, building packages using all
three main compilers, and noticed that I have problems with
gdc every time and need to tweak code because of
On Saturday, 2 June 2018 at 03:15:56 UTC, crimaniak wrote:
I started to work with Travis-CI, building packages using all
three main compilers, and noticed that I have problems with gdc
every time and need to tweak code because of many things
missing. For example:
https://issues.dlang.org/show_bug.cgi?id=18752
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/f9cd2af795f40c04f6b6e3b35a3b7296b4599f4c
Fix Issue 18752 - std.file.read runnable example fails
https://issues.dlang.org/show_bug.cgi?id=18752
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=18752
Seb changed:
What|Removed |Added
CC||greensunn...@gmail.com
--- Comment #1 from Seb ---
On Saturday, 2 June 2018 at 13:32:00 UTC, Basile B. wrote:
Microbe, if you were a keyword for a protection attribute in a
programming language, i would choose "smuck".
To borrow a quote from someone else on this forum.. knock of the
sex talk!.
Anyway, increased membrane permeability leads
https://issues.dlang.org/show_bug.cgi?id=18874
Seb changed:
What|Removed |Added
CC||greensunn...@gmail.com
--- Comment #1 from Seb ---
https://issues.dlang.org/show_bug.cgi?id=18869
Seb changed:
What|Removed |Added
CC||greensunn...@gmail.com
--- Comment #3 from Seb ---
On Saturday, 2 June 2018 at 12:49:45 UTC, Microbe wrote:
As you know, surrounding code within a module can infilitrate
the membrane structure of those types that use 'private' to
protect their boundary (for example, the 'private' member in
that struct, in that blog).
Since the compiler is
On Saturday, 2 June 2018 at 00:49:04 UTC, Bastiaan Veelo wrote:
On Friday, 1 June 2018 at 18:18:17 UTC, Tony wrote:
But with regard to varians compile-time stuff and function
annotations and other things that didn't exist years ago, has
that resulted in noticeably faster programming and/or
On Friday, 1 June 2018 at 21:18:25 UTC, IntegratedDimensions
wrote:
If one has a switch of N case then the last cost surely does
not cost N times the cost of the first, approximately?
It depends on the compiler and optimization level. In general, no
optimization or just a handful of cases
On Saturday, 2 June 2018 at 07:23:42 UTC, Mike Parker wrote:
In this post for the D Blog, Jack Stouffer details how dscanner
is used in the Phobos development process to help improve code
quality and fight entropy.
The blog:
https://issues.dlang.org/show_bug.cgi?id=16692
--- Comment #9 from Rainer Schuetze ---
You can now call function and delegates without arguments in the watch window,
i.e. this includes member functions. You'll still have to add "()" even for
properties.
--
On 02.06.2018 14:37, Bastiaan Veelo wrote:
On Saturday, 2 June 2018 at 09:07:29 UTC, drug wrote:
On 02.06.2018 03:49, Bastiaan Veelo wrote:
interesting from a theoretical perspective. Stay tuned for an
announcement...
I've been staying for long enough, so let me ask - when the
announcement
On Saturday, 2 June 2018 at 10:49:30 UTC, rjframe wrote:
There is documentation for older Phobos versions online, but I
don't remember the link and haven't found it by searching.
https://docarchives.dlang.io/
https://issues.dlang.org/show_bug.cgi?id=18935
Issue ID: 18935
Summary: [spec] Version dropdown on spec page
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
On Friday, 1 June 2018 at 23:10:30 UTC, Laeeth Isharc wrote:
On Friday, 1 June 2018 at 18:18:17 UTC, Tony wrote:
Yes, though you also can't compare a typical programmer from
the D world with a typical guy from an enterprisey language
world.
That was an excellent post.
On Saturday, 2 June 2018 at 09:07:29 UTC, drug wrote:
On 02.06.2018 03:49, Bastiaan Veelo wrote:
interesting from a theoretical perspective. Stay tuned for an
announcement...
I've been staying for long enough, so let me ask - when the
announcement will happen approximately? ))
Approximately
On Fri, 01 Jun 2018 22:48:41 -0600, Jonathan M Davis wrote:
>
> It's currently possible to put ddoc on template mixins but not string
> mixins:
>
> https://issues.dlang.org/show_bug.cgi?id=2420
>
> It was fix for template mixins with
>
> https://issues.dlang.org/show_bug.cgi?id=648
>
> but
https://issues.dlang.org/show_bug.cgi?id=2420
dl...@ryanjframe.com changed:
What|Removed |Added
CC||dl...@ryanjframe.com
--
On Sat, 02 Jun 2018 03:15:56 +, crimaniak wrote:
> I started to work with Travis-CI, building packages using all three main
> compilers, and noticed that I have problems with gdc every time and need
> to tweak code because of many things missing.
> For example:
On Saturday, 2 June 2018 at 09:52:59 UTC, Russel Winder wrote:
I get ldc2 from the Debian/Fedora repositories and dmd from
d-apt (no Fedora equivalent) I really want to avoid fiddling
with files that are installed via packaging. Though I guess any
changes can be fixed by a reinstallation of
On Fri, 2018-06-01 at 16:19 -0400, Steven Schveighoffer via
Digitalmars-d-learn wrote:
> On 6/1/18 1:41 PM, Russel Winder wrote:
> > struct Datum {
> > public const int a;
> > public const int b;
> > }
> >
> > struct Message {
> > Datum datum;
> > }
>
> I found the bug. Basically,
On Fri, 2018-06-01 at 14:02 -0400, Steven Schveighoffer via
Digitalmars-d-learn wrote:
>
[…]
> Perfect, put this into a bugzilla entry. Most definitely it's a bug
> in
> phobos, it's clear from the assert(false, ...) which is NEVER meant
> to
> happen.
Bug report submitted.
Getting N messages for N template parameter variations on a
template.
void foo(A,B)();
A and B are selected from N different values and all are used.
If there is an error in the function then I get N^2 error
messages, one for each combination. All the error messages say
the same thing
On Friday, 1 June 2018 at 21:18:25 UTC, IntegratedDimensions
wrote:
What is the best optimizations that a compiler does to switches
in general and in the D compilers?
The best possible depends a lot on the specific case at hand.
Best possible is to fully elide the switch, which does happen.
Yet another update in this crazy 3.6.x burst.
See [1] for changelog and downloads. zip files and setup program
include D-Scanner 0.5.6 and DCD ~master which both include fixes
for a crash that could happen since a small month.
[1]: https://github.com/BBasile/Coedit/releases/tag/v3.6.15
https://issues.dlang.org/show_bug.cgi?id=18934
--- Comment #1 from Russel Winder ---
Created attachment 1699
--> https://issues.dlang.org/attachment.cgi?id=1699=edit
Code exhibiting the error
--
https://issues.dlang.org/show_bug.cgi?id=18934
Russel Winder changed:
What|Removed |Added
Summary|std.cocurrency receive |std.concurrency receive
https://issues.dlang.org/show_bug.cgi?id=18934
Russel Winder changed:
What|Removed |Added
Summary|std.concurrency receive |std.concurrency receive
https://issues.dlang.org/show_bug.cgi?id=18934
Issue ID: 18934
Summary: std.cocurrency receive throws assertion failure is
message is a struct of struct
Product: D
Version: D2
Hardware: x86_64
OS: Linux
See [1] for downloads and change log
[1]
https://github.com/dlang-community/D-Scanner/releases/tag/v0.5.6
On Saturday, 2 June 2018 at 00:49:04 UTC, Bastiaan Veelo wrote:
These are exactly the things that enable us to bring a very
large code base to D. Not just faster or better, it makes the
difference between impossible and possible. And we are
engineers needing to solve real-world problems, not
On 02.06.2018 03:49, Bastiaan Veelo wrote:
interesting from a theoretical perspective. Stay tuned for an
announcement...
I've been staying for long enough, so let me ask - when the announcement
will happen approximately? ))
The QtE5 added ability to work with QML.
Created QtE5Qml.dll (. so) as plug-in QtE5.
Example in repo folder "QML"
Compile example: dmd qml.d qte5.d
Execute example: qml test3.qml
https://pp.userapi.com/c834103/v834103884/1546bb/Cp3wRDL5nCA.jpg
https://github.com/MGWL/QtE5
In this post for the D Blog, Jack Stouffer details how dscanner
is used in the Phobos development process to help improve code
quality and fight entropy.
The blog:
https://dlang.org/blog/2018/06/02/driving-continuous-improvement-in-d/
reddit:
On Friday, 1 June 2018 at 20:12:23 UTC, Kagamin wrote:
On Friday, 1 June 2018 at 10:04:52 UTC, Johannes Pfau wrote:
However you want to call it, the algorithms interpret data as
numbers which means that the binary representation differs
based on endianess. If you want portable results, you
62 matches
Mail list logo