Improving http://dlang.org/library/index.html

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
I'm looking into ways to improve http://dlang.org/library/index.html. Specifically I want to remove (some of) the std.c modules or at least move them below, render the module names in code font, etc. Again, ddox is rather opaque. Is there a source for that page, or is it hardcoded somewhere?

Re: DConf 2015 Call for Submissions is now open

2015-01-11 Thread Walter Bright via Digitalmars-d-announce
On 1/11/2015 12:17 PM, Iain Buclaw via Digitalmars-d-announce wrote: I digress, I will have to sit down and write some things up and we'll see where I get. Looking forward to it!

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread via Digitalmars-d
On Sunday, 11 January 2015 at 17:44:59 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/downloads.daily.png that is. -- Andrei You could go a long way with a little tracking code on dlang.org. Just saying.

Foreach, return not exist the function.

2015-01-11 Thread Zaher Dirkey via Digitalmars-d
First time i used foreach with opApply in my classed, and i got this strange behavior. return e, not exit the function findClass i tried to reproduce it, but it is worked in reproduce example. but you can read it and read the result of writeln. I still feel it is my eyes or a small mistake.

Re: Sqlite

2015-01-11 Thread Paul via Digitalmars-d-learn
On Sunday, 11 January 2015 at 20:20:21 UTC, ketmar via Digitalmars-d-learn wrote: note the single quotes in your code: that is where it all goes wrong. i don't know where you got that quotes from, but this is not a valid SQL syntax for `CREATE TABLE`. ;-) Thank you, I thought it might be

Re: Build all combinations of strings

2015-01-11 Thread Nordlöw
On Sunday, 11 January 2015 at 18:01:09 UTC, bearophile wrote: Nordlöw: Is doCopy really needed as an argument here? Couldn't this be inferred from the mutability of T instead? doCopy is useful, if it's true all the permutation arrays are distinct and dup-ped, otherwise they are all

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread weaselcat via Digitalmars-d
On Sunday, 11 January 2015 at 19:42:38 UTC, ponce wrote: On Sunday, 11 January 2015 at 19:38:12 UTC, bearophile wrote: Are you always able to detect them? I think languages (and programmers) that don't have a strict attitude toward memory safety will be slowly left behind in the few next

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread weaselcat via Digitalmars-d
On Sunday, 11 January 2015 at 20:47:37 UTC, weaselcat wrote: On Sunday, 11 January 2015 at 19:42:38 UTC, ponce wrote: On Sunday, 11 January 2015 at 19:38:12 UTC, bearophile wrote: Are you always able to detect them? I think languages (and programmers) that don't have a strict attitude toward

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 12:28 PM, Ulrich =?UTF-8?B?S8O8dHRsZXIi?= kuett...@gmail.com wrote: On Sunday, 11 January 2015 at 17:44:59 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/downloads.daily.png that is. -- Andrei You could go a long way with a little tracking code on dlang.org. Just saying.

Re: Build all combinations of strings

2015-01-11 Thread Nordlöw
On Sunday, 11 January 2015 at 18:01:09 UTC, bearophile wrote: Is doCopy really needed as an argument here? Couldn't this be inferred from the mutability of T instead? doCopy is useful, if it's true all the permutation arrays are distinct and dup-ped, otherwise they are all different. It's

Re: Is anyone working on a D source code formatting tool?

2015-01-11 Thread Walter Bright via Digitalmars-d
On 1/11/2015 11:50 AM, Andrei Alexandrescu wrote: On 1/11/15 10:48 AM, Walter Bright wrote: The main problem is what to do about comments, which don't fit into the grammar. In the first version comments might go through unchanged. Consider: for /*comment*/ (a; b;

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread Paulo Pinto via Digitalmars-d
On Sunday, 11 January 2015 at 19:30:59 UTC, ponce wrote: On Sunday, 11 January 2015 at 18:25:39 UTC, francesco.cattoglio wrote: On Sunday, 11 January 2015 at 14:10:56 UTC, ponce wrote: None of them has Visual Studio integration with debugging support and that is pretty important for native and

Re: Build all combinations of strings

