Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Bekenn
On 3/1/2011 7:32 PM, Walter Bright wrote: I didn't know that. Thanks for the link! No problem.

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Walter Bright
Bekenn wrote: Ah, this one (folders) I actually have a response for. Or, rather, Raymond Chen does: http://blogs.msdn.com/b/oldnewthing/archive/2011/02/16/10129908.aspx I didn't know that. Thanks for the link!

ANN: bud/build updated for D2

2011-03-01 Thread Jason E. Aten
I updated bud/build to compile with D2. I tested it on Mac OSX 10.6.3 and on Linux, both x86_64. I haven't tried it on windows. I couldn't reach Derek Parnell by email, and so I attached a source tarball to the main wiki page. It was tested with dmd2.0.52. The link is here: http://www.dsource.org

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Lars T. Kyllingstad" wrote in message news:ikiht0$2vba$2...@digitalmars.com... > > I've also found a few cases like that. In general, I think std.path > takes the KISS approach, probably because it's the most efficient and > works in most cases, but I'd rather it did the Right Thing (TM) that >

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Bekenn
On 3/1/11 5:26 PM, Walter Bright wrote: Yeah, one wonders what's wrong with the word "Programs". And why directories had to be renamed "folders". Ah, this one (folders) I actually have a response for. Or, rather, Raymond Chen does: http://blogs.msdn.com/b/oldnewthing/archive/2011/02/16/1

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Walter Bright
Bekenn wrote: On 3/1/11 3:40 PM, Daniel Gibson wrote: Or "My Documents", "My Pictures" and whatnot (or is that gone post-XP?) Yes, those are gone. "My Documents" is just "Documents", "My Pictures" is just "Pictures", etc. Windows 7 (sadly) still displays the "My" prefix (Vista doesn't), bu

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Walter Bright
Bekenn wrote: On 3/1/11 3:27 PM, Walter Bright wrote: I've always hated the Windows "Documents and Settings" subdirectory. Arggh. Always a pain to use on the command line. No kidding. Thank goodness that's gone post-XP. Now if only they'd do the same for Program Files... Yeah, one wonde

Re: Sci-Fi TV Shows (Was: std.path.getName(): Screwy by design?)

2011-03-01 Thread Nick Sabalausky
"Bekenn" wrote in message news:ikk0ko$a2u$1...@digitalmars.com... > On 3/1/11 2:56 PM, Nick Sabalausky wrote: >> "Jonathan M Davis" wrote in message >>> No. It's a cat. :) >>> >>> - Jonathan M Davis >>> >>> >>> P.S. At least it is if you've seen B5... >> >> OMG, I completely forgot about the who

Re: Sci-Fi TV Shows (Was: std.path.getName(): Screwy by design?)

2011-03-01 Thread Jonathan M Davis
On Tuesday, March 01, 2011 14:56:20 Nick Sabalausky wrote: > "Jonathan M Davis" wrote in message > news:mailman.2104.1299019810.4748.digitalmar...@puremagic.com... > > > On Tuesday, March 01, 2011 14:27:38 Nick Sabalausky wrote: > >> "Jesse Phillips" wrote in message > >> news:ikj3nf$1l0v$1...@d

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Bekenn
On 3/1/11 3:40 PM, Daniel Gibson wrote: Or "My Documents", "My Pictures" and whatnot (or is that gone post-XP?) Yes, those are gone. "My Documents" is just "Documents", "My Pictures" is just "Pictures", etc. Windows 7 (sadly) still displays the "My" prefix (Vista doesn't), but the directory

Re: Sci-Fi TV Shows (Was: std.path.getName(): Screwy by design?)

2011-03-01 Thread Bekenn
On 3/1/11 2:56 PM, Nick Sabalausky wrote: "Jonathan M Davis" wrote in message No. It's a cat. :) - Jonathan M Davis P.S. At least it is if you've seen B5... OMG, I completely forgot about the whole cat thing in Babylon 5 (I assume you mean Babylon 5). It's been far too long. Actually, I st

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Daniel Gibson
Am 02.03.2011 00:37, schrieb Bekenn: > On 3/1/11 3:27 PM, Walter Bright wrote: >> I've always hated the Windows "Documents and Settings" subdirectory. >> Arggh. Always a pain to use on the command line. > > No kidding. Thank goodness that's gone post-XP. Now if only they'd do the > same > for P

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Bekenn
On 3/1/11 3:27 PM, Walter Bright wrote: I've always hated the Windows "Documents and Settings" subdirectory. Arggh. Always a pain to use on the command line. No kidding. Thank goodness that's gone post-XP. Now if only they'd do the same for Program Files...

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Walter Bright
Andrei Alexandrescu wrote: On 3/1/11 3:42 PM, Nick Sabalausky wrote: There's a long, seemingly-unending history of unix programs choking on paths with spaces in them *even* when you give them the paths properly escaped. Not all unix apps, but enough. make and latex are prime examples. I have

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Daniel Gibson
Am 01.03.2011 23:45, schrieb Nick Sabalausky: > "Daniel Gibson" wrote in message > news:ikjqaf$2e9r$2...@digitalmars.com... >> Am 01.03.2011 22:42, schrieb Nick Sabalausky: >>> >>> There's a long, seemingly-unending history of unix programs choking on >>> paths >>> with spaces in them *even* whe

Sci-Fi TV Shows (Was: std.path.getName(): Screwy by design?)

2011-03-01 Thread Nick Sabalausky
"Jonathan M Davis" wrote in message news:mailman.2104.1299019810.4748.digitalmar...@puremagic.com... > On Tuesday, March 01, 2011 14:27:38 Nick Sabalausky wrote: >> "Jesse Phillips" wrote in message >> news:ikj3nf$1l0v$1...@digitalmars.com... >> >> > Daniel Gibson Wrote: >> >> .bashrc doesn't ha

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Jonathan M Davis
On Tuesday, March 01, 2011 14:27:38 Nick Sabalausky wrote: > "Jesse Phillips" wrote in message > news:ikj3nf$1l0v$1...@digitalmars.com... > > > Daniel Gibson Wrote: > >> .bashrc doesn't have an extension and is not an extionsion either. > >> The "." at the start is Unix convention to say "this is

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Daniel Gibson" wrote in message news:ikjqaf$2e9r$2...@digitalmars.com... > Am 01.03.2011 22:42, schrieb Nick Sabalausky: >> >> There's a long, seemingly-unending history of unix programs choking on >> paths >> with spaces in them *even* when you give them the paths properly escaped. >> Not all

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Lars T. Kyllingstad" wrote in message news:ikj54r$14ci$7...@digitalmars.com... > Since we're on the topic of std.path, does anyone have an opinion as to > how it should handle the various string types? Currently, it only deals > with string, i.e. immutable(char)[], but should it also be able to

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Daniel Gibson" wrote in message news:ikj45k$mbh$3...@digitalmars.com... > Am 01.03.2011 16:38, schrieb Kagamin: >> Nick Sabalausky Wrote: >> >>> or just an extentionless file named ".bashrc"? (I know unix doesn't >>> typically have a concept of file extension, it's all just part of the >>> name

Re: Simple HTTP support

2011-03-01 Thread Andrei Alexandrescu
On 3/1/11 3:54 PM, Jonas Drewsen wrote: On 25/02/11 16.01, Andrei Alexandrescu wrote: On 2/25/11 8:48 AM, Jonas Drewsen wrote: Hi, My first post here so I don't know if this is the right place. I like how phobos is coming along but really miss a HTTP client and I think it should be a part of

Re: Pretty please: Named arguments

2011-03-01 Thread Jonathan M Davis
On Tuesday, March 01, 2011 11:22:17 Bekenn wrote: > On 2/28/11 1:38 PM, Don wrote: > > 1. It makes parameter names part of the API. > > I wrote earlier that this would probably be the first time parameter > names "leaked" into user code, but I was wrong. Jacob Carlborg has > pointed out his libra

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Jesse Phillips" wrote in message news:ikj3nf$1l0v$1...@digitalmars.com... > Daniel Gibson Wrote: > >> .bashrc doesn't have an extension and is not an extionsion either. >> The "." at the start is Unix convention to say "this is a hidden >> file/folder", this means "ls" (the unix equivalent to "d

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Andrei Alexandrescu
On 3/1/11 3:42 PM, Nick Sabalausky wrote: There's a long, seemingly-unending history of unix programs choking on paths with spaces in them *even* when you give them the paths properly escaped. Not all unix apps, but enough. make and latex are prime examples. I have made an executive decision to

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Don" wrote in message news:ikj7n9$1sg2$1...@digitalmars.com... > Steven Schveighoffer wrote: >> On Tue, 01 Mar 2011 09:01:49 -0500, Nick Sabalausky wrote: >>> >>> People don't always realize it, but Windows really is the same way. It's >>> really only the user-level applications like Explorer t

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Daniel Gibson
Am 01.03.2011 22:42, schrieb Nick Sabalausky: > "Daniel Gibson" wrote in message > news:ikivql$mbh$1...@digitalmars.com... >> Am 01.03.2011 14:50, schrieb Nick Sabalausky: >>> "Steven Schveighoffer" wrote in message >>> news:op.vrn2pooteav7ka@steve-laptop... On Tue, 01 Mar 2011 08:13:33 -05

Re: Simple HTTP support

2011-03-01 Thread Jonas Drewsen
On 25/02/11 16.01, Andrei Alexandrescu wrote: On 2/25/11 8:48 AM, Jonas Drewsen wrote: Hi, My first post here so I don't know if this is the right place. I like how phobos is coming along but really miss a HTTP client and I think it should be a part of the standard library. Is anyone working

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Daniel Gibson" wrote in message news:ikivql$mbh$1...@digitalmars.com... > Am 01.03.2011 14:50, schrieb Nick Sabalausky: >> "Steven Schveighoffer" wrote in message >> news:op.vrn2pooteav7ka@steve-laptop... >>> On Tue, 01 Mar 2011 08:13:33 -0500, Lars T. Kyllingstad >>> wrote: >>> On Tue,

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Daniel Gibson" wrote in message news:ikj0cb$mbh$2...@digitalmars.com... > Am 01.03.2011 15:31, schrieb Lars T. Kyllingstad: >> On Tue, 01 Mar 2011 08:50:29 -0500, Nick Sabalausky wrote: >> >>> "Steven Schveighoffer" wrote in message >>> news:op.vrn2pooteav7ka@steve-laptop... On Tue, 01 Mar

Re: std.parallelism: Request for Review [Summary of discussion]

2011-03-01 Thread Russel Winder
On Tue, 2011-03-01 at 13:06 -0500, jasonw wrote: > dsimcha Wrote: > > > Ok, so that's one issue to cross off the list. To summarize the discussion > > so > > far, most of it's revolved around the issue of automatically determining > > how many > > CPUs are available and therefore how many threa

Re: std.parallelism: Request for Review [Summary of discussion]

2011-03-01 Thread Daniel Gibson
Am 01.03.2011 20:19, schrieb dsimcha: > == Quote from jasonw (u...@webmails.org)'s article >> dsimcha Wrote: >>> Ok, so that's one issue to cross off the list. To summarize the discussion >>> so >>> far, most of it's revolved around the issue of automatically determining >>> how many >>> CPUs ar

Re: Pretty please: Named arguments

2011-03-01 Thread Bekenn
On 2/28/11 1:38 PM, Don wrote: 1. It makes parameter names part of the API. I wrote earlier that this would probably be the first time parameter names "leaked" into user code, but I was wrong. Jacob Carlborg has pointed out his library implementation of this feature: http://dsource.org/pro

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread retard
Tue, 01 Mar 2011 11:04:53 -0800, Jonathan M Davis wrote: > On Tuesday, March 01, 2011 06:54:27 Andrei Alexandrescu wrote: >> On 3/1/11 4:54 AM, Jonathan M Davis wrote: >> > On Tuesday 01 March 2011 02:49:31 Daniel Gibson wrote: >> >> Am 01.03.2011 09:58, schrieb Nick Sabalausky: >> >>> According t

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread retard
Tue, 01 Mar 2011 19:25:57 +, retard wrote: > .pds.gz, Sorry about the typo, .pdf.gz

Re: std.parallelism: Request for Review [Summary of discussion]

2011-03-01 Thread dsimcha
== Quote from jasonw (u...@webmails.org)'s article > dsimcha Wrote: > > Ok, so that's one issue to cross off the list. To summarize the discussion > > so > > far, most of it's revolved around the issue of automatically determining > > how many > > CPUs are available and therefore how many thread

Re: Pretty please: Named arguments

2011-03-01 Thread Andrej Mitrovic
On 3/1/11, Bekenn wrote: > > When reading existing code, can you easily spot the difference between: > foo(1,,, "Hello World!"); > and > foo(1 "Hello World!"); > ? > > Unlike named arguments, I'd argue this syntax makes things quite a bit > /less/ readable. > This syntax is used b

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Jonathan M Davis
On Tuesday, March 01, 2011 06:54:27 Andrei Alexandrescu wrote: > On 3/1/11 4:54 AM, Jonathan M Davis wrote: > > On Tuesday 01 March 2011 02:49:31 Daniel Gibson wrote: > >> Am 01.03.2011 09:58, schrieb Nick Sabalausky: > >>> According to the docs, std.path.getName() "Returns the extensionless > >>>

Re: Pretty please: Named arguments

2011-03-01 Thread Bekenn
On 2/28/11 9:07 PM, Nick Sabalausky wrote: One could argue the code is more likely like this: int x = 1; int y = 2; int width = 3; int height = 4; ... box(x, y, width, height) Right, at which point you're essentially using named arguments anyway, except that here

Re: Pretty please: Named arguments

2011-03-01 Thread Bekenn
On 3/1/11 4:52 AM, Max Samukha wrote: I hate that "explicitness improves code clarity and readability" argument. It may be true in some cases but most of the time explicitness creates unnecessary redundancy that actually impairs readability. Correct. However, named arguments are not a "most of

Re: Pretty please: Named arguments

2011-03-01 Thread Bekenn
On 3/1/11 4:40 AM, Lars T. Kyllingstad wrote: I just think that, at this late point in D2's development, the cost of adding them outweighs the benefits. I mean, have you looked at the spec for D2 lately? It's starting to look like the OOXML spec! I started out a few weeks ago by reading throu

Re: Pretty please: Named arguments

2011-03-01 Thread Bekenn
On 3/1/11 1:51 AM, Lars T. Kyllingstad wrote: I think I agree with you and Don here. As for "skipping" default parameters, I suggest the following syntax: void foo(int i, bool b = true, real r = 3.14, string s = "") { ... } foo(1, , , "Hello World!"); This is a much smaller language

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Jérôme M. Berger
Kagamin wrote: > Nick Sabalausky Wrote: > >> or just an extentionless file named ".bashrc"? (I know unix doesn't >> typically have a concept of file extension, it's all just part of the name, >> but unix programs will often care about the extension portion of a >> filename.) > > .Net treats it

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Jérôme M. Berger
Adam Ruppe wrote: > The best part is taking the file name issue and combining it with the > shell expansion design unix has. > > mkdir something > touch something/test > touch -- -R > touch test > rm * > > Every file will be destroyed, including subdirectoriesexcept the > murderous -R file!

Re: std.parallelism: Request for Review [Summary of discussion]

2011-03-01 Thread jasonw
dsimcha Wrote: > Ok, so that's one issue to cross off the list. To summarize the discussion so > far, most of it's revolved around the issue of automatically determining how > many > CPUs are available and therefore how many threads the default pool should > have. > Previously, std.parallelism

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Jonathan M Davis
On Tuesday 01 March 2011 08:15:35 Lars T. Kyllingstad wrote: > On Tue, 01 Mar 2011 11:07:15 -0500, Steven Schveighoffer wrote: > > On Tue, 01 Mar 2011 11:04:52 -0500, Lars T. Kyllingstad > > > > wrote: > >> On Tue, 01 Mar 2011 10:55:57 -0500, Steven Schveighoffer wrote: > >>> The point of this wh

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Don
Steven Schveighoffer wrote: On Tue, 01 Mar 2011 09:01:49 -0500, Nick Sabalausky wrote: "Lars T. Kyllingstad" wrote in message news:ikis59$14ci$3...@digitalmars.com... On Tue, 01 Mar 2011 14:10:58 +0100, Jens Mueller wrote: I don't know whether this is useful but why not look at what is alr

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Jonathan M Davis
On Tuesday 01 March 2011 05:35:38 Steven Schveighoffer wrote: > On Tue, 01 Mar 2011 08:13:33 -0500, Lars T. Kyllingstad > > wrote: > > On Tue, 01 Mar 2011 08:02:44 -0500, Steven Schveighoffer wrote: > >> On Tue, 01 Mar 2011 04:16:36 -0500, Jonathan M Davis > >> > >> wrote: > >>> I can understan

Re: Pretty please: Named arguments

2011-03-01 Thread Dmitry Olshansky
On 01.03.2011 15:52, Max Samukha wrote: On 01.03.2011 13:20, spir wrote: I'm fed up with people opposing to features very relevant for code clarity, which they are not forced to use, and can hardly bother when reading code themselves. Is the second statement below really that hard to read?

Re: std.parallelism: Request for Review [Summary of discussion]

2011-03-01 Thread dsimcha
Ok, so that's one issue to cross off the list. To summarize the discussion so far, most of it's revolved around the issue of automatically determining how many CPUs are available and therefore how many threads the default pool should have. Previously, std.parallelism had been using core.cpuid for

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Lars T. Kyllingstad
On Tue, 01 Mar 2011 11:07:15 -0500, Steven Schveighoffer wrote: > On Tue, 01 Mar 2011 11:04:52 -0500, Lars T. Kyllingstad > wrote: > >> On Tue, 01 Mar 2011 10:55:57 -0500, Steven Schveighoffer wrote: >> >>> The point of this whole discussion is how should phobos' std.path deal >>> with filenames

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Steven Schveighoffer
On Tue, 01 Mar 2011 11:04:52 -0500, Lars T. Kyllingstad wrote: On Tue, 01 Mar 2011 10:55:57 -0500, Steven Schveighoffer wrote: On Tue, 01 Mar 2011 10:52:43 -0500, Lars T. Kyllingstad wrote: On Tue, 01 Mar 2011 10:27:49 -0500, Steven Schveighoffer wrote: very very smart, experienced pe

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Lars T. Kyllingstad
On Tue, 01 Mar 2011 10:55:57 -0500, Steven Schveighoffer wrote: > On Tue, 01 Mar 2011 10:52:43 -0500, Lars T. Kyllingstad > wrote: > >> On Tue, 01 Mar 2011 10:27:49 -0500, Steven Schveighoffer wrote: > >>> very very smart, experienced people sometimes do things without >>> thinking. If we can d

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Steven Schveighoffer
On Tue, 01 Mar 2011 10:39:35 -0500, Adam Ruppe wrote: The best part is taking the file name issue and combining it with the shell expansion design unix has. mkdir something touch something/test touch -- -R touch test rm * Every file will be destroyed, including subdirectoriesexcept the

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Steven Schveighoffer
On Tue, 01 Mar 2011 10:52:43 -0500, Lars T. Kyllingstad wrote: On Tue, 01 Mar 2011 10:27:49 -0500, Steven Schveighoffer wrote: very very smart, experienced people sometimes do things without thinking. If we can do something really small to prevent catastrophic errors, I think it's worth it

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Lars T. Kyllingstad
Since we're on the topic of std.path, does anyone have an opinion as to how it should handle the various string types? Currently, it only deals with string, i.e. immutable(char)[], but should it also be able to handle the other permutations of mutable/const/immutable and char/wchar/dchar? -Lar

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Lars T. Kyllingstad
On Tue, 01 Mar 2011 10:27:49 -0500, Steven Schveighoffer wrote: > On Tue, 01 Mar 2011 10:08:14 -0500, Lars T. Kyllingstad > wrote: > >> On Tue, 01 Mar 2011 09:52:50 -0500, Steven Schveighoffer wrote: >> >>> On Tue, 01 Mar 2011 09:31:18 -0500, Lars T. Kyllingstad >>> wrote: >>> On Tue, 01 M

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Adam Ruppe
The best part is taking the file name issue and combining it with the shell expansion design unix has. mkdir something touch something/test touch -- -R touch test rm * Every file will be destroyed, including subdirectoriesexcept the murderous -R file!

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Daniel Gibson
Am 01.03.2011 16:38, schrieb Kagamin: Nick Sabalausky Wrote: or just an extentionless file named ".bashrc"? (I know unix doesn't typically have a concept of file extension, it's all just part of the name, but unix programs will often care about the extension portion of a filename.) .Net treat

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Kagamin
Nick Sabalausky Wrote: > or just an extentionless file named ".bashrc"? (I know unix doesn't > typically have a concept of file extension, it's all just part of the name, > but unix programs will often care about the extension portion of a > filename.) .Net treats it as a nameless file with ex

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Jesse Phillips
Daniel Gibson Wrote: > .bashrc doesn't have an extension and is not an extionsion either. > The "." at the start is Unix convention to say "this is a hidden > file/folder", this means "ls" (the unix equivalent to "dir") doesn't I don't like this description, it is a configuration file which jus

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Steven Schveighoffer
On Tue, 01 Mar 2011 10:08:14 -0500, Lars T. Kyllingstad wrote: On Tue, 01 Mar 2011 09:52:50 -0500, Steven Schveighoffer wrote: On Tue, 01 Mar 2011 09:31:18 -0500, Lars T. Kyllingstad wrote: On Tue, 01 Mar 2011 08:50:29 -0500, Nick Sabalausky wrote: "Steven Schveighoffer" wrote in mess

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Lars T. Kyllingstad
On Tue, 01 Mar 2011 09:52:50 -0500, Steven Schveighoffer wrote: > On Tue, 01 Mar 2011 09:31:18 -0500, Lars T. Kyllingstad > wrote: > >> On Tue, 01 Mar 2011 08:50:29 -0500, Nick Sabalausky wrote: >> >>> "Steven Schveighoffer" wrote in message > From this page: http://en.wikipedia.org/wiki/

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Steven Schveighoffer
On Tue, 01 Mar 2011 09:31:18 -0500, Lars T. Kyllingstad wrote: On Tue, 01 Mar 2011 08:50:29 -0500, Nick Sabalausky wrote: "Steven Schveighoffer" wrote in message From this page: http://en.wikipedia.org/wiki/Filename, it appears that really, the only disallowed character in unix filename

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Andrei Alexandrescu
On 3/1/11 4:54 AM, Jonathan M Davis wrote: On Tuesday 01 March 2011 02:49:31 Daniel Gibson wrote: Am 01.03.2011 09:58, schrieb Nick Sabalausky: According to the docs, std.path.getName() "Returns the extensionless version of a filename or path." But the doc also says that if the filename doesn'

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Daniel Gibson
Am 01.03.2011 15:31, schrieb Lars T. Kyllingstad: On Tue, 01 Mar 2011 08:50:29 -0500, Nick Sabalausky wrote: "Steven Schveighoffer" wrote in message news:op.vrn2pooteav7ka@steve-laptop... On Tue, 01 Mar 2011 08:13:33 -0500, Lars T. Kyllingstad wrote: On Tue, 01 Mar 2011 08:02:44 -0500, St

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Daniel Gibson
Am 01.03.2011 14:50, schrieb Nick Sabalausky: "Steven Schveighoffer" wrote in message news:op.vrn2pooteav7ka@steve-laptop... On Tue, 01 Mar 2011 08:13:33 -0500, Lars T. Kyllingstad wrote: On Tue, 01 Mar 2011 08:02:44 -0500, Steven Schveighoffer wrote: On Tue, 01 Mar 2011 04:16:36 -0500, J

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Lars T. Kyllingstad
On Tue, 01 Mar 2011 08:50:29 -0500, Nick Sabalausky wrote: > "Steven Schveighoffer" wrote in message > news:op.vrn2pooteav7ka@steve-laptop... >> On Tue, 01 Mar 2011 08:13:33 -0500, Lars T. Kyllingstad >> wrote: >> >>> On Tue, 01 Mar 2011 08:02:44 -0500, Steven Schveighoffer wrote: >>> On Tu

digitalmars-d@puremagic.com

2011-03-01 Thread Trass3r
Peter Alexander Wrote: > If they don't, how do I pass large structs into a function efficiently? The weird thing is struct literals count as lvalues in D2, so this works: struct A {} void foo(ref A a) {} void main() { foo(A()); } while calling the following doesn't: static A bar() { retu

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Steven Schveighoffer
On Tue, 01 Mar 2011 09:01:49 -0500, Nick Sabalausky wrote: "Lars T. Kyllingstad" wrote in message news:ikis59$14ci$3...@digitalmars.com... On Tue, 01 Mar 2011 14:10:58 +0100, Jens Mueller wrote: I don't know whether this is useful but why not look at what is already there. Linux has a comma

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Lars T. Kyllingstad" wrote in message news:ikis59$14ci$3...@digitalmars.com... > On Tue, 01 Mar 2011 14:10:58 +0100, Jens Mueller wrote: >> >> I don't know whether this is useful but why not look at what is already >> there. Linux has a command called basename. For removing the extension >> it i

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Steven Schveighoffer" wrote in message news:op.vrn2pooteav7ka@steve-laptop... > On Tue, 01 Mar 2011 08:13:33 -0500, Lars T. Kyllingstad > wrote: > >> On Tue, 01 Mar 2011 08:02:44 -0500, Steven Schveighoffer wrote: >> >>> On Tue, 01 Mar 2011 04:16:36 -0500, Jonathan M Davis >>> wrote: >>>

Re: Pretty please: Named arguments

2011-03-01 Thread Andrej Mitrovic
On 2/28/11, Steven Schveighoffer wrote: > Dunno, vim doesn't do that for me currently. > > -Steve > For C/C++, there's OmniCppComplete. It seems to do some parsing work and uses ctags. Now, I can use ctags and cscope in Vim with D, no problem there. But I haven't gotten around on getting autocomp

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Steven Schveighoffer" wrote in message news:op.vrn0zlu4eav7ka@steve-laptop... > On Tue, 01 Mar 2011 07:50:53 -0500, Nick Sabalausky wrote: > >> "Daniel Gibson" wrote in message >> news:ikij1r$e1i$1...@digitalmars.com... >>> >>> The "." at the start is Unix convention to say "this is a hidden >

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Steven Schveighoffer
On Tue, 01 Mar 2011 08:13:33 -0500, Lars T. Kyllingstad wrote: On Tue, 01 Mar 2011 08:02:44 -0500, Steven Schveighoffer wrote: On Tue, 01 Mar 2011 04:16:36 -0500, Jonathan M Davis wrote: I can understand if the path stuff can't deal with / or \ in file names (that's probably not worth tr

dmd-2.052 for Linux rpm

2011-03-01 Thread %u
in the download page there is no dmd-2.052 version for rpm package manager

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Lars T. Kyllingstad" wrote in message news:ikir9v$14ci$1...@digitalmars.com... > On Tue, 01 Mar 2011 07:48:56 -0500, Nick Sabalausky wrote: > >> "Lars T. Kyllingstad" wrote in message >> news:ikiktf$2vba$3...@digitalmars.com... >>> >>> I would like to say, however, that I think 'sep' is almost

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Lars T. Kyllingstad
On Tue, 01 Mar 2011 14:10:58 +0100, Jens Mueller wrote: > Lars T. Kyllingstad wrote: >> On Tue, 01 Mar 2011 11:49:31 +0100, Daniel Gibson wrote: >> >> > Am 01.03.2011 09:58, schrieb Nick Sabalausky: >> >> According to the docs, std.path.getName() "Returns the extensionless >> >> version of a file

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Steven Schveighoffer" wrote in message news:op.vrn06uqneav7ka@steve-laptop... > On Tue, 01 Mar 2011 04:16:36 -0500, Jonathan M Davis > wrote: > >> I can understand if the path stuff >> can't deal with / or \ in file names (that's probably not worth trying >> to get to >> work right), but it _

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Johannes Pfau
Steven Schveighoffer wrote: >On Tue, 01 Mar 2011 04:16:36 -0500, Jonathan M Davis > wrote: > >> I can understand if the path stuff >> can't deal with / or \ in file names (that's probably not worth >> trying to get to >> work right), but it _should_ be able to handle directories with dots >> in the

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Lars T. Kyllingstad
On Tue, 01 Mar 2011 08:02:44 -0500, Steven Schveighoffer wrote: > On Tue, 01 Mar 2011 04:16:36 -0500, Jonathan M Davis > wrote: > >> I can understand if the path stuff >> can't deal with / or \ in file names (that's probably not worth trying >> to get to >> work right), but it _should_ be able t

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Jens Mueller
Lars T. Kyllingstad wrote: > On Tue, 01 Mar 2011 11:49:31 +0100, Daniel Gibson wrote: > > > Am 01.03.2011 09:58, schrieb Nick Sabalausky: > >> According to the docs, std.path.getName() "Returns the extensionless > >> version of a filename or path." > >> > >> But the doc also says that if the filen

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Lars T. Kyllingstad
On Tue, 01 Mar 2011 07:48:56 -0500, Nick Sabalausky wrote: > "Lars T. Kyllingstad" wrote in message > news:ikiktf$2vba$3...@digitalmars.com... >> >> I would like to say, however, that I think 'sep' is almost up there >> with rel2abs in terms of bad naming. If you just see 'sep' in a piece >> of

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Lars T. Kyllingstad" wrote in message news:ikilpg$2vba$4...@digitalmars.com... > On Tue, 01 Mar 2011 11:49:31 +0100, Daniel Gibson wrote: > >> Am 01.03.2011 09:58, schrieb Nick Sabalausky: >>> According to the docs, std.path.getName() "Returns the extensionless >>> version of a filename or path.

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Steven Schveighoffer
On Tue, 01 Mar 2011 04:16:36 -0500, Jonathan M Davis wrote: I can understand if the path stuff can't deal with / or \ in file names (that's probably not worth trying to get to work right), but it _should_ be able to handle directories with dots in them and files with no extension. / an

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Steven Schveighoffer
On Tue, 01 Mar 2011 07:50:53 -0500, Nick Sabalausky wrote: "Daniel Gibson" wrote in message news:ikij1r$e1i$1...@digitalmars.com... The "." at the start is Unix convention to say "this is a hidden file/folder", this means "ls" (the unix equivalent to "dir") doesn't list them (ls -a does,

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Daniel Gibson" wrote in message news:ikij1r$e1i$1...@digitalmars.com... > > The "." at the start is Unix convention to say "this is a hidden > file/folder", this means "ls" (the unix equivalent to "dir") doesn't list > them (ls -a does, though) and most file browsers only list them when you >

