Re: Error: variable i cannot be read at compile time

2018-01-07 Thread Vino via Digitalmars-d-learn
On Monday, 8 January 2018 at 05:38:44 UTC, thedeemon wrote: On Sunday, 7 January 2018 at 17:30:26 UTC, Vino wrote: I tried to manipulate the writeln's as below but the output is not as expected as it prints the data in row wise, where as we need it in column wise. You've said before you

[Issue 18202] Show TOC overview in the dlang specification pages

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18202 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/c3405730008513b49e8c50ac7806571b3865195c Add header TOC generation Fix Issue 18202 - Show

[Issue 18202] Show TOC overview in the dlang specification pages

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

Re: ArithEval v0.5.0 released

2018-01-07 Thread thedeemon via Digitalmars-d-announce
On Sunday, 7 January 2018 at 20:41:57 UTC, Dechcaudron wrote: It allows the runtime evaluation of simple math expressions like `1 + 2 * 3` or `1 ^ foo`, with foo being given values at run time. That's a nice exercise in using Pegged. Reminds me of another Pegged-based calculator with

Re: Error: variable i cannot be read at compile time

2018-01-07 Thread thedeemon via Digitalmars-d-learn
On Sunday, 7 January 2018 at 17:30:26 UTC, Vino wrote: I tried to manipulate the writeln's as below but the output is not as expected as it prints the data in row wise, where as we need it in column wise. You've said before you need 6 different files, not some tables. Also, after the

Re: LDC 1.7.0