2015-01-11 Thread bearophile via Digitalmars-d-learn
Nordlöw: Couldn't we do a first pass and check that if elements of T are distinct and if so set doCopy to false otherwise true? The algorithm you have seen in Rosettacode doesn't care if and what items of the input sequence are duplicated, it handles them as they are all distinct. And them

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread weaselcat via Digitalmars-d
On Sunday, 11 January 2015 at 23:27:34 UTC, Nick B wrote: On Sunday, 11 January 2015 at 22:55:52 UTC, Andrei Alexandrescu wrote: On 1/11/15 2:54 PM, Nick B wrote: On Sunday, 11 January 2015 at 17:44:59 UTC, Andrei Alexandrescu wrote: Ionno how to measure that with the data we have. --

Re: Could D compete in a competition like this?

2015-01-11 Thread Rikki Cattermole via Digitalmars-d
On 12/01/2015 2:01 a.m., Gary Willoughby wrote: Could D compete in a competition like this? In a nutshell: We give you a bunch of ranked 2D points, then ask you to find the most important ones inside some randomly generated rectangles. Easy, right? Now make it fast, and you could get $5K!

Re: Improving http://dlang.org/library/index.html

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 4:28 PM, Peter Alexander wrote: On Sunday, 11 January 2015 at 23:54:16 UTC, Andrei Alexandrescu wrote: On 1/11/15 3:38 PM, Robert burner Schadek wrote: what about making it multi column like on http://en.cppreference.com/w/ A nice possibility, though I do like the entity + blurb

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread MattCoder via Digitalmars-d
On Sunday, 11 January 2015 at 23:27:34 UTC, Nick B wrote: Perhaps its better to have a number (average or mean) than no number. Just ask 50 or 100 uers (or more) for their number of downloads for the last 12 or 18 months. This is turn will give you a guess-estimate as to the size of the

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 4:33 PM, MattCoder wrote: On Sunday, 11 January 2015 at 23:27:34 UTC, Nick B wrote: Perhaps its better to have a number (average or mean) than no number. Just ask 50 or 100 uers (or more) for their number of downloads for the last 12 or 18 months. This is turn will give you a

Re: Why doesn't mktspec() use clock_gettime?

2015-01-11 Thread Jonathan M Davis via Digitalmars-d
On Friday, January 09, 2015 18:03:15 Andrei Alexandrescu via Digitalmars-d wrote: cc Sean Kelly https://github.com/D-Programming-Language/druntime/blob/master/src/core/sync/config.d#L28 Looks like that use has been disable with static if (false). What was the reason? A coworker spent a

Re: An idea for commercial support for D

2015-01-11 Thread Joakim via Digitalmars-d
On Sunday, 11 January 2015 at 19:27:15 UTC, Iain Buclaw via Digitalmars-d wrote: On 11 January 2015 at 16:23, Joakim via Digitalmars-d digitalmars-d@puremagic.com wrote: On Sunday, 11 January 2015 at 16:13:01 UTC, Dicebot wrote: There are very few monopolies in software, essentially none

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 2:54 PM, Nick B wrote: On Sunday, 11 January 2015 at 17:44:59 UTC, Andrei Alexandrescu wrote: On 1/11/15 9:43 AM, Andrei Alexandrescu wrote: I just regenerated the 28-day moving average graph: erdani.com/d/downloads.daily.png http://erdani.com/d/downloads.daily.png that is. --

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread Nick B via Digitalmars-d
On Sunday, 11 January 2015 at 22:55:52 UTC, Andrei Alexandrescu wrote: On 1/11/15 2:54 PM, Nick B wrote: On Sunday, 11 January 2015 at 17:44:59 UTC, Andrei Alexandrescu wrote: Ionno how to measure that with the data we have. -- Andrei Perhaps its better to have a number (average or mean)

Re: Is anyone working on a D source code formatting tool?

2015-01-11 Thread Walter Bright via Digitalmars-d
On 1/11/2015 5:53 PM, Brian Schott wrote: On Saturday, 10 January 2015 at 20:18:03 UTC, Walter Bright wrote: Has someone made a dfmt, like http://gofmt.com/ ? https://github.com/Hackerpilot/dfmt The above is the work of one afternoon and not well tested. That was quick!

