On 10/12/17 19:50, Jonathan M Davis wrote:
On Thursday, October 12, 2017 14:39:27 b4s1L3 via Digitalmars-d-announce
wrote:
Also i'd like to say that the policy that is that regression
fixes are commited on stable and that the fact that they only
come to master in a "sync operation" is a
On Wednesday, 11 October 2017 at 17:55:18 UTC, Steven
Schveighoffer wrote:
On 10/11/17 1:42 PM, WhatMeWorry wrote:
On Wednesday, 11 October 2017 at 07:23:02 UTC, Peter R wrote:
[...]
+10 We need a walkthru of how to set up everything. It's like
a new cook being give all the ingredients but
On Wednesday, 11 October 2017 at 17:40:15 UTC, Jonathan M Davis
wrote:
On Wednesday, October 11, 2017 17:05:19 Daniel Kozak via
Digitalmars-d wrote:
so you can try to use static immutable insted of enum
Yeah. Similarly, you could just have a regular function that
you call at compile time
On Thursday, 12 October 2017 at 15:04:57 UTC, moechofe wrote:
What is the wanted lifetime of the project?
Is D will manage to pass through time?
It is valuable to start a 40 years old project using D?
Yes, because the project belongs to the D Foundation and not just
Walter himself.
On Thursday, October 12, 2017 14:39:27 b4s1L3 via Digitalmars-d-announce
wrote:
> Also i'd like to say that the policy that is that regression
> fixes are commited on stable and that the fact that they only
> come to master in a "sync operation" is a problem.
>
> In the travis yaml we have to
On Wednesday, 11 October 2017 at 22:22:43 UTC, Johan Engelen
wrote:
std.string.removechars is now deprecated.
https://dlang.org/changelog/2.075.0.html#pattern-deprecate
What is now the most efficient way to remove characters from a
string, if only one type of character needs to be removed?
On Thursday, October 12, 2017 23:33:39 Psychological Cleanup via
Digitalmars-d-learn wrote:
> Is there any way to get the function body of a function,
> delegate, and lambda? I'd also like to extend functions by
> "wrapping" them at compile time generically. For example, I'd
> like to get all the
On Thursday, October 12, 2017 21:22:29 kdevel via Digitalmars-d-learn wrote:
> On Thursday, 12 October 2017 at 20:27:03 UTC, Jonathan M Davis
>
> wrote:
> > On Thursday, October 12, 2017 20:15:41 kdevel via
> >
> >> ---
> >> void main ()
> >> {
> >>
> >> assert (false);
> >>
> >> }
> >> ---
>
On Friday, 13 October 2017 at 01:12:38 UTC, solidstate1991 wrote:
On Friday, 13 October 2017 at 01:09:56 UTC, solidstate1991
wrote:
I'm making a struct for easy color handling Here's a code
sample:
ublic struct Color{
union{
uint raw; ///Raw representation in integer form, also
On Thursday, 12 October 2017 at 15:04:57 UTC, moechofe wrote:
What is the wanted lifetime of the project?
Is D will manage to pass through time?
It is valuable to start a 40 years old project using D?
DMD, LDC, and GDC are all open source. So I guess the question
would be: If everyone else
On Friday, 13 October 2017 at 01:09:56 UTC, solidstate1991 wrote:
I'm making a struct for easy color handling Here's a code
sample:
ublic struct Color{
union{
uint raw; ///Raw representation in integer form, also forces
the system to align in INT32.
ubyte[4] colors; ///Normal
I'm making a struct for easy color handling Here's a code sample:
ublic struct Color{
union{
uint raw; ///Raw representation in integer form, also forces
the system to align in INT32.
ubyte[4] colors; ///Normal representation, aliases are used for
color naming.
On Thursday, 12 October 2017 at 07:48:09 UTC, Vadim Lopatin wrote:
Could you please submit issue on
https://github.com/buggins/dlangide/issues
Done.
https://github.com/buggins/dlangide/issues/349
We have some sort of implicit construction already. Weirdly, it's
reserved for classes. Just look at this:
class C { this(int x) { } }
void foo(C c ...) { }
void main() { foo(0); }
If you put @nogc in front of ctor and functions, the compiler
tells you not to use 'new' in main
I'd also like to be able to save and store delegates, functions,
and lambdas. One can't store the pointer to the function because
it will be invalid, so another means is required, any ideas?
Save("f", (int){ ... }); // Saves to disk
auto f = Load("f"); // Loads from disk
f(3);
Is there any way to get the function body of a function,
delegate, and lambda? I'd also like to extend functions by
"wrapping" them at compile time generically. For example, I'd
like to get all the properties of a class and add some code to
them(sort of like adding a scope, prolog, and/or
On Thursday, 12 October 2017 at 02:18:49 UTC, Mr. Jonse wrote:
A simple(incomplete) undo system.
I'd think that for D you'd want to do type wrapping where a new
type is created which saves changes and can manage an Undo tree.
__gshared Data data = new Data();
auto undoable =
On Tuesday, 10 October 2017 at 02:36:56 UTC, Mr. Jonse wrote:
I requiring an undo feature in my code. Rather than go the
regular route of using commands, I'm wondering if D can
facilitate an undo system quite easily?
We can think of an undo system in an app as a sort of recorder.
The
On Thursday, 12 October 2017 at 20:27:03 UTC, Jonathan M Davis
wrote:
On Thursday, October 12, 2017 20:15:41 kdevel via
---
void main ()
{
assert (false);
}
---
qualifies as "invalid, and therefore has undefined behaviour."
A statement, which makes no sense to me. Either it is a
https://issues.dlang.org/show_bug.cgi?id=17887
ZombineDev changed:
What|Removed |Added
Status|RESOLVED|REOPENED
https://issues.dlang.org/show_bug.cgi?id=17886
Issue 17886 depends on issue 17887, which changed state.
Issue 17887 Summary: Add WebAssembly reserved version identifier
https://issues.dlang.org/show_bug.cgi?id=17887
What|Removed |Added
On Wednesday, 11 October 2017 at 07:09:26 UTC, Daniel Kozak wrote:
You can avoid cast:
void foo(T)(T bar){...}
byte bar = 9;
foo!byte(bar + byte(1));
Sure?
---
void foo(T)(T bar)
{
}
byte bar = 9;
void main ()
{
foo!byte(bar + byte(1));
}
---
byte2.d(7): Error: function
https://issues.dlang.org/show_bug.cgi?id=17886
Issue 17886 depends on issue 17887, which changed state.
Issue 17887 Summary: Add WebAssembly reserved version identifier
https://issues.dlang.org/show_bug.cgi?id=17887
What|Removed |Added
https://issues.dlang.org/show_bug.cgi?id=17887
ZombineDev changed:
What|Removed |Added
Status|REOPENED|RESOLVED
On Thursday, October 12, 2017 20:15:41 kdevel via Digitalmars-d-learn wrote:
> On Thursday, 12 October 2017 at 15:37:23 UTC, John Burton wrote:
> > C++ compilers can and do perform such optimizations so I was
> > wondering if assert in D could cause such behavior according to
> > the spec.
>
> In
On Thursday, 12 October 2017 at 15:37:23 UTC, John Burton wrote:
C++ compilers can and do perform such optimizations so I was
wondering if assert in D could cause such behavior according to
the spec.
In the context of ISO-C++ it is meaningless to reason about the
"actual behavior" of a
https://issues.dlang.org/show_bug.cgi?id=17887
--- Comment #3 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/8cd923389443cb018feadb1b0b91598cf6b9cc53
Fix issue 17887 - Add AsmJS, Emscripten and WebAssembly
https://issues.dlang.org/show_bug.cgi?id=17886
Issue 17886 depends on issue 17887, which changed state.
Issue 17887 Summary: Add WebAssembly reserved version identifier
https://issues.dlang.org/show_bug.cgi?id=17887
What|Removed |Added
Wow, C# is really wierd. They have method IsNullOrEmpty (OK why not), but
they have IsNullOrWhiteSpace OK little akward but still OK until you
realized it is more like IsNullOrEmptyOrWhiteSpace :D
On Thu, Oct 12, 2017 at 8:11 PM, Nieto via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com>
On 10.10.2017 17:05, Steven Schveighoffer wrote:
On 10/9/17 11:22 AM, Timon Gehr wrote:
On 09.10.2017 01:20, Steven Schveighoffer wrote:
My questioning comes with this:
void bar(int a);
void bar((int,) x);
To me, it is confusing or at least puzzling that these two aren't the
same.
...
On Thursday, 12 October 2017 at 18:17:54 UTC, Adam D. Ruppe wrote:
On Thursday, 12 October 2017 at 18:11:55 UTC, Nieto wrote:
Does D have an equivalent to C#'s String.IsNullOrWhiteSpace()
in the standard library?
import std.string;
if(str.strip().length == 0) {
// is null, empty, or all
On Thursday, 12 October 2017 at 18:11:55 UTC, Nieto wrote:
Does D have an equivalent to C#'s String.IsNullOrWhiteSpace()
in the standard library?
import std.string;
if(str.strip().length == 0) {
// is null, empty, or all whitespace
}
Does D have an equivalent to C#'s String.IsNullOrWhiteSpace() in
the standard library?
just asking if there's a native one, so I don't need reinvente
the wheel
https://msdn.microsoft.com/en-us/library/system.string.isnullorwhitespace%28v=vs.110%29.aspx?f=255=-2147217396
On 10/12/17 3:05 AM, Jacob Carlborg wrote:
On 2017-10-12 06:22, Steven Schveighoffer wrote:
I also want to add generated documentation. Does anyone know of a good
way to generate the ddoc (or ddox or whatever) and put it directly
into the repository for github to serve? Would be an awesome
On Thursday, 12 October 2017 at 08:08:17 UTC, Igor wrote:
I tried this but Disassembly view shows:
call std.regex.regex!string.regex
and
call std.regex.replaceAll!(string, char,
std.regex.internal.ir.Regex!char).replaceAll
which means that replaceAll with regex is done at runtime, not
On 2017-10-12 13:51, Eduard Staniloiu wrote:
I'm not convinced it's faster, as making a change in one of the bundled
files will cause all the files in the object bundle to get recompiled,
instead of compiling only the changed file and linking the objects.
This is for full builds. And since
On Thursday, 12 October 2017 at 15:04:57 UTC, moechofe wrote:
What is the wanted lifetime of the project?
Is D will manage to pass through time?
It is valuable to start a 40 years old project using D?
Of course. In 40years Walter will be alive.
On Thursday, 12 October 2017 at 14:22:43 UTC, Timon Gehr wrote:
On 11.10.2017 11:27, John Burton wrote:
Yes, that's what it is saying. (The other answers, that say or
try to imply that this is not true or true but not a bad thing,
are wrong.)
...
However, in practice, I think none of the
What is the wanted lifetime of the project?
Is D will manage to pass through time?
It is valuable to start a 40 years old project using D?
On Thursday, 12 October 2017 at 14:20:42 UTC, b4s1L3 wrote:
On Wednesday, 11 October 2017 at 13:38:10 UTC, b4s1L3 wrote:
On Wednesday, 11 October 2017 at 13:08:38 UTC, Petar Kirov
[ZombineDev] wrote:
On Wednesday, 11 October 2017 at 10:20:01 UTC, b4s1L3 wrote:
On Monday, 9 October 2017 at
On Wednesday, 11 October 2017 at 13:38:10 UTC, b4s1L3 wrote:
On Wednesday, 11 October 2017 at 13:08:38 UTC, Petar Kirov
[ZombineDev] wrote:
On Wednesday, 11 October 2017 at 10:20:01 UTC, b4s1L3 wrote:
On Monday, 9 October 2017 at 19:44:24 UTC, Martin Nowak wrote:
Glad to announce D v2.076.1.
On 11.10.2017 11:27, John Burton wrote:
The spec says this :-
"As a contract, an assert represents a guarantee that the code must
uphold. Any failure of this expression represents a logic error in the
code that must be fixed in the source code. A program for which the
assert contract is
https://issues.dlang.org/show_bug.cgi?id=4582
--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/4e8fa84ba227b2ff4662b2e2fcdeca57074bc2fd
Fix Issue 4582 - distinct field names constraint for
https://issues.dlang.org/show_bug.cgi?id=4582
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
On 10/12/17 1:48 AM, Dmitry Olshansky wrote:
On Thursday, 12 October 2017 at 04:22:01 UTC, Steven Schveighoffer wrote:
I added a tag for iopipe and added it to the dub registry so people
can try it out.
I didn't want to add it until I had fully documented and unittested it.
On Thursday, 12 October 2017 at 07:17:15 UTC, Jacob Carlborg
wrote:
On 2017-10-11 21:57, Eduard Staniloiu wrote:
Hello,
I've hit the following problem on this PR [0]:
The Windows 32bit build fails with the error: "more than 32767
symbols in object file" [1].
After taking a look in
On Thursday, 12 October 2017 at 07:54:19 UTC, Joakim wrote:
By the reasoning in the essay, I don't expect this to be solved
for free: the solution is for the devs behind the IDEs, Visual
Studio, DlangIDE, etc., to charge money for a streamlined
process. Why hasn't this happened yet?
There
On Thursday, 12 October 2017 at 08:20:45 UTC, Jonathan M Davis
wrote:
But overall, I don't think that the Windows situation with D is
really all that much worse than what you get on Linux. It's
just that the folks running Windows have a tendency to care a
ton about stuff like IDEs that the
On Thursday, 12 October 2017 at 10:29:31 UTC, Rion wrote:
I know but this illustrates the OP his point. Do you see a
warning tell people they can need to use fetch? Its the small
details that can made the experience much more nice but because
everybody here is such D experts, they can not
On Sunday, 18 June 2017 at 10:38:49 UTC, Ecstatic Coder wrote:
Something I really appreciate a lot with D is how close it is
to JavaScript.
For instance, I have to maintain two similar versions of
Pendown, a Markdown alternative for colored documents.
There is a server-side version, in D :
On Thursday, 12 October 2017 at 01:26:33 UTC, jmh530 wrote:
On Wednesday, 11 October 2017 at 22:23:12 UTC, Rion wrote:
On Wednesday, 11 October 2017 at 18:29:38 UTC, qznc wrote:
At least on Ubuntu, this gives me an IDE:
dub run dlangide
I have not used it much and I don't know if it works
https://issues.dlang.org/show_bug.cgi?id=6409
--- Comment #5 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/bf1c17838214d596f6e388929ad7e22147ba09f8
Fix Issue 6409 - std.array.empty for associative arrays
On Thursday, 12 October 2017 at 03:50:31 UTC, Dennis Cote wrote:
On Thursday, 12 October 2017 at 01:26:33 UTC, jmh530 wrote:
You have to fetch it first if you don't already have it:
dub fetch dlangide
dub run dlangide
Of course, you might still have an issue...
I still have an issue on
On Thursday, 12 October 2017 at 08:20:45 UTC, Jonathan M Davis
wrote:
I think that he meant that most of the developers for dmd and
the standard library run *nix systems
Ah, you're right. I have misunderstood a bit.
On Thursday, October 12, 2017 08:05:04 Dmitry via Digitalmars-d wrote:
> On Wednesday, 11 October 2017 at 22:20:01 UTC, Rion wrote:
> > Its probably more the fact that most of the developers use Unix
> > based system for development, be it OSx or Linux. As a result
> > Windows is the overlooked
On Wednesday, 11 October 2017 at 22:20:01 UTC, Rion wrote:
Its probably more the fact that most of the developers use Unix
based system for development, be it OSx or Linux. As a result
Windows is the overlooked system what results in a lack of
testing.
I already posted some statistic:
A
On Wednesday, 11 October 2017 at 14:28:32 UTC, Meta wrote:
On Wednesday, 11 October 2017 at 09:56:52 UTC, Igor wrote:
On Wednesday, 11 October 2017 at 08:35:51 UTC, Walter Bright
wrote:
On 10/10/2017 3:16 PM, sarn wrote:
Works even better in D because it can run at compile time.
Yes, I see
I just stumbled across an 18-year old essay, by an economist and
one-time tech entrepreneur written during the dot.com boom, about
open source and its properties, and this paragraph particularly
reminded me of D, especially the bit about the mailing list which
we're anachronistically still
On Thursday, 12 October 2017 at 05:02:40 UTC, Dennis Cote wrote:
On Thursday, 12 October 2017 at 03:50:31 UTC, Dennis Cote wrote:
This time it runs but displays a window full of micro sized
text and icons. It is barely readable.
I figured out dlangide assumes a DPI setting of 96 which
On 2017-10-12 07:27, Jesse Phillips wrote:
I don't think this is true at all. I recall people getting frustrated
and blaming it one Linux support being second class to windows.
I think that was true long time ago, but not anymore. DMD started out on
Windows, since that's Walter's main
On 2017-10-11 21:57, Eduard Staniloiu wrote:
Hello,
I've hit the following problem on this PR [0]:
The Windows 32bit build fails with the error: "more than 32767 symbols
in object file" [1].
After taking a look in `win32.mak`, I've seen that we are bundling
multiple source files into a
On 2017-10-11 19:55, Steven Schveighoffer wrote:
I have to say as someone who uses mostly non-windows systems, these
problems only seem to crop up for Windows developers.
I don't know if it's a different expectation or a different mindset or
something else.
In my experience it's more
On 2017-10-11 10:35, Walter Bright wrote:
On 10/10/2017 3:16 PM, sarn wrote:
Works even better in D because it can run at compile time.
Yes, I see no need for a language feature what can be easily and far
more flexibly done with a regular function - especially since what |q{
and -q{ do
On 2017-10-12 06:22, Steven Schveighoffer wrote:
I also want to add generated documentation. Does anyone know of a good
way to generate the ddoc (or ddox or whatever) and put it directly into
the repository for github to serve? Would be an awesome tip for people
making projects for
On 2017-10-11 22:36, Nordlöw wrote:
My first idea is to make stderr "core dumped" the invariant. Therefore
my first try becomes to redirect stderr to stdout (in bash) and grep for
the pattern 'core dumped' as follows
IIRC, segmentation faults are printed by the shell and not the
65 matches
Mail list logo