2018-01-07 Thread German Diago via Digitalmars-d-announce
On Sunday, 7 January 2018 at 12:22:17 UTC, John Colvin wrote: On Saturday, 6 January 2018 at 16:25:46 UTC, German Diago wrote: - want no gc? Ok, at least there is BetterC, so if I invest myself quite a bit on D (I am the kind of programmer that likes to squeeze power out of machines, so this

Re: LDC 1.7.0

2018-01-07 Thread German Diago via Digitalmars-d-announce
On Monday, 8 January 2018 at 03:14:32 UTC, Joakim wrote: On Saturday, 6 January 2018 at 16:25:46 UTC, German Diago wrote: negative points also as I use it :p. By the way, and a bit off-topic for the post, but, if I want to port my code to run on Android/iOS, what is the recommended way? 1.

Re: Is old style compile-time foreach redundant?

2018-01-07 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/6/18 6:25 PM, Ali Çehreli wrote: Is 'static foreach' sufficient for all needs or is there any value for regular foreach over compile-time sequences? If you use continues or breaks, then you need to switch to gotos if using static foreach, as it does not support them directly. -Steve

Re: LDC 1.7.0

2018-01-07 Thread Joakim via Digitalmars-d-announce
On Saturday, 6 January 2018 at 16:25:46 UTC, German Diago wrote: negative points also as I use it :p. By the way, and a bit off-topic for the post, but, if I want to port my code to run on Android/iOS, what is the recommended way? 1. create a shared library and consume it? Is that possible

Re: Dscanner: intentionally unused variable

2018-01-07 Thread Ivan Trombley via Digitalmars-d
On Sunday, 7 January 2018 at 17:02:02 UTC, visitor wrote: It seems a simple underscore "_" as a variable name tells Dscanner exactly that. Any number of underscores but underscores only apparently. That works too. Thanks.

Re: AliasSeq seems to compile slightly faster with static foreach

2018-01-07 Thread Jonathan M Davis via Digitalmars-d
On Friday, January 05, 2018 06:10:25 Jonathan M Davis via Digitalmars-d wrote: > There was a recent PR for Phobos where Seb added static to a bunch of > foreach's that used AliasSeq. It hadn't actually occurred to me that that > was legal (I've basically just been using static foreach where

Unexpected OPTLINK Termination

2018-01-07 Thread Bastiaan Veelo via Digitalmars-d
Can anybody reproduce this, with dmd 2.078.0 on Windows: mkdir ddox cd ddox dub init dub build -b ddox A popup appears with Unexpected OPTLINK Termination at EIP=0040F60A EAX=0805 EBX=00438C70 ECX=09B3 EDX=03D7 ESI=009F EDI=08051934 EBP=0019FF38 ESP=0019FEF0

Re: New D technique - disable usage of "new" and "delete"

2018-01-07 Thread jmh530 via Digitalmars-d
On Friday, 5 January 2018 at 20:51:14 UTC, Basile B. wrote: Yeah, i didn't explain correctly the mixin thing. The mixin would be used to disable "new" and "delete", e.g enum disableNewAndDelete = "@disable new (size_t size){return null;} @disable delete (void* p){}"; and then you mix it

[Issue 18206] New: Deprecate duplicated overloads in DRuntime

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18206 Issue ID: 18206 Summary: Deprecate duplicated overloads in DRuntime Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW Severity: normal

Re: Memory Dump in D

2018-01-07 Thread codephantom via Digitalmars-d
On Sunday, 7 January 2018 at 11:05:01 UTC, H3XT3CH wrote: Hello i want to create a memory dump in D. The memory dump is for forensic usage so it must a dump of the complete ram. Can anyone help me ? I know that programms already exist that create correct dumps of my memory but i want to

Re: AliasSeq seems to compile slightly faster with static foreach

2018-01-07 Thread Jonathan M Davis via Digitalmars-d
On Sunday, January 07, 2018 09:59:30 Timon Gehr via Digitalmars-d wrote: > On 05.01.2018 14:10, Jonathan M Davis wrote: > > Taking it a step further, I tried switching some of the static foreach's > > over to using array literals, since they held values rather than types, > > and that seemed to

Re: Dll support: testers needed

2018-01-07 Thread solidstate1991 via Digitalmars-d
On Saturday, 6 January 2018 at 19:32:51 UTC, Benjamin Thaut wrote: I'm currently back on dll support and I'm applying finishing touches to my dll support PR. Now I want to know if I missed any corner cases and it would be great if a few more people gave the dll support a try. -To try it out

Re: ArithEval v0.5.0 released

2018-01-07 Thread angel via Digitalmars-d-announce
On Sunday, 7 January 2018 at 20:41:57 UTC, Dechcaudron wrote: Updating this library I coded more than a year ago, so that I could use it as an optional dependency of the coming up dli library. It allows the runtime evaluation of simple math expressions like `1 + 2 * 3` or `1 ^ foo`, with foo

Re: Memory Dump in D

2018-01-07 Thread sarn via Digitalmars-d
On Sunday, 7 January 2018 at 15:40:36 UTC, H3XT3CH wrote: I need it for windows and linux but primary for windows On *nix this is traditionally called a "core dump". A quick search will get you lots of tutorials. Most distros today disable core dumps with ulimit. Run "help ulimit" and

Re: Alias Vs. Enum?

2018-01-07 Thread sarn via Digitalmars-d
On Sunday, 7 January 2018 at 18:30:17 UTC, Simen Kjærås wrote: Instead of doing that silly dance, alias should simply take values as well. Also, using "enum" for manifest constants makes sense for people familiar with C idiom, but often confuses people coming from different languages.

Re: iopipe alpha 0.0.1 version

2018-01-07 Thread Bastiaan Veelo via Digitalmars-d-announce
On Monday, 16 October 2017 at 20:58:43 UTC, Martin Nowak wrote: On Friday, 13 October 2017 at 17:08:18 UTC, Steven Schveighoffer wrote: I keep https://github.com/MartinNowak/bloom also as example/scaffold repo, it's using an automated docs setup with gh-branches. Just create a doc deployment

ArithEval v0.5.0 released

2018-01-07 Thread Dechcaudron via Digitalmars-d-announce
Updating this library I coded more than a year ago, so that I could use it as an optional dependency of the coming up dli library. It allows the runtime evaluation of simple math expressions like `1 + 2 * 3` or `1 ^ foo`, with foo being given values at run time. It was never announced in

[Issue 18205] Format string with width specification doesn't work with multibyte characters

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18205 Basile B. changed: What|Removed |Added Keywords||pull

[Issue 18205] Format string with width specification doesn't work with multibyte characters

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18205 dran...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: Alias Vs. Enum?

2018-01-07 Thread Simen Kjærås via Digitalmars-d
On Sunday, 7 January 2018 at 03:52:53 UTC, Stefan Koch wrote: The compiler can only alias to symbols and not to values. therefore enum was chosen for manifest constants. That alias can bind to values in template-parameters is useful but not exactly consistent :) Not only that, but alias can

[Issue 18205] Format string with width specification doesn't work with multibyte characters

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18205 --- Comment #1 from dran...@gmail.com --- The current behaviour seems to be by design, according to this unittest assert from Phobos (std.format#L5779): assert(format("%8s", "b\u00e9ll\u00f4") == " b\u00e9ll\u00f4"); The length of the tested string

Re: Error: variable i cannot be read at compile time

2018-01-07 Thread Vino via Digitalmars-d-learn
On Sunday, 7 January 2018 at 17:23:20 UTC, thedeemon wrote: On Sunday, 7 January 2018 at 12:59:10 UTC, Vino wrote: Just noticed that the output writes the data and key as 2 values , but the requirnment is to write to six files, e.g That's the part you can implement yourself. Just replace

Re: Memory Dump in D

2018-01-07 Thread Benjamin Thaut via Digitalmars-d
Am 07.01.2018 um 16:40 schrieb H3XT3CH: I need it for windows and linux but primary for windows On windows there is the MiniDumpWriteDump function: https://msdn.microsoft.com/en-us/library/windows/desktop/ms680360(v=vs.85).aspx This might sound misleading but besides being able to write

Re: Error: variable i cannot be read at compile time

2018-01-07 Thread thedeemon via Digitalmars-d-learn
On Sunday, 7 January 2018 at 12:59:10 UTC, Vino wrote: Just noticed that the output writes the data and key as 2 values , but the requirnment is to write to six files, e.g That's the part you can implement yourself. Just replace those writelns with writing to corresponding files.

Re: Some Observations on the D Development Process

2018-01-07 Thread Iain Buclaw via Digitalmars-d
On 7 January 2018 at 17:52, Random D user via Digitalmars-d wrote: > On Friday, 5 January 2018 at 03:28:10 UTC, Walter Bright wrote: >> >> On 1/4/2018 2:34 AM, Mike Franklin wrote: >>> >>> Walter seems to pop in daily, and occasionally reviews PRs, and his PRs >>> of

Re: The D Blog in 2017

2018-01-07 Thread Mengu via Digitalmars-d-announce
On Saturday, 6 January 2018 at 16:08:06 UTC, Mike Parker wrote: My annual retrospective on the D Blog is up. Managing the blog really is a lot of fun for me. Every time I click the publish button I stay glued to reddit and the stats page to see how it's being received, with a glance now and

Column wise output

2018-01-07 Thread Vino via Digitalmars-d-learn
HI All, Request your help, in the below code the output from main (writeln(columns[0][])) function is like ["Miller", "John", "Millman", "Zsuwalski"] where as the writeln(col[0]) from the function master is as below, so how do i get the output same as in main from the function master.

Re: Dscanner: intentionally unused variable

2018-01-07 Thread visitor via Digitalmars-d
On Sunday, 7 January 2018 at 16:29:42 UTC, visitor wrote: On Sunday, 7 January 2018 at 16:14:11 UTC, Jacob Carlborg wrote: On 2018-01-07 01:18, Ivan Trombley wrote: Is there a way tell dscanner that a variable is intentionally unused? I don't know about D-Scanner but I know that other

Re: Some Observations on the D Development Process

2018-01-07 Thread Random D user via Digitalmars-d
On Friday, 5 January 2018 at 03:28:10 UTC, Walter Bright wrote: On 1/4/2018 2:34 AM, Mike Franklin wrote: Walter seems to pop in daily, and occasionally reviews PRs, and his PRs of late are mostly just refactorings rather than fixing difficult bugs. There's a lot of technical debt I've been

Re: Dscanner: intentionally unused variable

2018-01-07 Thread visitor via Digitalmars-d
On Sunday, 7 January 2018 at 16:14:11 UTC, Jacob Carlborg wrote: On 2018-01-07 01:18, Ivan Trombley wrote: Is there a way tell dscanner that a variable is intentionally unused? I don't know about D-Scanner but I know that other similar tools allow you to prefix the name of a variable with

[Issue 18205] New: Format string with width specification doesn't work with multibyte characters

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18205 Issue ID: 18205 Summary: Format string with width specification doesn't work with multibyte characters Product: D Version: D2 Hardware: All URL: http://dlang.org/

Re: Dscanner: intentionally unused variable

2018-01-07 Thread Jacob Carlborg via Digitalmars-d
On 2018-01-07 01:18, Ivan Trombley wrote: While working with SDL, I found that I kept using the same pattern over and over: - Get the current clip rectangle. - Set a new clip rectangle. - restore the old clip rectangle on scope (exit). Instead of writing that code again and again, I wrote a

Re: D client for ROS

2018-01-07 Thread thinwybk via Digitalmars-d
On Sunday, 17 December 2017 at 14:16:14 UTC, Johan Engelen wrote: On Wednesday, 22 November 2017 at 22:16:12 UTC, thinwybk wrote: Andrei thought it could be a good GSoC project. It may take a bit of effort to define the project such that the D community at large can benefit from it. I'm

Re: Memory Dump in D

2018-01-07 Thread H3XT3CH via Digitalmars-d
On Sunday, 7 January 2018 at 14:50:30 UTC, Benjamin Thaut wrote: Am 07.01.2018 um 12:05 schrieb H3XT3CH: Hello i want to create a memory dump in D. The memory dump is for forensic usage so it must a dump of the complete ram. Can anyone help me ? I know that programms already exist that create

[Issue 18204] Use MonoTime for timing of profile tracing runtime

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18204 Steven Schveighoffer changed: What|Removed |Added CC|

[Issue 16017] package functions show up in std.experimental.allocator.common docs

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16017 Seb changed: What|Removed |Added Keywords||ddoc, pull

[Issue 11882] more anchors for documentation

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11882 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 18204] New: Use MonoTime for timing of profile tracing runtime

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18204 Issue ID: 18204 Summary: Use MonoTime for timing of profile tracing runtime Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: Memory Dump in D