Re: An idea for commercial support for D

2015-01-11 Thread Zach the Mystic via Digitalmars-d
On Sunday, 11 January 2015 at 16:02:59 UTC, Joakim wrote: You may be right that nobody else in the _D_ community sees the value, but engineers are notorious for being ignorant of business and economics, so nothing unusual if that's the case. Yeah, it seems to be a big deal. D may end up

Re: Is anyone working on a D source code formatting tool?

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 1:15 PM, Walter Bright wrote: On 1/11/2015 11:50 AM, Andrei Alexandrescu wrote: On 1/11/15 10:48 AM, Walter Bright wrote: The main problem is what to do about comments, which don't fit into the grammar. In the first version comments might go through unchanged. Consider: for

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread ponce via Digitalmars-d
On Sunday, 11 January 2015 at 21:19:35 UTC, Paulo Pinto wrote: On Sunday, 11 January 2015 at 19:30:59 UTC, ponce wrote: On Sunday, 11 January 2015 at 18:25:39 UTC, francesco.cattoglio wrote: On Sunday, 11 January 2015 at 14:10:56 UTC, ponce wrote: None of them has Visual Studio integration

Re: Improving http://dlang.org/library/index.html

2015-01-11 Thread Peter Alexander via Digitalmars-d
On Sunday, 11 January 2015 at 23:54:16 UTC, Andrei Alexandrescu wrote: On 1/11/15 3:38 PM, Robert burner Schadek wrote: what about making it multi column like on http://en.cppreference.com/w/ A nice possibility, though I do like the entity + blurb layout. -- Andrei Most of those blurbs add

core.stdc.* documentation

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
I just fixed documentation to generate docs for all symbols in core.stdc.complex. Looks unhelpful: http://erdani.com/d/library-prerelease/core/stdc/complex.html Any idea on how to make this better? Thanks, Andrei

Re: Could D compete in a competition like this?

2015-01-11 Thread Craig Dillabaugh via Digitalmars-d
On Sunday, 11 January 2015 at 13:10:12 UTC, Ola Fosheim Grøstad wrote: On Sunday, 11 January 2015 at 13:01:36 UTC, Gary Willoughby wrote: Could D compete in a competition like this? The guts will have to be done in assembly or Intel intrinsics... Why do you say that. Seems like picking the

Re: What's up with the windows headers?

2015-01-11 Thread Jonathan M Davis via Digitalmars-d
On Friday, January 02, 2015 21:57:08 Adam D. Ruppe via Digitalmars-d wrote: On Friday, 2 January 2015 at 21:48:34 UTC, Walter Bright wrote: When you find yourself inserting the necessary definitions manually in your code, file a PR as well to put them in windows.d. How would you feel

Re: ddox question

2015-01-11 Thread Kiith-Sa via Digitalmars-d
On Sunday, 11 January 2015 at 17:28:37 UTC, Andrei Alexandrescu wrote: On 1/11/15 3:03 AM, Mathias LANG wrote: On Saturday, 10 January 2015 at 17:23:24 UTC, Andrei Alexandrescu wrote: In the ddox-generated documentation the heading is e.g. Module std.container. I wanted to style std.container

Re: Improving http://dlang.org/library/index.html

2015-01-11 Thread Mathias LANG via Digitalmars-d
On Monday, 12 January 2015 at 00:15:18 UTC, Andrei Alexandrescu wrote: Thanks! Could someone please get on this? The few of us working on this can't do everything. Most of the work involved is highly parallelizable. Please? Please? With sugar on top? Thanks. Andrei I would love to, but

Re: core.stdc.* documentation

2015-01-11 Thread Kiith-Sa via Digitalmars-d
On Monday, 12 January 2015 at 00:29:49 UTC, Andrei Alexandrescu wrote: I just fixed documentation to generate docs for all symbols in core.stdc.complex. Looks unhelpful: http://erdani.com/d/library-prerelease/core/stdc/complex.html Any idea on how to make this better? Thanks, Andrei

