SDLang-D v0.10.4 - Minor maintenance release

2018-07-15 Thread Nick Sabalausky (Abscissa) via Digitalmars-d-announce
announce.sdl: == // SDLang-D // - // A library to read (pull parse or dom) and write (dom) // SDLang data (such as used by DUB's dub.sdl files). // // SDLang // --- // A text-file format similar to XML/JSON/YAML, but is //

Re: Is there any tool that will auto publish my changes.

2018-07-15 Thread Venkat via Digitalmars-d-learn
An extension to the question. Is something like auto publish that even possible ? Or the dumb guy from java world don't know what he talkin' 'bout ?

eBay's TSV Utilities repository renamed

2018-07-15 Thread Jon Degenhardt via Digitalmars-d-announce
I've renamed the TSV Utilities Github repository from eBay/tsv-utils-dlang to eBay/tsv-utils. This is to better reflect the functional nature of the tools. Links pointing to the old github repo will be redirected to the new repo. This includes git operations like clone, etc., so Project

Re: I have a plan.. I really DO

2018-07-15 Thread Mark via Digitalmars-d-announce
On Thursday, 12 July 2018 at 14:49:14 UTC, bachmeier wrote: AFAICT, the money goes to internal compiler work to add new features to the language in order to appeal to C++ users. Well, there's also the redesign of the Phobos collections. I don't know if attracting C++ users is currently a

Re: Completely Remove C Runtime with DMD for win32

2018-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2018 2:46 PM, tcb wrote: Thank you both, that clarifies a lot! You can set the start address with the DMC C compiler using a #pragma: https://www.digitalmars.com/ctg/pragmas.html#startaddress but currently that isn't directly settable with the DMD compiler. You can see how it is

Re: Completely Remove C Runtime with DMD for win32

2018-07-15 Thread tcb via Digitalmars-d
Thank you both, that clarifies a lot!

Re: Completely Remove C Runtime with DMD for win32

2018-07-15 Thread Walter Bright via Digitalmars-d
On 7/15/2018 1:29 PM, tcb wrote: I've been trying to compile a trivial program (extern C int main() {return 0;}) without linking parts of the C runtime with no success. Declaring a C function called "main" causes the C runtime library to be pulled in. After all, main() is not the program

Re: Completely Remove C Runtime with DMD for win32

2018-07-15 Thread kinke via Digitalmars-d
On Sunday, 15 July 2018 at 20:29:29 UTC, tcb wrote: Is it possible to completely remove the C runtime on windows, and if so how? This works for me: extern(C) int mainCRTStartup() { return 0; } dmd -m32mscoff -betterC -L/subsystem:CONSOLE main.d => 1.5 kB .exe.

Completely Remove C Runtime with DMD for win32

2018-07-15 Thread tcb via Digitalmars-d
I've been trying to compile a trivial program (extern C int main() {return 0;}) without linking parts of the C runtime with no success. I compile with dmd -debuglib= -defaultlib= -v -L=/INFORMATION -betterC but optlink shows a lot of things from snn.lib being pulled in and the resultant

LDC 1.11.0 beta2