2018-01-07 Thread Benjamin Thaut via Digitalmars-d
Am 07.01.2018 um 12:05 schrieb H3XT3CH: Hello i want to create a memory dump in D. The memory dump is for forensic usage so it must a dump of the complete ram. Can anyone help me ? I know that programms already exist that create correct dumps of my memory but i want to understand how it works

[Issue 8196] Compiler pages are missing -nofloat flag

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

[Issue 14631] Hide deprecated modules

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14631 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 11985] dlang.org does not have digitalmars.com info on -profile

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

[Issue 13557] syslog.d missing in DMD Fedora package

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13557 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: Dll support: testers needed

2018-01-07 Thread Benjamin Thaut via Digitalmars-d
Am 07.01.2018 um 00:42 schrieb Rubn: Looks good. If you want testers though, providing binaries would be beneficial. Compiling dmd/druntime/phobos on Windows can be a pain. I made a binary distribution. I updated http://stuff.benjamin-thaut.de/D/getting_started.html with the details. --

Re: Dll support: testers needed

2018-01-07 Thread Benjamin Thaut via Digitalmars-d
Am 07.01.2018 um 15:08 schrieb MrSmith: Does the implementation support dynamically loaded dlls? Yes. There is even a test for it -- Kind Regards Benjamin Thaut