Re: core.stdc.* documentation

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 5:04 PM, Kiith-Sa wrote: On Monday, 12 January 2015 at 00:29:49 UTC, Andrei Alexandrescu wrote: I just fixed documentation to generate docs for all symbols in core.stdc.complex. Looks unhelpful: http://erdani.com/d/library-prerelease/core/stdc/complex.html Any idea on how to make

Re: Using the TZ Database with Windows

2015-01-11 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, December 10, 2014 17:21:01 Jake via Digitalmars-d wrote: Hello, I'm doing some research with D concerning time zones and I need to be able to handle a single time zone style on both Windows and Linux. That pretty much leaves me with the IANA Time Zone Database. Has anyone

Re: Phobos Docs Questions

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 1:41 PM, Confused wrote: Recently I've seen documentation work, but am confused about some specifics. I've seen work and/or talk being done towards... 1. Improving the text of the documentation itself Yes please. 2. Improving ddoc with some Markdown capabilities We have

Re: ddox question

2015-01-11 Thread Mathias LANG via Digitalmars-d
On Sunday, 11 January 2015 at 22:19:01 UTC, Andrei Alexandrescu wrote: Thanks! Are there ways to override those? We need to make dlang.org independent of https://github.com/rejectedsoftware/ddox/. -- Andreo By default, it uses ddox's one, but they're overrideable (by defining a file with

Re: Improving http://dlang.org/library/index.html

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 4:01 PM, Mathias LANG wrote: On Sunday, 11 January 2015 at 20:22:02 UTC, Andrei Alexandrescu wrote: I'm looking into ways to improve http://dlang.org/library/index.html. Specifically I want to remove (some of) the std.c modules or at least move them below, render the module names in

Re: Improving http://dlang.org/library/index.html

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 4:37 PM, Mathias LANG wrote: On Monday, 12 January 2015 at 00:15:18 UTC, Andrei Alexandrescu wrote: Thanks! Could someone please get on this? The few of us working on this can't do everything. Most of the work involved is highly parallelizable. Please? Please? With sugar on top?

Re: Is anyone working on a D source code formatting tool?

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 4:37 PM, Walter Bright wrote: On 1/11/2015 1:31 PM, Andrei Alexandrescu wrote: On 1/11/15 1:15 PM, Walter Bright wrote: On 1/11/2015 11:50 AM, Andrei Alexandrescu wrote: On 1/11/15 10:48 AM, Walter Bright wrote: The main problem is what to do about comments, which don't fit into

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread Meta via Digitalmars-d
On Monday, 12 January 2015 at 00:33:52 UTC, Andrei Alexandrescu wrote: Answers from others would be helpful. Thanks! -- Andrei Usually once per beta and once per release.

Re: Is anyone working on a D source code formatting tool?

2015-01-11 Thread deadalnix via Digitalmars-d
On Saturday, 10 January 2015 at 20:18:03 UTC, Walter Bright wrote: Has someone made a dfmt, like http://gofmt.com/ ? That is amongst the plans for libd. I'd be happy to support anyone that want to work on it :)

Re: Make int[12] convertible to int[]

2015-01-11 Thread Jonathan M Davis via Digitalmars-d
On Friday, December 19, 2014 09:47:43 Shachar Shemesh via Digitalmars-d wrote: On 17/12/14 17:02, Adam D. Ruppe wrote: On Wednesday, 17 December 2014 at 13:13:43 UTC, Shachar Shemesh wrote: It just seems like extra unneeded superfluous unnecessary redundancy. It is somewhat important

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread Nick B via Digitalmars-d
On Sunday, 11 January 2015 at 17:44:59 UTC, Andrei Alexandrescu wrote: On 1/11/15 9:43 AM, Andrei Alexandrescu wrote: I just regenerated the 28-day moving average graph: erdani.com/d/downloads.daily.png http://erdani.com/d/downloads.daily.png that is. -- Andrei Looking at the chart it is

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread Kiith-Sa via Digitalmars-d
On Monday, 12 January 2015 at 00:33:52 UTC, Andrei Alexandrescu wrote: On 1/11/15 4:33 PM, MattCoder wrote: On Sunday, 11 January 2015 at 23:27:34 UTC, Nick B wrote: Perhaps its better to have a number (average or mean) than no number. Just ask 50 or 100 uers (or more) for their number of

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 1:39 PM, Ulrich =?UTF-8?B?S8O8dHRsZXIi?= kuett...@gmail.com wrote: On Sunday, 11 January 2015 at 20:56:51 UTC, Andrei Alexandrescu wrote: On 1/11/15 12:28 PM, Ulrich =?UTF-8?B?S8O8dHRsZXIi?= kuett...@gmail.com wrote: On Sunday, 11 January 2015 at 17:44:59 UTC, Andrei Alexandrescu