Re: Pretty please: Named arguments

2011-03-01 Thread Max Samukha
On 01.03.2011 13:20, spir wrote: I'm fed up with people opposing to features very relevant for code clarity, which they are not forced to use, and can hardly bother when reading code themselves. Is the second statement below really that hard to read? p = new Point([1,2,3], [3,2,1]); p =

Re: SAL at Microsoft

2011-03-01 Thread Don
bearophile wrote: Adam Ruppe: Just accept the few kilobytes of unbearable bloat and use writef, It's not just template bloat, but also the printing bugs not caught at compile time. The point of the first post of this thread was to talk about SAL, that Microsoft seems to consider very import

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Nick Sabalausky
"Lars T. Kyllingstad" wrote in message news:ikiktf$2vba$3...@digitalmars.com... > > I would like to say, however, that I think 'sep' is almost up there with > rel2abs in terms of bad naming. If you just see 'sep' in a piece of > code, maybe you understand it is a separator, but I don't think eve

Re: Pretty please: Named arguments

2011-03-01 Thread Lars T. Kyllingstad
On Tue, 01 Mar 2011 07:26:28 -0500, Nick Sabalausky wrote: > "Lars T. Kyllingstad" wrote in message > news:ikimed$2vba$5...@digitalmars.com... >> On Tue, 01 Mar 2011 12:20:22 +0100, spir wrote: >> >>> On 02/28/2011 11:13 PM, Steven Schveighoffer wrote: > But I still don't see the need for thi

