[Issue 18022] DDoc: reduce ddoc has UT between documentation

2017-12-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18022 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 18028] Allow Unnecessary Template Instantiation To Be Dropped

2017-12-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18028 Ketmar Dark changed: What|Removed |Added CC|

[Issue 18029] extra dtor call with typed variadic argument (or missing postblit)

2017-12-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18029 Ketmar Dark changed: What|Removed |Added CC|

[Issue 18029] New: extra dtor call with typed variadic argument (or missing postblit)

2017-12-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18029 Issue ID: 18029 Summary: extra dtor call with typed variadic argument (or missing postblit) Product: D Version: D2 Hardware: x86 OS: All Status: NEW

Re: Thoughts about D

2017-12-03 Thread Adam Wilson via Digitalmars-d
On 12/3/17 21:28, Walter Bright wrote: On 12/3/2017 8:59 PM, Adam Wilson wrote: I have to agree with this. I make my living on server side software, and we aren't allowed (by legal) to connect to the server to run debuggers. The *only* thing I have is logging. If the program crashes with no

Re: Thoughts about D

2017-12-03 Thread Walter Bright via Digitalmars-d
On 12/3/2017 8:59 PM, Adam Wilson wrote: I have to agree with this. I make my living on server side software, and we aren't allowed (by legal) to connect to the server to run debuggers. The *only* thing I have is logging. If the program crashes with no option to trap an exception or otherwise

Re: Thoughts about D

2017-12-03 Thread Adam Wilson via Digitalmars-d
On 12/3/17 00:09, Dmitry Olshansky wrote: On Saturday, 2 December 2017 at 23:44:39 UTC, Walter Bright wrote: On 12/2/2017 4:38 AM, Iain Buclaw wrote: But then you need to bloat your program with debug info in order to understand what, why, and how things went wrong. Most of the time (for me)

Re: git workflow for D

2017-12-03 Thread Patrick Schluter via Digitalmars-d-learn
On Monday, 4 December 2017 at 01:54:57 UTC, ketmar wrote: Basile B. wrote: On Sunday, 3 December 2017 at 22:22:47 UTC, Arun Chandrasekaran wrote: Git CLI is arcane and esoteric. I've lost my commits before (yeah, my mistake). Who hasn't ;) me. Happened to me last time because i tried a

Re: git workflow for D

2017-12-03 Thread ketmar via Digitalmars-d-learn
Basile B. wrote: On Sunday, 3 December 2017 at 22:22:47 UTC, Arun Chandrasekaran wrote: Git CLI is arcane and esoteric. I've lost my commits before (yeah, my mistake). Who hasn't ;) me. Happened to me last time because i tried a command supposed to remove untracked files in

Re: Thoughts about D

2017-12-03 Thread Walter Bright via Digitalmars-d
On 12/3/2017 5:12 PM, Michael V. Franklin wrote: Ok, well perhaps that makes sense compiling with -fPIC, but the "relocation R_X86_64_32 against `.rodata.str1.1'" seems unnecessary. Why certain relocations are there is not at all a simple subject. And changing them tends to produce all sorts

Re: Thoughts about D

2017-12-03 Thread Walter Bright via Digitalmars-d
On 12/3/2017 5:01 PM, Michael V. Franklin wrote: Would it help for me to file bugzilla issues for things like this? No, because "why does the compiler do xxx" isn't really a bug report. You could ask on the learn n.g., or use obj2asm to examine the generated code. You can also grep the

Re: git workflow for D

2017-12-03 Thread Arun Chandrasekaran via Digitalmars-d-learn
On Sunday, 3 December 2017 at 23:39:49 UTC, Basile B. wrote: On Sunday, 3 December 2017 at 22:22:47 UTC, Arun Chandrasekaran wrote: Git CLI is arcane and esoteric. I've lost my commits before (yeah, my mistake). Who hasn't ;) Happened to me last time because i tried a command supposed to