Please help me with documentation

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
... a la https://github.com/D-Programming-Language/phobos/pull/2867. Chip in - we need any improvement, small and large. -- Andrei

Re: ddox question

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 2:02 PM, Kiith-Sa wrote: On Sunday, 11 January 2015 at 17:28:37 UTC, Andrei Alexandrescu wrote: On 1/11/15 3:03 AM, Mathias LANG wrote: On Saturday, 10 January 2015 at 17:23:24 UTC, Andrei Alexandrescu wrote: In the ddox-generated documentation the heading is e.g. Module

Re: Sqlite

2015-01-11 Thread Tobias Pankrath via Digitalmars-d-learn
On Sunday, 11 January 2015 at 20:30:41 UTC, Paul wrote: On Sunday, 11 January 2015 at 20:20:21 UTC, ketmar via Digitalmars-d-learn wrote: note the single quotes in your code: that is where it all goes wrong. i don't know where you got that quotes from, but this is not a valid SQL syntax for

Re: Improving http://dlang.org/library/index.html

2015-01-11 Thread Robert burner Schadek via Digitalmars-d
what about making it multi column like on http://en.cppreference.com/w/

Re: Foreach, return not exist the function.

2015-01-11 Thread Ali Çehreli via Digitalmars-d
On 01/11/2015 12:25 PM, Zaher Dirkey wrote: reproduce example here http://dpaste.dzfl.pl/13fb453d0b1e That link doesn't work for me. (?) Does opApply return the delegate's return value ('b' below)? import std.stdio; struct S { int opApply(int delegate(int) dg) { foreach (i;

Re: Improving http://dlang.org/library/index.html

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
On 1/11/15 3:38 PM, Robert burner Schadek wrote: what about making it multi column like on http://en.cppreference.com/w/ A nice possibility, though I do like the entity + blurb layout. -- Andrei

Re: Is anyone working on a D source code formatting tool?

2015-01-11 Thread Walter Bright via Digitalmars-d
On 1/11/2015 1:31 PM, Andrei Alexandrescu wrote: On 1/11/15 1:15 PM, Walter Bright wrote: On 1/11/2015 11:50 AM, Andrei Alexandrescu wrote: On 1/11/15 10:48 AM, Walter Bright wrote: The main problem is what to do about comments, which don't fit into the grammar. In the first version comments

Re: Why exceptions for error handling is so important

2015-01-11 Thread Walter Bright via Digitalmars-d
On 1/11/2015 5:06 AM, Dicebot wrote: What is your opinion of approach advertised by various functional languages and now also Rust? Where you return error code packed with actual data and can't access data without visiting error code too, compiler simply won't allow it. It's a great question.

Re: Is anyone working on a D source code formatting tool?

2015-01-11 Thread deadalnix via Digitalmars-d
On Sunday, 11 January 2015 at 19:50:51 UTC, Andrei Alexandrescu wrote: A secondary problem is what to do when the line length limit is exceeded, such as for long expressions. I think that's problem #1. The usual way is to associate cost with various cesures and run something Dijkstra (or

Phobos Docs Questions

2015-01-11 Thread Confused via Digitalmars-d
Recently I've seen documentation work, but am confused about some specifics. I've seen work and/or talk being done towards... 1. Improving the text of the documentation itself 2. Improving ddoc with some Markdown capabilities 3. Moving Phobos docs to page-per-symbol 4. Adding adding discussion

Re: Utah Valley University is a sponsor of DConf 2015