[Issue 15067] Broken links on D1 web site

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

[Issue 12210] dlang.org home page example - Run button does not work

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12210 Issue 12210 depends on issue 15051, which changed state. Issue 15051 Summary: Code that runs fine on dpaste.dzfl.pl refuses to run on dlang.org https://issues.dlang.org/show_bug.cgi?id=15051 What|Removed |Added

[Issue 15050] DPaste is always passing an empty second argument to programs

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15050 Seb changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC|

[Issue 15051] Code that runs fine on dpaste.dzfl.pl refuses to run on dlang.org

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15051 Seb changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC|

[Issue 12210] dlang.org home page example - Run button does not work

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12210 Issue 12210 depends on issue 15050, which changed state. Issue 15050 Summary: DPaste is always passing an empty second argument to programs https://issues.dlang.org/show_bug.cgi?id=15050 What|Removed |Added

[Issue 15178] "Try D" widget on homepage mangles Unicode

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15178 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 16159] Put the newest entry of the official Blog on the frontpage

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16159 Seb changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14475] man page is outdated

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14475 Seb changed: What|Removed |Added Keywords||pull CC|

[Issue 17025] integrate dmd docs on dlang.org

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17025 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 18192] [404 Not Found] Broken link in D's Gems

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18192 Seb changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: Finding ElementType