Re: Pretty please: Named arguments

2011-03-01 Thread Nick Sabalausky
"Lars T. Kyllingstad" wrote in message news:ikimed$2vba$5...@digitalmars.com... > On Tue, 01 Mar 2011 12:20:22 +0100, spir wrote: > >> On 02/28/2011 11:13 PM, Steven Schveighoffer wrote: But I still don't see the need for this feature. Aren't people using IDEs where the function signatu

Re: Pretty please: Named arguments

2011-03-01 Thread spir
On 03/01/2011 12:48 PM, Lars T. Kyllingstad wrote: On Tue, 01 Mar 2011 12:20:22 +0100, spir wrote: On 02/28/2011 11:13 PM, Steven Schveighoffer wrote: But I still don't see the need for this feature. Aren't people using IDEs where the function signature (with parameter names) pops up when you'

Re: Pretty please: Named arguments

2011-03-01 Thread Steven Schveighoffer
On Mon, 28 Feb 2011 19:50:44 -0500, Stewart Gordon wrote: On 28/02/2011 07:03, Bekenn wrote: HRESULT hr = m_Device.Present(pSourceRect: null, pDestRect: null, hDestWindowOverride: null, pDirtyRegion: null); One advantage is that it would encourage self-documenting code, partly becau

Re: Pretty please: Named arguments