2015-01-11 Thread Mengu via Digitalmars-d-announce
On Saturday, 10 January 2015 at 06:37:37 UTC, Ali Çehreli wrote: On 01/09/2015 03:33 PM, MattCoder wrote: a good excuse to take my visa!). :D I encourage everyone to apply for visa as soon as possible. US visa process can be frustratingly delayed depending on many unknown factors. Ali

Re: Improving http://dlang.org/library/index.html

2015-01-11 Thread Mathias LANG via Digitalmars-d
On Sunday, 11 January 2015 at 20:22:02 UTC, Andrei Alexandrescu wrote: I'm looking into ways to improve http://dlang.org/library/index.html. Specifically I want to remove (some of) the std.c modules or at least move them below, render the module names in code font, etc. Again, ddox is rather

Re: Improving http://dlang.org/library/index.html

2015-01-11 Thread Robert burner Schadek via Digitalmars-d
lets combine both there is enough space, something like || name | desc || name | desc ||

Re: Is anyone working on a D source code formatting tool?

2015-01-11 Thread Brian Schott via Digitalmars-d
On Saturday, 10 January 2015 at 20:18:03 UTC, Walter Bright wrote: Has someone made a dfmt, like http://gofmt.com/ ? https://github.com/Hackerpilot/dfmt The above is the work of one afternoon and not well tested.

Re: Is anyone working on a D source code formatting tool?

2015-01-11 Thread weaselcat via Digitalmars-d
On Sunday, 11 January 2015 at 21:16:41 UTC, Walter Bright wrote: On 1/11/2015 11:50 AM, Andrei Alexandrescu wrote: On 1/11/15 10:48 AM, Walter Bright wrote: The main problem is what to do about comments, which don't fit into the grammar. In the first version comments might go through

Re: Thoughts on replacement languages (Reddit + D)

2015-01-11 Thread via Digitalmars-d
On Sunday, 11 January 2015 at 20:56:51 UTC, Andrei Alexandrescu wrote: On 1/11/15 12:28 PM, Ulrich =?UTF-8?B?S8O8dHRsZXIi?= kuett...@gmail.com wrote: On Sunday, 11 January 2015 at 17:44:59 UTC, Andrei Alexandrescu wrote: http://erdani.com/d/downloads.daily.png that is. -- Andrei You could

Re: We're looking for a Software Developer! (D language)

2015-01-11 Thread Rikki Cattermole via Digitalmars-d-announce
On 9/01/2015 4:20 p.m., John Carter via Digitalmars-d-announce wrote: If you email me at john DOT carter AT taitradio DOT com we can take this conversation out of the D forum as it is going way off topic. On Fri, Jan 9, 2015 at 4:05 PM, Rikki Cattermole via Digitalmars-d-announce

Re: How to interface with C++ code or dll?

2015-01-11 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 11 January 2015 at 12:56:40 UTC, Suliman wrote: I had read about using C++ libs from D, and understood that there is 2 ways: 1. Make binding - convert .H to .d (I still do not fully understand what is it) 2. Use directly C++ lib (.dll) No, there are not two ways. There is one

Re: Is anyone working on a D source code formatting tool?

2015-01-11 Thread Zach the Mystic via Digitalmars-d
On Monday, 12 January 2015 at 00:38:20 UTC, Walter Bright wrote: On 1/11/15 10:48 AM, Walter Bright wrote: The main problem is what to do about comments, which don't fit into the grammar. In the first version comments might go through unchanged. Consider: for /*comment*/ (a;

Re: Why exceptions for error handling is so important

2015-01-11 Thread weaselcat via Digitalmars-d
On Monday, 12 January 2015 at 07:09:54 UTC, Tobias Müller wrote: Walter Bright newshou...@digitalmars.com wrote: On 1/11/2015 5:06 AM, Dicebot wrote: What is your opinion of approach advertised by various functional languages and now also Rust? Where you return error code packed with actual

Re: Foreach, return not exist the function.

2015-01-11 Thread Zaher Dirkey via Digitalmars-d
On Sunday, 11 January 2015 at 23:50:18 UTC, Ali Çehreli wrote: On 01/11/2015 12:25 PM, Zaher Dirkey wrote: reproduce example here http://dpaste.dzfl.pl/13fb453d0b1e That link doesn't work for me. (?) Does opApply return the delegate's return value ('b' below)? It must return object, but