2018-07-15 Thread kinke via Digitalmars-d-announce
Glad to announce the second beta for LDC 1.11. * Based on D 2.081.1+ (today's DMD stable). * Prebuilt packages now using LLVM 6.0.1 and including additional cross-compilation targets (MIPS, MSP430, RISC-V and WebAssembly). * Rudimentary support for compiling & linking directly to WebAssembly.

Re: Copy Constructor DIP

2018-07-15 Thread sclytrack via Digitalmars-d
On Friday, 13 July 2018 at 11:02:57 UTC, RazvanN wrote: [...] Indeed, but this was the source of the problem also, because you could modify immutable fields that way. [...] Affirmative. The DIP needs to specify how assignment is handled if no opAssign is present but a copy ctor is

[Issue 19086] Bad stack trace for exceptions

2018-07-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19086 Sewer Sz changed: What|Removed |Added CC||seweratw...@googlemail.com --- Comment #1 from

std.experimental.allocator and const etc.

2018-07-15 Thread John Colvin via Digitalmars-d
Currently the API's don't support const(void)[], e.g. import std.experimental.allocator : makeArray, theAllocator, dispose; import std.experimental.allocator.mallocator : Mallocator; void main() { const a = theAllocator.makeArray!ubyte(100); theAllocator.dispose(a); // can't call

Re: Check whether a range is empty

2018-07-15 Thread vino.B via Digitalmars-d-learn
On Sunday, 15 July 2018 at 12:18:27 UTC, Steven Schveighoffer wrote: On 7/15/18 7:45 AM, vino.B wrote: [...] I still don't know why you are using chain here as it equates to the identity function in this instance:

Re: Check whether a range is empty

2018-07-15 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/15/18 7:45 AM, vino.B wrote: On Saturday, 14 July 2018 at 17:20:52 UTC, Ali Çehreli wrote: First, please show us code that demonstrates the issue. On 07/14/2018 07:47 AM, vino.B wrote: >    The reason it never prints the text "Empty" is that the out of the > "r" is just an empty array. >

Re: Check whether a range is empty

2018-07-15 Thread vino.B via Digitalmars-d-learn
On Saturday, 14 July 2018 at 17:20:52 UTC, Ali Çehreli wrote: First, please show us code that demonstrates the issue. On 07/14/2018 07:47 AM, vino.B wrote: >The reason it never prints the text "Empty" is that the out of the > "r" is just an empty array. > > OUTPUT: > [] > [] If that's the

rmdirRecurse equivalent Windows API

2018-07-15 Thread vino.B via Digitalmars-d-learn
Hi All, The D function rmdirRecurse on windows works 80% and rest of the time it complains the the "The filename, directory name, or volume label syntax is incorrect." while accessing the file using UNC path, so is there any alternate such as Windows API to remove folder irrespective of

Re: setAttributes Issue.

2018-07-15 Thread vino.B via Digitalmars-d-learn
On Sunday, 15 July 2018 at 10:07:49 UTC, vino.B wrote: Hi All, Request your help, can some one find what is the issue with the below code, as this is throwing the error "Access is denied". as the below code is supposed to to remove the read-only permission if set. [...] Hi All, Was

Re: Symmetry Autumn of Code

2018-07-15 Thread Anton Fediushin via Digitalmars-d-announce
On Saturday, 14 July 2018 at 06:02:37 UTC, Mike Parker wrote: Thanks to the sponsorship of Symmetry Investments, the D Language Foundation is happy to announce the Symmetry Autumn of Code! We're looking for three university students to hack on D this autumn, from September - January. We're

Re: Sutter's ISO C++ Trip Report - The best compliment is when someone else steals your ideas....

2018-07-15 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 13 July 2018 at 12:55:33 UTC, Adam D. Ruppe wrote: You use process isolation so it is easy to restart part of it without disrupting others. Then it can crash without bringing the system down. This is doable with segfaults and range errors, same as with exceptions. This is one of

setAttributes Issue.

2018-07-15 Thread vino.B via Digitalmars-d-learn
Hi All, Request your help, can some one find what is the issue with the below code, as this is throwing the error "Access is denied". as the below code is supposed to to remove the read-only permission if set. Code: import std.algorithm; import std.array; import std.container.array;

Re: Sutter's ISO C++ Trip Report - The best compliment is when someone else steals your ideas....

2018-07-15 Thread Ola Fosheim Grøstad via Digitalmars-d
On Wednesday, 11 July 2018 at 22:35:06 UTC, crimaniak wrote: The people who developed Erlang definitely have a lot of experience developing services. Yes, it was created for telephone-centrals. You don't want a phone central to go completely dead just because there is a bug in the code. That

Re: Find out druntime/import and phobos folder on Linux

2018-07-15 Thread Andre Pany via Digitalmars-d-learn
On Sunday, 15 July 2018 at 09:17:31 UTC, Seb wrote: On Saturday, 14 July 2018 at 17:19:20 UTC, Andre Pany wrote: [...] DMD: https://github.com/dlang/dmd/blob/master/src/dmd/dinifile.d#L40 LDC: https://wiki.dlang.org/Using_LDC, https://github.com/dlang/dmd/blob/master/src/dmd/frontend.d#L97

Re: Find out druntime/import and phobos folder on Linux

2018-07-15 Thread Seb via Digitalmars-d-learn
On Saturday, 14 July 2018 at 17:19:20 UTC, Andre Pany wrote: Hi, The IntelliJ D Language plugin has support for D-scanner and DCD. Both tools needs to know the paths to druntime/import and Phobos source folder. In IntelliJ you set the path to the folder where dmd binary is located. Based on

Re: Orange not working?

2018-07-15 Thread Jacob Carlborg via Digitalmars-d-learn
On 2018-07-14 08:48, Timoses wrote: Could perhaps bump it to 2.0.1 ? @Jacob Done. -- /Jacob Carlborg

[Issue 19083] make target doc compile error: mach_header conflicts with other

2018-07-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19083 --- Comment #2 from Timoses --- (In reply to Seb from comment #1) > Have you tried building the docs from dlang.org? The individual doc targets > have been deprecated for a very long time already. Yes, I tried building the verbatim version. That

Re: Find out druntime/import and phobos folder on Linux

2018-07-15 Thread Timoses via Digitalmars-d-learn
On Saturday, 14 July 2018 at 19:04:01 UTC, Andre Pany wrote: On Saturday, 14 July 2018 at 19:00:56 UTC, Anonymouse wrote: On Saturday, 14 July 2018 at 17:19:20 UTC, Andre Pany wrote: Is there a way to find out both paths based on the dmd executable folder? What I found out so far, these