Re: Thoughts about D

2017-12-03 Thread Walter Bright via Digitalmars-d
On 12/3/2017 4:25 PM, Michael V. Franklin wrote: It would be great for the compiler devs to run through this exercise themselves and make changes to the compiler/runtime interface to remove the irrelevant requirements the compiler is imposing. I don't agree that creating a stub druntime is

Re: Thoughts about D

2017-12-03 Thread Michael V. Franklin via Digitalmars-d
On Monday, 4 December 2017 at 01:01:47 UTC, Michael V. Franklin wrote: .$> dmd -defaultlib= -debuglib= -conf= main.d -of=main /usr/bin/ld: main.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed:

Re: Thoughts about D

2017-12-03 Thread Michael V. Franklin via Digitalmars-d
On Monday, 4 December 2017 at 00:25:53 UTC, Michael V. Franklin wrote: A better solution would be to do what Iain said: Try compiling a simple "hello world" with an empty object.d file. Then inspect what the compiler does. Does it error and exit, or does it ICE? What can be done to

Re: Thoughts about D

2017-12-03 Thread Michael V. Franklin via Digitalmars-d
On Sunday, 3 December 2017 at 23:34:13 UTC, Walter Bright wrote: If -betterC motivates people to come up with better solutions, I'm all for it. A better solution would be to do what Iain said: Try compiling a simple "hello world" with an empty object.d file. Then inspect what the compiler

Re: git workflow for D

2017-12-03 Thread Basile B. via Digitalmars-d-learn
On Sunday, 3 December 2017 at 22:22:47 UTC, Arun Chandrasekaran wrote: Git CLI is arcane and esoteric. I've lost my commits before (yeah, my mistake). Who hasn't ;) Happened to me last time because i tried a command supposed to remove untracked files in submodules...but used "reset" in a

Re: Thoughts about D

2017-12-03 Thread Walter Bright via Digitalmars-d
On 12/3/2017 11:22 AM, Michael V. Franklin wrote: On Sunday, 3 December 2017 at 12:20:14 UTC, Walter Bright wrote: Meanwhile, we've got -betterC today, and it's simple and it works. IMO -betterC is papering over the problem rather than dealing with it. If -betterC motivates people to come up

Re: How to declare immutable struct outside of try catch and reference it later

2017-12-03 Thread Basile B. via Digitalmars-d-learn
On Sunday, 3 December 2017 at 22:33:40 UTC, kdevel wrote: On Sunday, 3 December 2017 at 14:58:03 UTC, Basile B. wrote: In this case i'd go for a typed pointer, e.g --- immutable struct Configuration { this(string){/*load some file...*/} int value; } Configuration* config; void main()

Re: Windows Share Path

2017-12-03 Thread rjframe via Digitalmars-d-learn
On Sun, 03 Dec 2017 16:42:46 +, vino wrote: > Question: > Is there a way to map network drive in windows using D code, similar to > the windows command such as "net use" or "pushd" or powershell command > New-PSDrive.? > > From, > Vino.B There's WNetAddConnection2[1] and

Re: How to declare immutable struct outside of try catch and reference it later

2017-12-03 Thread kdevel via Digitalmars-d-learn
On Sunday, 3 December 2017 at 14:58:03 UTC, Basile B. wrote: In this case i'd go for a typed pointer, e.g --- immutable struct Configuration { this(string){/*load some file...*/} int value; } Configuration* config; void main() { try config = new Configuration("config.sdl");

Re: git workflow for D

2017-12-03 Thread Arun Chandrasekaran via Digitalmars-d-learn
Git CLI is arcane and esoteric. I've lost my commits before (yeah, my mistake). Since then I always access git via mercurial. In comparison Mercurial is far better a VCS tool.

Re: git workflow for D