Re: Why exceptions for error handling is so important

2015-01-11 Thread Walter Bright via Digitalmars-d
On 1/11/2015 11:09 PM, Tobias Müller wrote: - Error codes are automatically ignored - Exceptions are automatically propagated IMO both are not ideal and lead to sloppy programming. Ignoring errors is of course worse than aborting where you could have handled the error. Rust-style packed errors

Re: An idea for commercial support for D

2015-01-11 Thread Zach the Mystic via Digitalmars-d
On Monday, 12 January 2015 at 05:02:36 UTC, Joakim wrote: Yeah, it seems to be a big deal. D may end up needing what it doesn't appear to have: some business genius to go along with its language design prowess. The switching costs are far too high right now. Even the ideal programming language

New stuff: verbatim ddoc documents available

2015-01-11 Thread Andrei Alexandrescu via Digitalmars-d
I just put https://github.com/D-Programming-Language/dlang.org/pull/760 out and also generated and uploaded verbatim ddoc files for dlang.org (sans /phobos/, only /phobos-prerelease/). For each document on the website, if you replace .html with .verbatim as the suffix, you'll see ddoc macros

Re: Why exceptions for error handling is so important

2015-01-11 Thread Tobias Pankrath via Digitalmars-d
On Monday, 12 January 2015 at 00:51:25 UTC, Walter Bright wrote: It's a great question. I have a lot of experience with error codes, and with exceptions. I have zero with the packed scheme, though that doesn't stop me from having an opinion :-) Perhaps I misunderstand, but given A calls B

Re: Why exceptions for error handling is so important

2015-01-11 Thread Tobias Müller via Digitalmars-d
Walter Bright newshou...@digitalmars.com wrote: On 1/11/2015 5:06 AM, Dicebot wrote: What is your opinion of approach advertised by various functional languages and now also Rust? Where you return error code packed with actual data and can't access data without visiting error code too,

Writing a small linux binary

2015-01-11 Thread NVolcz via Digitalmars-d
Can this be done in D? How easy is it? What about the runtime? https://www.reddit.com/r/programming/comments/2s1sgg/151byte_static_linux_binary_in_rust/ Best regards, NVolcz

Re: Could D compete in a competition like this?

2015-01-11 Thread via Digitalmars-d
On Monday, 12 January 2015 at 03:35:32 UTC, Craig Dillabaugh wrote: On Sunday, 11 January 2015 at 13:10:12 UTC, Ola Fosheim Grøstad wrote: On Sunday, 11 January 2015 at 13:01:36 UTC, Gary Willoughby wrote: Could D compete in a competition like this? The guts will have to be done in assembly

Re: Ready to make page-per-item ddocs the default?

2015-01-11 Thread Mathias LANG via Digitalmars-d
On Sunday, 11 January 2015 at 19:52:42 UTC, Andrei Alexandrescu wrote: On 1/11/15 11:26 AM, Steven Schveighoffer wrote: On 1/9/15 4:17 PM, Andrei Alexandrescu wrote: On 1/9/15 12:59 PM, Jacob Carlborg wrote: On 2015-01-09 20:46, Andrei Alexandrescu wrote: Stuff's up!

Re: Sqlite

2015-01-11 Thread Paul via Digitalmars-d-learn
On Sunday, 11 January 2015 at 22:19:28 UTC, Tobias Pankrath wrote: Hint: Put the SQL in a file create_people.sql and import it into your code via the import statement: string sql = import(create_people.sql); // you'll need a correct -J compiler switch That way you can easily test if it's

Re: endsWith - for a string vs an array of strings

2015-01-11 Thread Mengu via Digitalmars-d-learn
On Saturday, 10 January 2015 at 23:32:47 UTC, bearophile wrote: Laeeth Isharc: In D there is a feature that allows a function to accept both an array of items and items, yes - it is funny there is not an overloading that accepts arrays I meant this D feature: void foo(T)(T[] items...) {

<    1   2