2018-01-07 Thread Bastiaan Veelo via Digitalmars-d-learn
On Sunday, 7 January 2018 at 13:50:23 UTC, Adam D. Ruppe wrote: On Sunday, 7 January 2018 at 12:40:22 UTC, Bastiaan Veelo wrote: 1) Should we have a reference in the docs for std.traits to std.range.primitive : ElementType? wouldn't hurt i guess 2) Should phobos contain a version without the

Re: Dll support: testers needed

2018-01-07 Thread MrSmith via Digitalmars-d
On Saturday, 6 January 2018 at 19:32:51 UTC, Benjamin Thaut wrote: You can find a quick start guide here: http://stuff.benjamin-thaut.de/D/getting_started.html If you need more information and examples take a look here: https://github.com/Ingrater/DIPs/blob/ReviveDIP45/DIPs/DIP45.md Does the

Re: Finding ElementType

2018-01-07 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 7 January 2018 at 12:40:22 UTC, Bastiaan Veelo wrote: 1) Should we have a reference in the docs for std.traits to std.range.primitive : ElementType? wouldn't hurt i guess 2) Should phobos contain a version without the special narrow string behavior? see ElementEncodingType

Re: Help optimizing UnCompress for gzipped files

2018-01-07 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/6/18 11:14 AM, Christian Köstlin wrote: On 05.01.18 23:04, Steven Schveighoffer wrote: One thing to try, you preallocate the ENTIRE buffer. This only works if you know how many bytes it will decompress to (not always possible), but it will take the allocator out of the equation completely.

Re: How do you use D?

2018-01-07 Thread Bastiaan Veelo via Digitalmars-d
On Thursday, 4 January 2018 at 15:52:15 UTC, Andre Pany wrote: My hobby project is to create a bridge between the Embarcadero RAD Studion (Delphi) and D. The idea is to use all functionality from Delphi and RAD Studio (GUI designer, thousands of libraries) without writing one 1 line Pascal but

Re: ANSI D or ISO D

2018-01-07 Thread Bastiaan Veelo via Digitalmars-d
On Sunday, 7 January 2018 at 13:15:44 UTC, Bastiaan Veelo wrote: On Sunday, 7 January 2018 at 11:49:52 UTC, BSaidus wrote: Hello; Is D programming language will be standardized some day ?? Thanks. See https://forum.dlang.org/post/amplsndnksyowwayr...@forum.dlang.org And

Re: ANSI D or ISO D

2018-01-07 Thread Bastiaan Veelo via Digitalmars-d
On Sunday, 7 January 2018 at 11:49:52 UTC, BSaidus wrote: Hello; Is D programming language will be standardized some day ?? Thanks. See https://forum.dlang.org/post/amplsndnksyowwayr...@forum.dlang.org

Re: Error: variable i cannot be read at compile time

2018-01-07 Thread Vino via Digitalmars-d-learn
On Sunday, 7 January 2018 at 12:09:32 UTC, Vino wrote: On Saturday, 6 January 2018 at 15:32:14 UTC, thedeemon wrote: On Saturday, 6 January 2018 at 06:47:33 UTC, Vino wrote: [...] Here's a version with Array, it's very similar: import std.algorithm: countUntil, joiner, sort, uniq, map;

Finding ElementType

2018-01-07 Thread Bastiaan Veelo via Digitalmars-d-learn
The learn forum is great not only for asking questions, but also for learning from the questions by others: I just learned about the existence of std.range.primitives: ElementType, a function that I have looked for in phobos before, without finding it. I had expected this to be in std.traits

Re: LDC 1.7.0

2018-01-07 Thread John Colvin via Digitalmars-d-announce
On Saturday, 6 January 2018 at 16:25:46 UTC, German Diago wrote: - want no gc? Ok, at least there is BetterC, so if I invest myself quite a bit on D (I am the kind of programmer that likes to squeeze power out of machines, so this always means that I will not consider VM languages), I will

Re: Passing Template to Function

2018-01-07 Thread Vino via Digitalmars-d-learn
On Saturday, 6 January 2018 at 15:26:30 UTC, Vino wrote: Hi All, Request you help on the below program as it error out with the below error [...] Hi All, Thank you was able to resolve the issue. From, Vino.B

Re: Error: variable i cannot be read at compile time