2017-12-03 Thread Mengu via Digitalmars-d-learn
On Sunday, 3 December 2017 at 20:05:47 UTC, bitwise wrote: I've finally started learning git, due to our team expanding beyond one person - awesome, right? Anyways, I've got things more or less figured out, which is nice, because being clueless about git is a big blocker for me trying to do

[Issue 18028] New: Allow Unnecessary Template Instantiation To Be Dropped

2017-12-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18028 Issue ID: 18028 Summary: Allow Unnecessary Template Instantiation To Be Dropped Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: git workflow for D

2017-12-03 Thread Basile B. via Digitalmars-d-learn
On Sunday, 3 December 2017 at 20:05:47 UTC, bitwise wrote: I've finally started learning git, due to our team expanding beyond one person - awesome, right? Anyways, I've got things more or less figured out, which is nice, because being clueless about git is a big blocker for me trying to do

[Issue 18027] New: CRLF terminators in release tarball files

2017-12-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18027 Issue ID: 18027 Summary: CRLF terminators in release tarball files Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

git workflow for D

2017-12-03 Thread bitwise via Digitalmars-d-learn
I've finally started learning git, due to our team expanding beyond one person - awesome, right? Anyways, I've got things more or less figured out, which is nice, because being clueless about git is a big blocker for me trying to do any real work on dmd/phobos/druntime. As far as working on a

Re: Thoughts about D

2017-12-03 Thread Michael V. Franklin via Digitalmars-d
On Sunday, 3 December 2017 at 12:20:14 UTC, Walter Bright wrote: It may indeed work to use a special druntime. My expectation, however, is that it's a lot more work trying to develop and support another runtime library, and a lot more work for the user trying to get that library worked into

Re: Thoughts about D

2017-12-03 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 3 December 2017 at 12:20:14 UTC, Walter Bright wrote: It may indeed work to use a special druntime. My expectation, however, is that it's a lot more work trying to develop and support another runtime library, and a lot more work for the user trying to get that library worked into

Re: Implicit nothrow with -betterC

2017-12-03 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 3 December 2017 at 15:24:27 UTC, Manuel Maier wrote: I've been experimenting with the -betterC switch and stumbled upon something that didn't quite make sense to me. betterC doesn't change the language, it just doesn't compile in all the features automatically. So rules about

Re: Windows Share Path

2017-12-03 Thread vino via Digitalmars-d-learn
On Sunday, 3 December 2017 at 01:27:40 UTC, codephantom wrote: On Saturday, 2 December 2017 at 14:23:48 UTC, Vino wrote: Hi, Even tried the Option "Run with Highest Privilege" but no luck. and also tried with option "Configure for : Windows Vista , Windows Server 2008" From, Vino.B You

[Issue 12842] More support for ranges of ranges

2017-12-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12842 Neia Neutuladh changed: What|Removed |Added CC||dhase...@gmail.com ---

template specialization and Rebindable

