Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread H. S. Teoh
On Tue, Jul 09, 2013 at 05:07:59PM -0700, H. S. Teoh wrote: [...] > I forked GDMD on github and took a first stab at D-ifying it: > > https://github.com/quickfur/GDMD/tree/dport [...] Update: - Fixed the path issues raised earlier (thanks for all the feedback!) - I've added a whole bunch m

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Kagamin
Also this getexecname function is a good candidate for std.process.

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Kagamin
On Wednesday, 10 July 2013 at 15:25:02 UTC, Johannes Pfau wrote: Getting the real application path is not simple and not portable, but if you really want to do that: http://stackoverflow.com/questions/933850/how-to-find-the-location-of-the-executable-in-c http://stackoverflow.com/questions/1023

[Bug 64] Build warnings in gcc.

2013-07-10 Thread gdc-bugzilla
http://bugzilla.gdcproject.org/show_bug.cgi?id=64 --- Comment #8 from Iain Buclaw 2013-07-10 18:45:53 UTC --- Thanks Johannes, though I seem to have been given the credit in the debian changelog. :-P http://ftp-master.metadata.debian.org/changelogs/main/g/gcc-4.8/unstable_changelog -- Configu

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Johannes Pfau
Am Wed, 10 Jul 2013 18:23:54 +0200 schrieb Joseph Rushton Wakeling : > On 07/10/2013 05:25 PM, Johannes Pfau wrote: > > Getting the real application path is not simple and not portable, > > but if you really want to do that: > > I found the same links and was wondering about that, but to be hones

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread H. S. Teoh
On Wed, Jul 10, 2013 at 06:23:54PM +0200, Joseph Rushton Wakeling wrote: > On 07/10/2013 05:25 PM, Johannes Pfau wrote: > > Getting the real application path is not simple and not portable, > > but if you really want to do that: > > I found the same links and was wondering about that, but to be ho

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Joseph Rushton Wakeling
On 07/10/2013 05:25 PM, Johannes Pfau wrote: > Getting the real application path is not simple and not portable, but > if you really want to do that: I found the same links and was wondering about that, but to be honest -- I think Iain is right and this kind of stuff is overkill. Let gdmd just be

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Johannes Pfau
Am Wed, 10 Jul 2013 07:14:27 -0700 schrieb "H. S. Teoh" : > I actually thought about this before I wrote what I did; the reason I > didn't do it, was because what the original script *appeared* to be > doing (I didn't check, so I'm not sure) is to first identify itself > (find the path to itself)

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Iain Buclaw
On 10 July 2013 15:14, H. S. Teoh wrote: > On Wed, Jul 10, 2013 at 03:39:48PM +0200, eles wrote: >> On Wednesday, 10 July 2013 at 12:58:41 UTC, Iain Buclaw wrote: >> >On 10 July 2013 13:14, eles wrote: >> >>On Wednesday, 10 July 2013 at 12:03:06 UTC, eles wrote: >> >>Quick and unportable (Linux-o

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread H. S. Teoh
On Wed, Jul 10, 2013 at 10:03:40AM +0200, Joseph Rushton Wakeling wrote: > On 07/10/2013 02:07 AM, H. S. Teoh wrote: > > I forked GDMD on github and took a first stab at D-ifying it: > > > > https://github.com/quickfur/GDMD/tree/dport > > Nice -- I'll try and have a play with that later :-) >

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread H. S. Teoh
On Wed, Jul 10, 2013 at 03:39:48PM +0200, eles wrote: > On Wednesday, 10 July 2013 at 12:58:41 UTC, Iain Buclaw wrote: > >On 10 July 2013 13:14, eles wrote: > >>On Wednesday, 10 July 2013 at 12:03:06 UTC, eles wrote: > >>Quick and unportable (Linux-only) drop-in replacement: > >> > > > >Christ on

Re: unittests failures: constant folding of cos function gives different result then function call

2013-07-10 Thread Iain Buclaw
On 9 July 2013 17:08, Johannes Pfau wrote: > One of the tests in std.complex is failing because cos(LITERAL) and > cos(VARIABLE) return different results. AFAICS this happens only if the > parameter doesn't fit in 80bits and needs to be rounded. If > LITERAL/VARIABLE are values which fit exactly i

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread eles
On Wednesday, 10 July 2013 at 12:58:41 UTC, Iain Buclaw wrote: On 10 July 2013 13:14, eles wrote: On Wednesday, 10 July 2013 at 12:03:06 UTC, eles wrote: Quick and unportable (Linux-only) drop-in replacement: Christ on a bike. What's wrong with: import std.file; import std.process : enviro

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Iain Buclaw
On 10 July 2013 13:14, eles wrote: > On Wednesday, 10 July 2013 at 12:03:06 UTC, eles wrote: >> >> On Wednesday, 10 July 2013 at 10:24:17 UTC, Joseph Rushton Wakeling wrote: >>> >>> On 07/10/2013 02:07 AM, H. S. Teoh wrote: Comments / flames / pull requests welcome. ;-) >>> >>> >>>st

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread eles
On Wednesday, 10 July 2013 at 12:20:14 UTC, eles wrote: On Wednesday, 10 July 2013 at 12:14:39 UTC, eles wrote: On Wednesday, 10 July 2013 at 12:03:06 UTC, eles wrote: On Wednesday, 10 July 2013 at 10:24:17 UTC, Joseph Rushton Wakeling wrote: On 07/10/2013 02:07 AM, H. S. Teoh wrote: Comments

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread eles
On Wednesday, 10 July 2013 at 12:14:39 UTC, eles wrote: On Wednesday, 10 July 2013 at 12:03:06 UTC, eles wrote: On Wednesday, 10 July 2013 at 10:24:17 UTC, Joseph Rushton Wakeling wrote: On 07/10/2013 02:07 AM, H. S. Teoh wrote: Comments / flames / pull requests welcome. ;-) string findGDC

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread eles
On Wednesday, 10 July 2013 at 12:03:06 UTC, eles wrote: On Wednesday, 10 July 2013 at 10:24:17 UTC, Joseph Rushton Wakeling wrote: On 07/10/2013 02:07 AM, H. S. Teoh wrote: Comments / flames / pull requests welcome. ;-) string findGDC(string argv0) { // FIXME: this does not work

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread eles
On Wednesday, 10 July 2013 at 10:24:17 UTC, Joseph Rushton Wakeling wrote: On 07/10/2013 02:07 AM, H. S. Teoh wrote: Comments / flames / pull requests welcome. ;-) string findGDC(string argv0) { // FIXME: this does not work 100% of the time. auto c = match(baseName(argv

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Iain Buclaw
On 10 July 2013 12:24, Joseph Rushton Wakeling wrote: > On 07/10/2013 12:56 PM, Iain Buclaw wrote: >> You think too hard about things that simply don't matter. > > ... scratches head furiously and thinks about how to respond to this ... > > :-P http://25.media.tumblr.com/tumblr_lw997zALj91r1tloio

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Joseph Rushton Wakeling
On 07/10/2013 12:56 PM, Iain Buclaw wrote: > You think too hard about things that simply don't matter. ... scratches head furiously and thinks about how to respond to this ... :-P

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Iain Buclaw
On 10 July 2013 11:47, Joseph Rushton Wakeling wrote: > On 07/10/2013 12:28 PM, Iain Buclaw wrote: >> On 10 July 2013 11:24, Joseph Rushton Wakeling >> wrote: >>> On 07/10/2013 02:07 AM, H. S. Teoh wrote: Comments / flames / pull requests welcome. ;-) >>> >>> string findGDC(string argv0)

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Joseph Rushton Wakeling
On 07/10/2013 12:28 PM, Iain Buclaw wrote: > On 10 July 2013 11:24, Joseph Rushton Wakeling > wrote: >> On 07/10/2013 02:07 AM, H. S. Teoh wrote: >>> Comments / flames / pull requests welcome. ;-) >> >> string findGDC(string argv0) >> { >> // FIXME: this does not work 100% of the t

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Iain Buclaw
On 10 July 2013 11:24, Joseph Rushton Wakeling wrote: > On 07/10/2013 02:07 AM, H. S. Teoh wrote: >> Comments / flames / pull requests welcome. ;-) > > string findGDC(string argv0) > { > // FIXME: this does not work 100% of the time. > auto c = match(baseName(argv0), `^(.*-

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Joseph Rushton Wakeling
On 07/10/2013 02:07 AM, H. S. Teoh wrote: > Comments / flames / pull requests welcome. ;-) string findGDC(string argv0) { // FIXME: this does not work 100% of the time. auto c = match(baseName(argv0), `^(.*-)?g?dmd(-.*)?$`).captures; auto targetPrefix = c[1];

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Iain Buclaw
On 10 July 2013 11:05, Joseph Rushton Wakeling wrote: > On 07/10/2013 10:03 AM, Joseph Rushton Wakeling wrote: >> I'll be back with my big flaming torch and pitchfork after I've tested later >> today ... ;-) > > Not your fault, but that delimited string inside printUsage() runs into a > lovely >

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Joseph Rushton Wakeling
On 07/10/2013 10:03 AM, Joseph Rushton Wakeling wrote: > I'll be back with my big flaming torch and pitchfork after I've tested later > today ... ;-) Not your fault, but that delimited string inside printUsage() runs into a lovely syntax highlighting bug in d.vim: https://github.com/JesseKPhillips

Re: gcc 4.8.1 made it to Debian Sid

2013-07-10 Thread Joseph Rushton Wakeling
On 07/10/2013 02:07 AM, H. S. Teoh wrote: > I forked GDMD on github and took a first stab at D-ifying it: > > https://github.com/quickfur/GDMD/tree/dport Nice -- I'll try and have a play with that later :-) First thing that strikes me -- and I know you're taking this from the original scri