[Issue 18392] formum threads not searchable if starting with "Re: " (ie replies that were split off)

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18392 Timothee Cour changed: What|Removed |Added Status|NEW |RESOLVED

Re: proposal: heredoc comments to allow `+/` in comments, eg from urls or documented unittests

2018-02-09 Thread Jonathan M Davis via Digitalmars-d
On Friday, February 09, 2018 08:42:08 Kagamin via Digitalmars-d wrote: > On Friday, 9 February 2018 at 07:04:26 UTC, Nick Sabalausky > > (Abscissa) wrote: > > (If I were in change of the world, /** and /* both would be > > compiler errors, banned from all commits, and non-nesting block > >

Re: Official Dub package for DWT

2018-02-09 Thread Jacob Carlborg via Digitalmars-d-announce
On 2018-02-09 04:48, Brian wrote: Thanks! But, How to use x64? On Linux it should just work if you have a 64bit system. On Windows I guess you would run Dub with "dub --arch=x86_64", if it doesn't already default to 64bit. -- /Jacob Carlborg

[Issue 18273] Better C: wrong exit code from main()

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18273 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/dd3d5f827368479b7ed7da416471462bd377b0b8 fix Issue 18273 - Better C: wrong exit code from main()

Re: proposal: heredoc comments to allow `+/` in comments, eg from urls or documented unittests

2018-02-09 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 02/09/2018 04:48 AM, Kagamin wrote: On Friday, 9 February 2018 at 09:34:01 UTC, Nick Sabalausky (Abscissa) wrote: Comments don't respect even lexical structure of commented code that you expect, version(none) does. Uhh, you do know that IS nesting, right? It's not a comment though, it

Re: proposal: heredoc comments to allow `+/` in comments, eg from urls or documented unittests

2018-02-09 Thread Kagamin via Digitalmars-d
On Friday, 9 February 2018 at 08:44:31 UTC, Nick Sabalausky (Abscissa) wrote: On 02/09/2018 03:42 AM, Kagamin wrote: Nested comments are superficial though, Not if you've ever commented out a block of code. Comment this: string sedArg="s/ +/ /"; Comments don't respect even lexical

Re: proposal: heredoc comments to allow `+/` in comments, eg from urls or documented unittests

2018-02-09 Thread Timothee Cour via Digitalmars-d
summary: * `/* */` should never be used * properly nested `/+ +/` indeed don't cause issues * urls cause issues and I've ran into this issue multiple times * unrestricted code (eg foreign code or unfinished D code commented out) also cause issues * hreredoc comments fixes these issues when neeeddd

Re: proposal: heredoc comments to allow `+/` in comments, eg from urls or documented unittests

2018-02-09 Thread Timothee Cour via Digitalmars-d
version(none) { FOO } doesn't work if FOO doesn't parse. Again, what I proposed is the only 100% reliable way to comment out something On Fri, Feb 9, 2018 at 12:52 AM, Kagamin via Digitalmars-d wrote: > On Friday, 9 February 2018 at 08:44:31 UTC, Nick Sabalausky

[Issue 18320] forum.dlang.org email client should include url pointing to forum msg at bottom of each email, cf github issues

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18320 Timothee Cour changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18407] debug should escape nothrow, @nogc, @safe (not just pure)

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18407 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

[Issue 18407] debug should escape nothrow, @nogc, @safe (not just pure)

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18407 --- Comment #4 from Seb --- Potential duplicate: 16492 --

[Issue 16492] support @nogc in debug{} blocks

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16492 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

[Issue 18352] [REG 2.078] dmd can't generate 64-bit binaries on Windows 10 with VS 2015

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18352 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/0dca6e288bcee60b25b6fc5f5a8c064127ea4d6c fix issue 18352 - [REG 2.078] dmd can't generate 64-bit

[Issue 18354] [Reg 2.078] Building fails with VC 2015 Build Tools

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18354 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18352] [REG 2.078] dmd can't generate 64-bit binaries on Windows 10 with VS 2015

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18352 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18354] [Reg 2.078] Building fails with VC 2015 Build Tools

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18354 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/38da6c2258c0ff073b0e86e0a1f6ba190f061e5e fix issue 18354 - replace VS version check with check for

[Issue 18315] wrong code for `i > 0`

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18315 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/74904b6e43d0934f7fbcd2f966b04aaa58d4cde9 fix issue 18315 - wrong code for `i > 0` `SBB reg,0` is

[Issue 18273] Better C: wrong exit code from main()

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18273 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: proposal: heredoc comments to allow `+/` in comments, eg from urls or documented unittests

2018-02-09 Thread Kagamin via Digitalmars-d
On Friday, 9 February 2018 at 09:42:46 UTC, Nick Sabalausky (Abscissa) wrote: Huh? So are you *pro-* or *anti-* heredoc? I personally prefer python's triple quoted strings. Elegant, simple and enough for most stuff. That example only shows what D has. version(none)q{ FOO }; is likely to work

[Issue 18397] Poor implementation of std.conv.hexString results in unintended bloat

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18397 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Which language futures make D overcompicated?

2018-02-09 Thread Guillaume Piolat via Digitalmars-d
On Friday, 9 February 2018 at 07:54:49 UTC, Suliman wrote: I like D, but sometimes it's look like for me too complicated. Go have a lot of fans even it not simple, but primitive. But some D futures make it very hard to learning. Small list by me: 1. mixins 2. inout 3. too many attributes

[Issue 18397] Poor implementation of std.conv.hexString results in unintended bloat

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18397 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/f4f071cb8e85b25b3e73448693bc75f754293230 fix Issue 18397 - Poor implementation of

Re: Quora: Why hasn't D started to replace C++?

2018-02-09 Thread Jonathan M Davis via Digitalmars-d
On Friday, February 09, 2018 14:01:02 Atila Neves via Digitalmars-d wrote: > Unit tests are a great idea, right? Try convincing a group of 10 > programmers who have never written one and don't know anyone else > who has. I have; I failed. The amazing thing is when a programmer tries to argue that

[Issue 18221] DMD64 2.078.0 compile time explodes with -inline for mir-algorithm

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18221 Илья Ярошенко changed: What|Removed |Added CC|

Re: Which language futures make D overcompicated?

2018-02-09 Thread Ralph Doncaster via Digitalmars-d
On Friday, 9 February 2018 at 07:54:49 UTC, Suliman wrote: Which language futures by your opinion make D harder? Too many choices. I tend to obsess over the best way to do something, and when the language gives me several options I want to try them all. One example is constants (that would

Re: Which language futures make D overcompicated?

2018-02-09 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 9 February 2018 at 14:59:38 UTC, Ralph Doncaster wrote: The docs say using "private" will keep the symbol out of the file, but that is not true. https://dlang.org/spec/attribute.html#static That sentence isn't well written since D's private and C's static are different... what

Re: Which language futures make D overcompicated?

2018-02-09 Thread Jonathan M Davis via Digitalmars-d
On Friday, February 09, 2018 14:48:36 jmh530 via Digitalmars-d wrote: > On Friday, 9 February 2018 at 14:01:23 UTC, Andrea Fontana wrote: > > [snip] > > - Unfinished parts of language (ex: shared?) > > I see this a lot, but I don't really use shared so I always > forget how exactly it is

Re: Somewhat OT: defining algebras in D

2018-02-09 Thread Amorphorious via Digitalmars-d
On Friday, 9 February 2018 at 02:40:06 UTC, Nick Sabalausky (Abscissa) wrote: On 02/08/2018 04:37 PM, Amorphorious wrote: On Thursday, 8 February 2018 at 15:23:05 UTC, Simen Kjærås wrote: So I was bored in a meeting and decided to implement a generic template for defining complex numbers, dual

Re: A betterC base

2018-02-09 Thread Dave Jones via Digitalmars-d
On Thursday, 8 February 2018 at 18:06:38 UTC, Walter Bright wrote: On 2/8/2018 9:03 AM, Dave Jones wrote: If D had a decent garbage collector it might be a more convincing argument. 'Decent' GC systems rely on the compiler emitting "write gates" around every assignment to a pointer. These

Re: Which language futures make D overcompicated?

2018-02-09 Thread Mike Parker via Digitalmars-d
On Friday, 9 February 2018 at 15:37:12 UTC, Ralph Doncaster wrote: I think you are proving my point. You say there is no difference between: const MAX_IN = 20; vs immutable MAX_IN = 20; So now I have to try both, and look at the generated code to be sure. Or read the docs:

Re: Debugging bad requests with vibe

2018-02-09 Thread Nicholas Wilson via Digitalmars-d-learn
On Friday, 9 February 2018 at 08:06:53 UTC, Seb wrote: On Thursday, 8 February 2018 at 17:09:44 UTC, Nicholas Wilson wrote: Is there a way I can see/log what requests are being made? I can change both the client and server. -v and -vv So it turns out that structs do not work as parameters

Re: Which language futures make D overcompicated?

2018-02-09 Thread Andrea Fontana via Digitalmars-d
On Friday, 9 February 2018 at 15:35:38 UTC, Mike Parker wrote: On Friday, 9 February 2018 at 15:27:18 UTC, Andrea Fontana wrote: If you need to take the address of a constant, use immutable or const (doesn't really matter, but I prefer immutable). If you don't need the address, use enum.

Re: NewCTFE dead?

2018-02-09 Thread Mike Parker via Digitalmars-d
On Friday, 9 February 2018 at 15:40:07 UTC, Amorphorious wrote: Haven't seen anything about this in a while, is it dead? See: https://forum.dlang.org/post/owwdzwrznnyvldtsk...@forum.dlang.org And: https://github.com/UplinkCoder/dmd/tree/newCTFE_reboot

Re: Which language futures make D overcompicated?

2018-02-09 Thread Ralph Doncaster via Digitalmars-d
On Friday, 9 February 2018 at 15:46:56 UTC, Mike Parker wrote: On Friday, 9 February 2018 at 15:37:12 UTC, Ralph Doncaster wrote: I think you are proving my point. You say there is no difference between: const MAX_IN = 20; vs immutable MAX_IN = 20; So now I have to try both, and look at

Re: Which language futures make D overcompicated?

2018-02-09 Thread Seb via Digitalmars-d
On Friday, 9 February 2018 at 15:06:49 UTC, rumbu wrote: All understood, but just to get your mind set better, I would have two quick follow-up questions if you don't mind. On Friday, 9 February 2018 at 15:06:49 UTC, rumbu wrote: rough C# translation: async void spawnedFunc() { int i =

Re: Which language futures make D overcompicated?

2018-02-09 Thread jmh530 via Digitalmars-d
On Friday, 9 February 2018 at 14:01:23 UTC, Andrea Fontana wrote: [snip] - Unfinished parts of language (ex: shared?) I see this a lot, but I don't really use shared so I always forget how exactly it is unfinished. If there are unfinished parts of the language, it couldn't hurt to put in

NewCTFE dead?

2018-02-09 Thread Amorphorious via Digitalmars-d
Haven't seen anything about this in a while, is it dead?

Re: Which language futures make D overcompicated?

2018-02-09 Thread bachmeier via Digitalmars-d
On Friday, 9 February 2018 at 16:05:52 UTC, Ralph Doncaster wrote: It might be clear and simple to you, but it's not to me. And I'm a rather advanced developer. While there are lots of things I like about D compared to C++ such as getting rid of #include hell, there's too many "messy" things

Re: Which language futures make D overcompicated?

2018-02-09 Thread Seb via Digitalmars-d
On Friday, 9 February 2018 at 16:05:52 UTC, Ralph Doncaster wrote: On Friday, 9 February 2018 at 15:46:56 UTC, Mike Parker wrote: On Friday, 9 February 2018 at 15:37:12 UTC, Ralph Doncaster wrote: I think you are proving my point. You say there is no difference between: const MAX_IN = 20;

Re: Which language futures make D overcompicated?

2018-02-09 Thread Russel Winder via Digitalmars-d
On Fri, 2018-02-09 at 16:17 +, jmh530 via Digitalmars-d wrote: > […] > > He's written a build tool: > > https://github.com/atilaneves/reggae Indeed, but it seems to be gaining no traction in the community. Dub has the mindshare, because of the package repository. -- Russel.

Re: Which language futures make D overcompicated?

2018-02-09 Thread Seb via Digitalmars-d
On Friday, 9 February 2018 at 18:21:55 UTC, Bo wrote: Here are a few more "basics" that are unneeded or confusing. Lets not even talk about the more advanced features like inout, ... /-/ * auto: Static typed language yet we fall back on the compiler to figure out what is being assigned. Can

Re: Which language futures make D overcompicated?

2018-02-09 Thread jmh530 via Digitalmars-d
On Friday, 9 February 2018 at 18:21:55 UTC, Bo wrote: [snip] * scope() .. just call it "defer" just as every other language now does. It only confuses people who come from other languages. Its now almost a standard. By using scope people have have no clue that D has a defer. Took even me a

Re: Which language futures make D overcompicated?

2018-02-09 Thread Meta via Digitalmars-d
On Friday, 9 February 2018 at 17:31:47 UTC, Adam D. Ruppe wrote: On Friday, 9 February 2018 at 16:44:32 UTC, Seb wrote: Forget inout, it's seldomly used and there have even attempts to remove it from the language. inout rox. I think this is more of a documentation discoverability problem. We

Re: A betterC base

2018-02-09 Thread Seb via Digitalmars-d
On Friday, 9 February 2018 at 17:41:45 UTC, jmh530 wrote: On Friday, 9 February 2018 at 16:54:35 UTC, Seb wrote: FYI: and for the lazy ones, there will hopefully be std.experimental.scripting soon: https://github.com/dlang/phobos/pull/5916 Why not make this a package.d file for std?

Re: Which language futures make D overcompicated?

2018-02-09 Thread Mark via Digitalmars-d
On Friday, 9 February 2018 at 18:34:33 UTC, Seb wrote: On Friday, 9 February 2018 at 18:21:55 UTC, Bo wrote: Here are a few more "basics" that are unneeded or confusing. Lets not even talk about the more advanced features like inout, ... /-/ * auto: Static typed language yet we fall back on

[Issue 18404] Allow selective printing of -vgc output

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18404 Eyal changed: What|Removed |Added CC||e...@weka.io --- Comment #1 from Eyal

Re: Debugging bad requests with vibe

2018-02-09 Thread rjframe via Digitalmars-d-learn
On Fri, 09 Feb 2018 15:48:54 +, Nicholas Wilson wrote: > On Friday, 9 February 2018 at 08:06:53 UTC, Seb wrote: >> On Thursday, 8 February 2018 at 17:09:44 UTC, Nicholas Wilson wrote: >>> Is there a way I can see/log what requests are being made? I can >>> change both the client and server.

Re: Which language futures make D overcompicated?

2018-02-09 Thread Dukc via Digitalmars-d
On Friday, 9 February 2018 at 07:54:49 UTC, Suliman wrote: Which language futures by your opinion make D harder? Not many! D is a fairly complex languague, but just about everything feels like to be here for a good reason. That includes many oft-hated things: inout, auto ref, goto,

[Issue 18409] DScanner SEGFAULTS on CircleCI

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18409 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Which language futures make D overcompicated?

2018-02-09 Thread Russel Winder via Digitalmars-d
On Fri, 2018-02-09 at 16:10 +, Seb via Digitalmars-d wrote: > […] > Dub is not dead, it just has limited resources. So , if the D community want Dub to work as a build system as well as a package manager, extend the resources by corralling the grumblers and support them into fixing code and

[Issue 18411] New: Split up std.internal.regex.tests.d into multiple files or runs

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18411 Issue ID: 18411 Summary: Split up std.internal.regex.tests.d into multiple files or runs Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: Which language futures make D overcompicated?

2018-02-09 Thread John Gabriele via Digitalmars-d
On Friday, 9 February 2018 at 18:40:25 UTC, Seb wrote: On Friday, 9 February 2018 at 18:13:08 UTC, Russel Winder wrote: On Fri, 2018-02-09 at 16:10 +, Seb via Digitalmars-d wrote: […] Dub is not dead, it just has limited resources. So , if the D community want Dub to work as a build

Re: Quora: Why hasn't D started to replace C++?

2018-02-09 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 9 February 2018 at 14:49:27 UTC, Jonathan M Davis wrote: On Friday, February 09, 2018 14:01:02 Atila Neves via Digitalmars-d wrote: Unit tests are a great idea, right? Try convincing a group of 10 programmers who have never written one and don't know anyone else who has. I have; I

[Issue 18409] DScanner SEGFAULTS on CircleCI

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18409 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/f1926dad6b16559cf975eab6c3c840c1ea451cf5 Fix Issue 18409 - DScanner SEGFAULTS on CircleCI

Re: Which language futures make D overcompicated?

2018-02-09 Thread H. S. Teoh via Digitalmars-d
On Fri, Feb 09, 2018 at 05:56:38PM +, Dukc via Digitalmars-d wrote: > On Friday, 9 February 2018 at 07:54:49 UTC, Suliman wrote: > > Which language futures by your opinion make D harder? > > Not many! D is a fairly complex languague, but just about everything > feels like to be here for a

[Issue 16521] Wrong code generation with switch + static foreach

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16521 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

Re: Elegant way to use dynamic bindings

2018-02-09 Thread Mike Wey via Digitalmars-d-learn
On 09-02-18 15:04, Dennis wrote: I read the Derelict documentation a while ago, I didn't grasp all of it. Reading it again, I can now make sense of it though. :) On Friday, 9 February 2018 at 12:53:44 UTC, Mike Parker wrote: Did you link with the library you created with implib? That linker

Re: Quora: Why hasn't D started to replace C++?

2018-02-09 Thread Mark via Digitalmars-d
On Friday, 9 February 2018 at 13:21:09 UTC, Bo wrote: For basic technology as database's: Mysql, PostgreSQL, Sqlite, Firebird, MongoDB you expect this to be under the standard library for D, with official support. The reason why scripting languages do good in user adaptation is simply

Re: Quora: Why hasn't D started to replace C++?

2018-02-09 Thread Mark via Digitalmars-d
On Friday, 9 February 2018 at 14:01:02 UTC, Atila Neves wrote: Unit tests are a great idea, right? Try convincing a group of 10 programmers who have never written one and don't know anyone else who has. I have; I failed. Atila You should have tried to convince them to do TDD. ;)

Re: Which language futures make D overcompicated?

2018-02-09 Thread Atila Neves via Digitalmars-d
On Friday, 9 February 2018 at 15:25:51 UTC, jmh530 wrote: On Friday, 9 February 2018 at 13:47:51 UTC, Atila Neves wrote: On Friday, 9 February 2018 at 08:27:21 UTC, Nick Sabalausky And yes, things like "inout", "auto ref" or whatever, and such, strike me as indicative of more fundamental

Re: Which language futures make D overcompicated?

2018-02-09 Thread H. S. Teoh via Digitalmars-d
On Fri, Feb 09, 2018 at 06:44:08PM +, Meta via Digitalmars-d wrote: > On Friday, 9 February 2018 at 18:21:55 UTC, Bo wrote: > > * scope() .. just call it "defer" just as every other language now > > does. It only confuses people who come from other languages. Its > > now almost a standard. By

Re: Debugging on Windows

2018-02-09 Thread Benjamin Thaut via Digitalmars-d-learn
On Thursday, 8 February 2018 at 21:09:33 UTC, JN wrote: Hi, is there any way to debug binaries on Windows? I'd at least like to know which line of code made it crash. If it's D code, I get a call trace usually, but if it's a call to a C library, I get a crash and that's it. I am using VSCode

Re: Which language futures make D overcompicated?

2018-02-09 Thread H. S. Teoh via Digitalmars-d
On Fri, Feb 09, 2018 at 06:20:32PM +, Atila Neves via Digitalmars-d wrote: [...] > I'm perfectly happy with dub-the-package-manager. > > As for dub-the-build-system, I already did something about it: I wrote > reggae. Nearly all of the problems I've had with using dub to build > have

Re: Which language futures make D overcompicated?

2018-02-09 Thread Manu via Digitalmars-d
On 8 February 2018 at 23:54, Suliman via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > I like D, but sometimes it's look like for me too complicated. Go have a > lot of fans even it not simple, but primitive. But some D futures make it > very hard to learning. > > Small list by me: > 1.

Re: A betterC base

2018-02-09 Thread jmh530 via Digitalmars-d
On Friday, 9 February 2018 at 16:54:35 UTC, Seb wrote: FYI: and for the lazy ones, there will hopefully be std.experimental.scripting soon: https://github.com/dlang/phobos/pull/5916 Why not make this a package.d file for std?

Re: Somewhat OT: defining algebras in D

2018-02-09 Thread Mark via Digitalmars-d
On Thursday, 8 February 2018 at 15:23:05 UTC, Simen Kjærås wrote: So I was bored in a meeting and decided to implement a generic template for defining complex numbers, dual numbers, quaternions and many other possible algebras by simply defining a set of rules and the components on which they

Re: Which language futures make D overcompicated?

2018-02-09 Thread Atila Neves via Digitalmars-d
On Friday, 9 February 2018 at 15:55:27 UTC, Russel Winder wrote: On Fri, 2018-02-09 at 13:51 +, Atila Neves via Digitalmars-d wrote: On Friday, 9 February 2018 at 13:34:01 UTC, tetyys wrote: > On Friday, 9 February 2018 at 13:10:16 UTC, rumbu wrote: > > > > And not a language feature but I

Re: Which language futures make D overcompicated?

2018-02-09 Thread Bo via Digitalmars-d
Here are a few more "basics" that are unneeded or confusing. Lets not even talk about the more advanced features like inout, ... /-/ * auto: Static typed language yet we fall back on the compiler to figure out what is being assigned. Can just as well have a interpreter language. It only

[Issue 16492] support @nogc in debug{} blocks

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16492 --- Comment #4 from Manu --- Well, maybe it should... --

Re: Which language futures make D overcompicated?

2018-02-09 Thread Seb via Digitalmars-d
On Friday, 9 February 2018 at 18:13:08 UTC, Russel Winder wrote: On Fri, 2018-02-09 at 16:10 +, Seb via Digitalmars-d wrote: […] Dub is not dead, it just has limited resources. So , if the D community want Dub to work as a build system as well as a package manager, extend the

Re: Which language futures make D overcompicated?

2018-02-09 Thread H. S. Teoh via Digitalmars-d
On 8 February 2018 at 23:54, Suliman via Digitalmars-d <[1]digitalmars-d@puremagic.com> wrote: > > I like D, but sometimes it's look like for me too complicated. Go > have a lot of fans even it not simple, but primitive. But some D > futures make it very hard to learning. > >

Re: A betterC base

2018-02-09 Thread jmh530 via Digitalmars-d
On Friday, 9 February 2018 at 19:28:40 UTC, Seb wrote: Yes, that's the intended goal. However, to convince everyone involved and to be able to experiment with this in the wild for a bit, we went with std.experimental first. If drawbacks get discovered, it's a lot easier to retreat. Cool.

Re: Quora: Why hasn't D started to replace C++?

2018-02-09 Thread Atila Neves via Digitalmars-d
On Friday, 9 February 2018 at 14:49:27 UTC, Jonathan M Davis wrote: On Friday, February 09, 2018 14:01:02 Atila Neves via Digitalmars-d wrote: Unit tests are a great idea, right? Try convincing a group of 10 programmers who have never written one and don't know anyone else who has. I have; I

Re: Which language futures make D overcompicated?

2018-02-09 Thread Meta via Digitalmars-d
On Friday, 9 February 2018 at 18:21:55 UTC, Bo wrote: * scope() .. just call it "defer" just as every other language now does. It only confuses people who come from other languages. Its now almost a standard. By using scope people have have no clue that D has a defer. Took even me a while to

Re: Which language futures make D overcompicated?

2018-02-09 Thread Russel Winder via Digitalmars-d
On Fri, 2018-02-09 at 14:04 +, rumbu via Digitalmars-d wrote: > […] > 1. Keeps data in the %APPDATA%/Roaming folder. Connecting my > computer to the company network means that AD will sync zillions > of files on the company profile server. This issue is 4 years > old:

Re: A betterC base

2018-02-09 Thread Seb via Digitalmars-d
On Friday, 9 February 2018 at 14:11:37 UTC, Atila Neves wrote: On Friday, 9 February 2018 at 01:55:10 UTC, Benny wrote: [...] It's easy enough to create std package like this: module std; public import std.algorithm; //... However, I'm a _huge_ fan of local imports and only importing

Re: Somewhat OT: defining algebras in D

2018-02-09 Thread Simen Kjærås via Digitalmars-d
On Friday, 9 February 2018 at 15:45:11 UTC, Amorphorious wrote: On Friday, 9 February 2018 at 02:40:06 UTC, Nick Sabalausky (Abscissa) wrote: Well, that's the difference between a formal library package release vs sharing a working proof of concept jotted down to pass time ;) Yes, but he can

Re: Elegant way to use dynamic bindings

2018-02-09 Thread Mike Parker via Digitalmars-d-learn
On Friday, 9 February 2018 at 14:04:05 UTC, Dennis wrote: I added `pragma(lib, "mupen64plus.lib");` above the extern(C) block. Adding `libs "mupen64plus"` to dub.sdl doesn't make a difference. Where was the lib file located? Was it in the root project directory? How are you compiling your

Re: Which language futures make D overcompicated?

2018-02-09 Thread rumbu via Digitalmars-d
On Friday, 9 February 2018 at 13:53:51 UTC, Seb wrote: On Friday, 9 February 2018 at 13:10:16 UTC, rumbu wrote: On Friday, 9 February 2018 at 08:27:21 UTC, Nick Sabalausky (Abscissa) wrote: Defining input ranges (one of my biggest pet peeves): C# knocked it out of the park ages ago with its

uint[3] not equivalent to void[12]?

2018-02-09 Thread Ralph Doncaster via Digitalmars-d-learn
This seems odd to me. Is there a way I can make a function that takes an array of any type but only of a specific size in bytes? void.d(8): Error: function void.foo (void[12] arr) is not callable using argument types (uint[3]) Failed: ["/usr/bin/dmd", "-v", "-o-", "void.d", "-I."] void

Re: Which language futures make D overcompicated?

2018-02-09 Thread Mike Parker via Digitalmars-d
On Friday, 9 February 2018 at 14:59:38 UTC, Ralph Doncaster wrote: const auto MAX_IN = 20; const MAX_IN = 20; The auto is superfluous and is only needed when there's no storage class or type. Others say to use enums. It turns out enums seems to be the best, as they don't create a

[Issue 18410] [REG 2.079a] Conflict between overloads distinguished by parameter constness

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18410 --- Comment #1 from Basile B. --- The second example is unrelated actually. I can see the same problem with ``` struct Bar { this(const int){} this(const const(int)){} } ``` DMD 2.078.2 still accepts. Not 2.079a --

Re: uint[3] not equivalent to void[12]?

2018-02-09 Thread Mike Parker via Digitalmars-d-learn
On Friday, 9 February 2018 at 15:05:33 UTC, Ralph Doncaster wrote: This seems odd to me. Is there a way I can make a function that takes an array of any type but only of a specific size in bytes? void.d(8): Error: function void.foo (void[12] arr) is not callable using argument types

Re: Which language futures make D overcompicated?

2018-02-09 Thread Ralph Doncaster via Digitalmars-d
On Friday, 9 February 2018 at 15:09:10 UTC, Mike Parker wrote: On Friday, 9 February 2018 at 14:59:38 UTC, Ralph Doncaster wrote: const auto MAX_IN = 20; const MAX_IN = 20; The auto is superfluous and is only needed when there's no storage class or type. Others say to use enums. It

Re: Which language futures make D overcompicated?

2018-02-09 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 9 February 2018 at 15:29:52 UTC, Ralph Doncaster wrote: My point is that in D, the docs say "private" will keep the definition out of the object file. I think you'll have to agree that it's at least confusing. The exact quote is: "Static does not have the additional C meaning of

Re: Which language futures make D overcompicated?

2018-02-09 Thread Mike Parker via Digitalmars-d
On Friday, 9 February 2018 at 15:27:18 UTC, Andrea Fontana wrote: If you need to take the address of a constant, use immutable or const (doesn't really matter, but I prefer immutable). If you don't need the address, use enum. Why not static immutable? For global scope? static has no effect

Re: proposal: heredoc comments to allow `+/` in comments, eg from urls or documented unittests

2018-02-09 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Friday, 9 February 2018 at 11:16:01 UTC, Nick Sabalausky (Abscissa) wrote: /** Be sure to check the various files at extras/foo*/package.d and also: https://gcc.gnu.org/onlinedocs/libstdc++/faq.html */ Unlike the "disabling code that contains the end-of-disabled-code token" stuff, THIS

Re: Which language futures make D overcompicated?

2018-02-09 Thread jmh530 via Digitalmars-d
On Friday, 9 February 2018 at 15:55:27 UTC, Russel Winder wrote: Great build tool? No. For anything that's not trivial it's an exercise in frustration, pain, tears, waiting for builds to finish, and workarounds for bugs. Of course whilst people just moan nothing changes. It strikes me as

Re: uint[3] not equivalent to void[12]?

2018-02-09 Thread Ralph Doncaster via Digitalmars-d-learn
On Friday, 9 February 2018 at 16:28:50 UTC, Nicholas Wilson wrote: On Friday, 9 February 2018 at 15:50:24 UTC, Ralph Doncaster wrote: Is there a way I can make a function that takes an array of any type but only of a specific size in bytes? With a template that constrains the types size:

Re: Heads-up: upcoming instabilities in std.experimental.allocator, and what to do

2018-02-09 Thread Seb via Digitalmars-d
On Friday, 9 February 2018 at 14:24:45 UTC, 9il wrote: On Thursday, 30 November 2017 at 19:01:02 UTC, Andrei Alexandrescu wrote: Hi all, Eduard, Alexandru Jercaianu and I are working on improving allocators' design and implementation. This entails a few breaking changes. Awesome! If you

Re: Which language futures make D overcompicated?

2018-02-09 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 9 February 2018 at 16:44:32 UTC, Seb wrote: Forget inout, it's seldomly used and there have even attempts to remove it from the language. inout rox. I think this is more of a documentation discoverability problem. We should be having people read the spec, which is written toward

Re: Heads-up: upcoming instabilities in std.experimental.allocator, and what to do

2018-02-09 Thread 9il via Digitalmars-d
On Friday, 9 February 2018 at 14:38:50 UTC, Seb wrote: On Friday, 9 February 2018 at 14:24:45 UTC, 9il wrote: On Thursday, 30 November 2017 at 19:01:02 UTC, Andrei Alexandrescu wrote: Hi all, Eduard, Alexandru Jercaianu and I are working on improving allocators' design and implementation.

[Issue 18410] [REG 2.079a] Conflict between overloads distinguished by parameter constness

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18410 Basile B. changed: What|Removed |Added Status|NEW |RESOLVED

Re: Which language futures make D overcompicated?

2018-02-09 Thread jmh530 via Digitalmars-d
On Friday, 9 February 2018 at 13:47:51 UTC, Atila Neves wrote: On Friday, 9 February 2018 at 08:27:21 UTC, Nick Sabalausky And yes, things like "inout", "auto ref" or whatever, and such, strike me as indicative of more fundamental design flaws. (Not "flaw" in the sence of "mistakes"

Re: Which language futures make D overcompicated?

2018-02-09 Thread Ralph Doncaster via Digitalmars-d
On Friday, 9 February 2018 at 15:03:02 UTC, Adam D. Ruppe wrote: On Friday, 9 February 2018 at 14:59:38 UTC, Ralph Doncaster wrote: The docs say using "private" will keep the symbol out of the file, but that is not true. https://dlang.org/spec/attribute.html#static That sentence isn't well

[Issue 18409] DScanner SEGFAULTS on CircleCI

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18409 Seb changed: What|Removed |Added Summary|DRuntime SEGFAULTS when |DScanner SEGFAULTS on

Re: uint[3] not equivalent to void[12]?

2018-02-09 Thread Mike Parker via Digitalmars-d-learn
On Friday, 9 February 2018 at 15:24:27 UTC, Mike Parker wrote: import std.stdio; enum numBytes = 12; void foo(T, size_t N)(T[N] arr) if((N * T.sizeof) == numBytes) { writeln(arr); } void bar(ubyte[12] arr) { writeln(arr); } Also, it's worth mentioning in case you

Re: Which language futures make D overcompicated?

2018-02-09 Thread Ralph Doncaster via Digitalmars-d
On Friday, 9 February 2018 at 16:33:21 UTC, bachmeier wrote: On Friday, 9 February 2018 at 16:05:52 UTC, Ralph Doncaster wrote: It might be clear and simple to you, but it's not to me. And I'm a rather advanced developer. While there are lots of things I like about D compared to C++ such as

Re: uint[3] not equivalent to void[12]?

2018-02-09 Thread H. S. Teoh via Digitalmars-d-learn
On Fri, Feb 09, 2018 at 03:05:33PM +, Ralph Doncaster via Digitalmars-d-learn wrote: > This seems odd to me. Is there a way I can make a function that takes > an array of any type but only of a specific size in bytes? > > void.d(8): Error: function void.foo (void[12] arr) is not callable >

[Issue 17752] Switch skips over declaration issued for explicitly uninitialized variables

2018-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17752 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/1af17a72b8629b087418c3dc909fd17f40e0a51c Fix Issue 17752 - Switch skips over declaration issued for

  1   2   3   >