2017-12-03 Thread vit via Digitalmars-d-learn
Why is template param T != B but T == Rebindable!(const(B)) when specialization is T : const(A)? abstract class A{} class B : A{} string foo(T : const(A))(T x){ return T.stringof; } void main(){ import std.typecons : Rebindable; import std.stdio : writeln; Rebindable!(const

Re: LDC 1.6.0-beta1

2017-12-03 Thread Jacob Carlborg via Digitalmars-d-announce
On 2017-12-03 12:52, kinke wrote: Working on that. It's not that simple though; we use a custom LLVM, which Travis doesn't manage to build alone in a dedicated job (only ~66% before timing out). Hmm, I would need to do that as well for DStep :(. That's disappointing. Would caching help [1]?

Re: Struct inside a class: How to get outer?

2017-12-03 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-12-03 10:57, Nick Sabalausky (Abscissa) wrote: On 12/03/2017 03:46 AM, bauss wrote: It wouldn't make much sense either, if a struct  was able to do it. Why is that? It would get an extra field, making the size of the struct larger and not compatible with a C struct. But I guess

[Issue 18026] New: Stack overflow in ddmd/dtemplate.d:6241, TemplateInstance::needsCodegen()

2017-12-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18026 Issue ID: 18026 Summary: Stack overflow in ddmd/dtemplate.d:6241, TemplateInstance::needsCodegen() Product: D Version: D2 Hardware: x86_64 OS: Linux

Re: Thoughts about D

2017-12-03 Thread Iain Buclaw via Digitalmars-d
On 3 December 2017 at 13:20, Walter Bright via Digitalmars-d wrote: > On 12/3/2017 2:32 AM, Iain Buclaw wrote: >> >> People have been making alternative druntime libraries for a while >> now, either as stubs inside their own project, or by using minilibd. >> There's

Implicit nothrow with -betterC

2017-12-03 Thread Manuel Maier via Digitalmars-d-learn
I've been experimenting with the -betterC switch and stumbled upon something that didn't quite make sense to me. I've put together a small example [1] of Win32 code with a window callback that has to be nothrow as per the definition of WNDPROC somewhere in core.sys.windows. However, calling

Re: How to declare immutable struct outside of try catch and reference it later

2017-12-03 Thread Basile B. via Digitalmars-d-learn
On Sunday, 3 December 2017 at 05:49:54 UTC, Fra Mecca wrote: I have this code: Configuration conf = void ; try { conf = parse_config("config.sdl"); } catch (Exception e) { std.stdio.stderr.writeln("Error reading configuration file: ", e.msg); exit(1); }

Re: How to declare immutable struct outside of try catch and reference it later

2017-12-03 Thread kdevel via Digitalmars-d-learn
On Sunday, 3 December 2017 at 14:16:42 UTC, kdevel wrote: int main () { try { real_main (); } catch (Exception e) { std.stdio.stderr.writeln(e.msg); return 1; } return 0; } ``` This is better: int main () { try { return real_main (); } catch

Re: Building is slow!

2017-12-03 Thread Arek via Digitalmars-d
On Saturday, 2 December 2017 at 23:26:20 UTC, Ivan Trombley wrote: On Saturday, 2 December 2017 at 14:34:58 UTC, Arek wrote: You can try `dub build --build-mode=single-file --parallel`. It will execute separate instance of compiler for each source file. If --parallel is given, dub will launch

Re: How to declare immutable struct outside of try catch and reference it later

2017-12-03 Thread kdevel via Digitalmars-d-learn
On Sunday, 3 December 2017 at 05:49:54 UTC, Fra Mecca wrote: I have this code: Configuration conf = void ; try { conf = parse_config("config.sdl"); } catch (Exception e) { std.stdio.stderr.writeln("Error reading configuration file: ", e.msg); exit(1); }

[Issue 17723] Replace Facebook on the front page with Weka.io

2017-12-03 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17723 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/d77bf4c58bf8d659b764631e4954edc9647d8feb Fix Issue 17723 - Replace Facebook on the front

LDC 1.6.0

2017-12-03 Thread kinke via Digitalmars-d-announce
Hi everyone, on behalf of the LDC team, I'm glad to announce LDC 1.6. The highlights of this version in a nutshell: * Based on D 2.076.1. * Experimental support for dynamic codegen at runtime ('manual JIT'). * Many std.math functions are now CTFE-able. Full release log and downloads:

Re: First Impressions!

2017-12-03 Thread Patrick Schluter via Digitalmars-d
On Saturday, 2 December 2017 at 22:16:09 UTC, Joakim wrote: On Friday, 1 December 2017 at 23:16:45 UTC, H. S. Teoh wrote: On Fri, Dec 01, 2017 at 03:04:44PM -0800, Walter Bright via Digitalmars-d wrote: On 11/30/2017 9:23 AM, Kagamin wrote: > On Tuesday, 28 November 2017 at 03:37:26 UTC, rikki

Re: Thoughts about D

2017-12-03 Thread Walter Bright via Digitalmars-d
On 12/3/2017 2:32 AM, Iain Buclaw wrote: People have been making alternative druntime libraries for a while now, either as stubs inside their own project, or by using minilibd. There's nothing stopping you from simply swapping out druntime for another implementation. It may indeed work to use

Re: LDC 1.6.0-beta1

2017-12-03 Thread kinke via Digitalmars-d-announce
On Saturday, 2 December 2017 at 23:08:50 UTC, David Nadlinger wrote: On Saturday, 2 December 2017 at 15:47:23 UTC, Jacob Carlborg wrote: On 2017-12-02 13:41, kinke wrote: Nope, unfortunately still waiting for one of my compadres to create and upload the OSX package. Have you thought of

Re: Thoughts about D

2017-12-03 Thread Iain Buclaw via Digitalmars-d
On 3 December 2017 at 00:56, Walter Bright via Digitalmars-d wrote: > On 12/2/2017 4:13 AM, Iain Buclaw wrote: >> >> On 29 November 2017 at 03:18, Walter Bright via Digitalmars-d >> wrote: >>> >>> On 11/28/2017 9:27 AM, Jacob Carlborg

Re: Struct inside a class: How to get outer?

2017-12-03 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-learn
On 12/03/2017 03:46 AM, bauss wrote: On Sunday, 3 December 2017 at 07:38:47 UTC, Jonathan M Davis wrote: As I understand it, there is no outer for nested structs, only nested classes. So, you'll either have to use a nested class or explicitly pass a reference to the outer class to the nested

Re: Thoughts about D

2017-12-03 Thread Iain Buclaw via Digitalmars-d
On 3 December 2017 at 08:29, Richard Delorme via Digitalmars-d wrote: > On Saturday, 2 December 2017 at 23:44:39 UTC, Walter Bright wrote: >> >> On 12/2/2017 4:38 AM, Iain Buclaw wrote: >>> >>> But then you need to bloat your program with debug info in order to >>>

Re: Thoughts about D

2017-12-03 Thread Walter Bright via Digitalmars-d
On 11/30/2017 7:43 PM, Adam D. Ruppe wrote: int 3, on the other hand, is explicitly for debugging - which is what we want asserts to be. https://github.com/dlang/dmd/pull/7391

Re: Struct inside a class: How to get outer?

2017-12-03 Thread bauss via Digitalmars-d-learn
On Sunday, 3 December 2017 at 07:38:47 UTC, Jonathan M Davis wrote: On Sunday, December 03, 2017 01:05:00 Nick Sabalausky via Digitalmars-d- learn wrote: Is this even possible? My attempts: class Outer { struct Inner { void foo() { // Error: no property 'outer' for type

Re: Thoughts about D

2017-12-03 Thread Jacob Carlborg via Digitalmars-d
On 2017-12-03 08:29, Richard Delorme wrote: +1 To me, the current D assert is useless, and I prefer to use a C-like equivalent, that "crash" the program without unwinding the stack. Then I can inspect the cause of the crash on a debugger, with access to the current context (variable

Re: LDC 1.6.0-beta1

2017-12-03 Thread Jacob Carlborg via Digitalmars-d-announce
On 2017-12-03 00:08, David Nadlinger wrote: That would be a good idea. Also, I uploaded the OS X package just now. (Didn't realise it wasn't built yet…). —David Here's the Travis CI script for one of my projects [1] that uploads to a GitHub release, both for Linux and macOS. [1]

Re: Thoughts about D

2017-12-03 Thread Dmitry Olshansky via Digitalmars-d
On Saturday, 2 December 2017 at 23:44:39 UTC, Walter Bright wrote: On 12/2/2017 4:38 AM, Iain Buclaw wrote: But then you need to bloat your program with debug info in order to understand what, why, and how things went wrong. Most of the time (for me) that isn't necessary, because the