2011-03-01 Thread spir
On 03/01/2011 02:36 AM, Andrei Alexandrescu wrote: On 2/28/11 12:38 PM, Bekenn wrote: On 2/28/11 5:48 AM, Andrei Alexandrescu wrote: One more thing, order of evaluation should still be left-to-right, not in order of arguments. This means the feature cannot be a syntactic rewrite (not a big issu

Re: Pretty please: Named arguments

2011-03-01 Thread spir
On 03/01/2011 02:48 AM, Andrei Alexandrescu wrote: On 2/28/11 6:03 PM, Jonathan M Davis wrote: The more I think about this, the more I'm against the idea of named arguments. I think you have been blessed to work with only small, clean APIs. Certain domains definitely promote large argument lis

Re: Pretty please: Named arguments

2011-03-01 Thread Steven Schveighoffer
On Tue, 01 Mar 2011 04:10:12 -0500, Don wrote: Steven Schveighoffer wrote: On Mon, 28 Feb 2011 16:38:34 -0500, Don wrote: spir wrote: Just don't use them! You don't have that option. At least, if you're a library developer, you don't. (I'm a bit sick of people saying "you don't have t

Re: Pretty please: Named arguments

2011-03-01 Thread spir
On 03/01/2011 05:52 AM, Bekenn wrote: On 2/28/2011 8:43 PM, Andrei Alexandrescu wrote: Don't know about others, but I think this is exactly the point where my "meh" detector goes off. It *might* be worthwhile if it does indeed address Jonathan's concern about library writers not being able to

Re: Pretty please: Named arguments

2011-03-01 Thread Lars T. Kyllingstad
On Tue, 01 Mar 2011 12:20:22 +0100, spir wrote: > On 02/28/2011 11:13 PM, Steven Schveighoffer wrote: >>> But I still don't see the need for this feature. Aren't people using >>> IDEs where the function signature (with parameter names) pops up when >>> you're entering the function, and when you mo

Re: Pretty please: Named arguments

2011-03-01 Thread spir
On 03/01/2011 01:50 AM, Stewart Gordon wrote: Trouble is it would create fragility, as parameter names would become a new thing that can't be changed once decided without breaking existing code. So it would be important to get them right from the beginning, and there'll be a time when the featur

Re: std.path.getName(): Screwy by design?

2011-03-01 Thread Lars T. Kyllingstad
On Tue, 01 Mar 2011 11:49:31 +0100, Daniel Gibson wrote: > Am 01.03.2011 09:58, schrieb Nick Sabalausky: >> According to the docs, std.path.getName() "Returns the extensionless >> version of a filename or path." >> >> But the doc also says that if the filename doesn't have a dot, then it >> return

  1   2   >