2018-01-07 Thread Vino via Digitalmars-d-learn
On Saturday, 6 January 2018 at 15:32:14 UTC, thedeemon wrote: On Saturday, 6 January 2018 at 06:47:33 UTC, Vino wrote: [...] Here's a version with Array, it's very similar: import std.algorithm: countUntil, joiner, sort, uniq, map; import std.csv: csvReader; import std.stdio: File, writeln;

Re: ANSI D or ISO D

2018-01-07 Thread rikki cattermole via Digitalmars-d
On 07/01/2018 11:49 AM, BSaidus wrote: Hello; Is D programming language will be standardized some day ?? Thanks. We definitely could do with it (our spec is a massive mess and definitely inaccurate). But no, it isn't on the agenda.

ANSI D or ISO D

2018-01-07 Thread BSaidus via Digitalmars-d
Hello; Is D programming language will be standardized some day ?? Thanks.

Re: C++ Interop

2018-01-07 Thread Laeeth Isharc via Digitalmars-d-learn
On Saturday, 6 January 2018 at 11:17:56 UTC, Seb wrote: On Friday, 5 January 2018 at 13:02:12 UTC, qznc wrote: I'm exploring [0] C++ interop after watching Walter's presentation [1]. [...] I know about this: https://github.com/Remedy-Entertainment/binderoo

Re: -L--demangle=dlang doesn't work

2018-01-07 Thread Venkat via Digitalmars-d-learn
Yes, thanks Mike. I have 2.24 installed. Now I have to figure out how I can upgrade binutils without a distro upgrade. :)

Memory Dump in D

2018-01-07 Thread H3XT3CH via Digitalmars-d
Hello i want to create a memory dump in D. The memory dump is for forensic usage so it must a dump of the complete ram. Can anyone help me ? I know that programms already exist that create correct dumps of my memory but i want to understand how it works and how to work with my dumps

[Issue 18203] New: Accessing accessing out parameters in an 'in' contract

2018-01-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18203 Issue ID: 18203 Summary: Accessing accessing out parameters in an 'in' contract Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: Dscanner: intentionally unused variable

2018-01-07 Thread Ivan Trombley via Digitalmars-d
On Sunday, 7 January 2018 at 03:41:18 UTC, SimonN wrote: Another way would be to have the RAII wrapper in a with statement, but it produces extra indentation, which you might not like: with (MyStruct(100, 200)) { // code that uses the new clip rectangle } -- Simon This

Re: Dscanner: intentionally unused variable

2018-01-07 Thread Ivan Trombley via Digitalmars-d
On Sunday, 7 January 2018 at 08:46:40 UTC, Basile B. wrote: More simple is to understand D-Scanner limitations and accept that warnings are only warnings and that a message doesn't necessarily mean that there's something to do. If the output is clogged with warnings then it's more difficult

Re: Dll support: testers needed

2018-01-07 Thread Benjamin Thaut via Digitalmars-d
Am 07.01.2018 um 03:57 schrieb rikki cattermole: > +infinity > > Few things I would like answered: > > - Why -useShared and not -fPIC? >- If -useShared why not use it on *nix to turn on -fPIC? Because the DIP says that -useshared and -fPIC are loosley comparable. This does not mean that

Re: AliasSeq seems to compile slightly faster with static foreach

2018-01-07 Thread Timon Gehr via Digitalmars-d
On 05.01.2018 14:10, Jonathan M Davis wrote: Taking it a step further, I tried switching some of the static foreach's over to using array literals, since they held values rather than types, and that seemed to have minimal impact on the time to run dub test. However, by switching to using

Re: Dscanner: intentionally unused variable

2018-01-07 Thread Basile B. via Digitalmars-d
On Sunday, 7 January 2018 at 00:18:27 UTC, Ivan Trombley wrote: While working with SDL, I found that I kept using the same pattern over and over: - Get the current clip rectangle. - Set a new clip rectangle. - restore the old clip rectangle on scope (exit). Instead of writing that code again

Re: Dscanner: intentionally unused variable

2018-01-07 Thread Basile B. via Digitalmars-d
On Sunday, 7 January 2018 at 00:22:15 UTC, H. S. Teoh wrote: On Sun, Jan 07, 2018 at 12:18:27AM +, Ivan Trombley via Digitalmars-d wrote: While working with SDL, I found that I kept using the same pattern over and over: - Get the current clip rectangle. - Set a new clip rectangle. -