Re: UFCS for D

2012-04-03 Thread deadalnix
Le 02/04/2012 18:00, Jacob Carlborg a écrit : On 2012-04-02 16:31, Don Clugston wrote: To be brutally honest, I don't think that's got much to do with the language. It's got to do with Phobos adopting the Big Ball Of Mud design pattern. There's no reason for the existing modules to be so huge.

Re: UFCS for D

2012-04-03 Thread Rory McGuire
Andrei and Walter's proposal does not break existing code because it makes folders into modules. On Tue, Apr 3, 2012 at 8:43 AM, deadalnix deadal...@gmail.com wrote: Le 02/04/2012 18:00, Jacob Carlborg a écrit : On 2012-04-02 16:31, Don Clugston wrote: To be brutally honest, I don't think

Re: UFCS for D

2012-04-03 Thread James Miller
On 3 April 2012 19:58, Rory McGuire rjmcgu...@gmail.com wrote: Andrei and Walter's proposal does not break existing code because it makes folders into modules. Completely off topic, but can you please refrain from top-posting? Its not a big deal, just generally quoting above you is preferred.

Re: UFCS for D

2012-04-03 Thread Rory McGuire
On Apr 3, 2012 10:19 AM, deadalnix deadal...@gmail.com wrote: Le 03/04/2012 09:58, Rory McGuire a écrit : Andrei and Walter's proposal does not break existing code because it makes folders into modules. Yes, I was explaining why a solution is needed here. I think the public import method

Re: UFCS for D

2012-04-02 Thread deadalnix
Le 31/03/2012 02:25, Walter Bright a écrit : On 3/30/2012 12:36 PM, Walter Bright wrote: On 3/30/2012 12:11 PM, Steven Schveighoffer wrote: On Fri, 30 Mar 2012 14:27:43 -0400, Walter Bright newshou...@digitalmars.com wrote: I would argue that: 3. An extension method for an argument of type

Re: UFCS for D

2012-04-02 Thread Don Clugston
On 30/03/12 12:22, Walter Bright wrote: On 3/30/2012 2:15 AM, Nick Sabalausky wrote: Andrei and I have talked about it, and we think it is because of difficulties in breaking a module up into submodules of a package. We think it's something we need to address. Eh? Other people have voiced

Re: video games (was Re: UFCS for D)

2012-04-02 Thread Steven Schveighoffer
On Sat, 31 Mar 2012 05:37:49 -0400, Nick Sabalausky a@a.a wrote: Walter Bright newshou...@digitalmars.com wrote in message news:jl6a6a$1gh$1...@digitalmars.com... Dudes, get an HD TV. It really is transformative. And yes, it kills me that my expensive old large screen standard def TV is just a

Re: UFCS for D

2012-04-02 Thread Jacob Carlborg
On 2012-04-02 16:31, Don Clugston wrote: To be brutally honest, I don't think that's got much to do with the language. It's got to do with Phobos adopting the Big Ball Of Mud design pattern. There's no reason for the existing modules to be so huge. Eg, I created std.internal.math so that the

Re: video games (was Re: UFCS for D)

2012-04-02 Thread Nick Sabalausky
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.wb47llmueav7ka@localhost.localdomain... I currently have an HD tube tv which runs at 1080i. The nice thing about tubes is that standard definition *does* look more normal in it. Yea. They don't make them anymore though :(

Re: video games (was Re: UFCS for D)

2012-04-01 Thread Nick Sabalausky
From: Adam D. Ruppe destructiona...@gmail.com On Sunday, 1 April 2012 at 03:10:49 UTC, Nick Sabalausky wrote: But I tend to listen to non-game stuff more: I'm a total whore for Anime opening/closing themes. Oh yes. Coincidentally, as I read this, I was playing the opening from Zeta Gundam!

Re: video games (was Re: UFCS for D)

2012-04-01 Thread so
On Sunday, 1 April 2012 at 06:41:16 UTC, Nick Sabalausky wrote: [Anzen Chitai] Suki Sa (One of the Maison Ikkoku openings) [The Indigo] I Do! (ED1: Ai Yori Aoshi Enishi) [Hitomi Takahashi] Aozora no Namida (OP1: Blood+) [Yoko Kanno] Tank! (OP: Cowboy Bebop) [Origa Yoko Kanno] Inner Universe

Re: video games (was Re: UFCS for D)

2012-04-01 Thread Sean Kelly
On Mar 31, 2012, at 1:57 PM, Nick Sabalausky a@a.a wrote: Don't know about satellite, but Cable turned to crap about a couple years ago. It used to be very good, but then they started compressing the fuck out of everything, and honest to god, half the time it looks like a fucking

Re: video games (was Re: UFCS for D)

2012-04-01 Thread so
On Sunday, 1 April 2012 at 21:06:09 UTC, Nick Sabalausky wrote: How could I possibly forget that one?!? Yes, Light's Theme from Death Note is indeed one of the best anime songs /ever/. Come to think of it, it would fit in very well on Marilyn Manson's Holywood album - *and* be one of the

Re: UFCS for D

2012-04-01 Thread Simen Kjærås
On Sat, 31 Mar 2012 08:10:56 +0200, Walter Bright newshou...@digitalmars.com wrote: On 3/30/2012 5:25 PM, Walter Bright wrote: Ah, I know how to fix it. Mark such instantiations as local ones, so they are mangled with the module name of where they were instantiated from.

Re: video games (was Re: UFCS for D)

2012-04-01 Thread Nick Sabalausky
so s...@so.so wrote in message news:tnlksyhbnypfjbybm...@forum.dlang.org... On Sunday, 1 April 2012 at 21:06:09 UTC, Nick Sabalausky wrote: (L was a fantastic character period), L is awesome. Don't start with characters! Every character in SC and CB is just crazy for starters. I mean

Re: UFCS for D

2012-03-31 Thread Walter Bright
On 3/30/2012 5:25 PM, Walter Bright wrote: Ah, I know how to fix it. Mark such instantiations as local ones, so they are mangled with the module name of where they were instantiated from. http://d.puremagic.com/issues/show_bug.cgi?id=7802

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:vcadggwxsbxhdkjhr...@forum.dlang.org... On Friday, 30 March 2012 at 22:43:00 UTC, Nick Sabalausky wrote: But that would *never* happen under US-style IP law. You know what's funny: I used to use an Atari ac adapter for my Sega.

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Walter Bright
On 3/30/2012 11:16 PM, Nick Sabalausky wrote: Adam D. Ruppedestructiona...@gmail.com wrote in message In my house's big room, I have a floor bed: a couple blankets and pillows on the floor, next to my big tv. (my big tv being a 20 year old 19 set! I'll use it till it dies. Then duct tape it

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:jl6a6a$1gh$1...@digitalmars.com... On 3/30/2012 11:16 PM, Nick Sabalausky wrote: Adam D. Ruppedestructiona...@gmail.com wrote in message In my house's big room, I have a floor bed: a couple blankets and pillows on the floor, next

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Adam D. Ruppe
On Saturday, 31 March 2012 at 09:35:25 UTC, Nick Sabalausky wrote: So blowing hundreds of dollars just so half my stuff looks *worse* and other stuff looks (to me) only marginally better? Pass. I've seen a few high def tvs. I like half of them, though not enough to displace my old set. The

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Adam D. Ruppe
On Saturday, 31 March 2012 at 07:02:35 UTC, Walter Bright wrote: And yes, it kills me that my expensive old large screen standard def TV is just a POS in comparison, even though it is in perfect working order. It might help that I have smaller tv sets. I have a 19 and a 13, and they have

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Andrej Mitrovic
On 3/31/12, Robert Clipsham rob...@octarineparrot.com wrote: See also: * http://wormsng.com/ * http://worms2d.info/4 * https://github.com/CyberShadow/ae See anyone you recognize there? ;) Aye, CS has been great to the WA community. :) I wonder if Deadcode (another bWA contributor) uses D

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Sean Kelly
Don't have the HD set stretch the image. Just watch it in the original format. Personally, I just find that looking at an LCD display is easier on the eyes than a CRT. Being able to mount it on the wall to get it away from the kids is nice too. On Mar 31, 2012, at 2:37 AM, Nick Sabalausky

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Sean Kelly
Some of the fancier TVs operate at 120Hz and generate interpolated frames to fill the gaps. It tends to cause all sorts of problems and look terrible. Generally renders console games unplayable too, as it creates all sorts of input lag. On Mar 31, 2012, at 6:40 AM, Adam D. Ruppe

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Nick Sabalausky
Sean Kelly s...@invisibleduck.org wrote in message news:mailman.1259.1333217864.4860.digitalmars-d-annou...@puremagic.com... Don't have the HD set stretch the image. Just watch it in the original format. Ew, then it'll be **tiny**. Esp if it's one of those 1080p sets (which I think they all

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Walter Bright
On 3/31/2012 6:53 AM, Adam D. Ruppe wrote: On Saturday, 31 March 2012 at 07:02:35 UTC, Walter Bright wrote: And yes, it kills me that my expensive old large screen standard def TV is just a POS in comparison, even though it is in perfect working order. It might help that I have smaller tv

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:fheaogseyibtulrhf...@forum.dlang.org... On Saturday, 31 March 2012 at 07:02:35 UTC, Walter Bright wrote: And yes, it kills me that my expensive old large screen standard def TV is just a POS in comparison, even though it is in

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:evxliildxhaodnbmq...@forum.dlang.org... On Saturday, 31 March 2012 at 06:14:03 UTC, Nick Sabalausky wrote: That's kind of another thing: If I need to be doing work, it's going to be damn hard if I have a bunch of games two clicks

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Adam D. Ruppe
On Saturday, 31 March 2012 at 23:01:32 UTC, Nick Sabalausky wrote: Certainly is. But *I* grew up on the original SegaCD version :) I never got to play that version... but the song you mention below, oh I know it. Track 9 on the playstation version soundtrack cd. I can't believe I've still

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Adam D. Ruppe
On Saturday, 31 March 2012 at 20:54:49 UTC, Nick Sabalausky wrote: Over-the-air broadcast literally looked *better* than that *before* the digital switch! I'm not exagerating. I don't doubt it, though I was on cable for a long time. Oh yea, and the set-top boxes themselves don't even work

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:ywifkafuypvfduunm...@forum.dlang.org... On Saturday, 31 March 2012 at 20:54:49 UTC, Nick Sabalausky wrote: Oh yea, and the set-top boxes themselves don't even work right anymore! That was *terrible* when digital was new, but

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Jonathan M Davis
On Saturday, March 31, 2012 05:37:49 Nick Sabalausky wrote: Walter Bright newshou...@digitalmars.com wrote in message Dudes, get an HD TV. It really is transformative. And yes, it kills me that my expensive old large screen standard def TV is just a POS in comparison, even though it is in

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:vxrvmmiapcbsemhea...@forum.dlang.org... On Saturday, 31 March 2012 at 23:01:32 UTC, Nick Sabalausky wrote: (Although I'll admit, I did enjoy Sewer Shark hahhahaha relax, pretend it's a game... maybe it'll even be fun. SHOOT THE

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Adam D. Ruppe
On Sunday, 1 April 2012 at 03:10:49 UTC, Nick Sabalausky wrote: But I tend to listen to non-game stuff more: I'm a total whore for Anime opening/closing themes. Oh yes. Coincidentally, as I read this, I was playing the opening from Zeta Gundam! Another one I find incredibly addictive is one

Re: UFCS for D

2012-03-31 Thread Walter Bright
On 3/30/2012 3:27 PM, Piotr Szturmaj wrote: I asked because Delphi and D are the only ones I know that make friend classes implicit :-) I didn't know that about Delphi.

Re: video games (was Re: UFCS for D)

2012-03-31 Thread Nick Sabalausky
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.1266.1333244549.4860.digitalmars-d-annou...@puremagic.com... On Saturday, March 31, 2012 05:37:49 Nick Sabalausky wrote: Walter Bright newshou...@digitalmars.com wrote in message Dudes, get an HD TV. It really is

Re: UFCS for D

2012-03-30 Thread Nathan M. Swan
On Thursday, 29 March 2012 at 00:21:38 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/rif9x/uniform_function_call_syntax_for_the_d/ Andrei The primitives/utility distinction is an idea I've thought about a lot. UFCS is justifiable not only as a syntactic

Re: UFCS for D

2012-03-30 Thread Jacob Carlborg
On 2012-03-30 04:05, Nick Sabalausky wrote: Walter Brightnewshou...@digitalmars.com wrote in message True, but I upgraded recently to 64 bit Win 7, with a 6 core processor and SSD drive. Reddit seems a lot zippier :-) I don't understand why people think it's ok for basic, basic shit that

Re: UFCS for D

2012-03-30 Thread Walter Bright
On 3/29/2012 6:57 PM, Nick Sabalausky wrote: How the heck does that improve encapsualtion? With D's implicit friends, it *doesn't*, it's just shifting things around. There is NO encapsualtion benefit there. Like Steven said, to *get* the encapsualtion, you have to create a whole new module to

Re: UFCS for D

2012-03-30 Thread Walter Bright
On 3/29/2012 7:05 PM, Nick Sabalausky wrote: I don't understand why people think it's ok for basic, basic shit that would have ran fine on a Pentium 1 (and less) to now require what quite literally is a super-fucking-computer-on-the-desktop just to run acceptably. Seriously, what the fuck's the

Re: UFCS for D

2012-03-30 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:jl3kkf$j4b$1...@digitalmars.com... On 3/29/2012 6:57 PM, Nick Sabalausky wrote: How the heck does that improve encapsualtion? With D's implicit friends, it *doesn't*, it's just shifting things around. There is NO encapsualtion

Re: UFCS for D

2012-03-30 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:jl3kar$ie4$1...@digitalmars.com... On 2012-03-30 04:05, Nick Sabalausky wrote: Walter Brightnewshou...@digitalmars.com wrote in message True, but I upgraded recently to 64 bit Win 7, with a 6 core processor and SSD drive. Reddit seems a lot

Re: UFCS for D

2012-03-30 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:jl3n59$qf7$1...@digitalmars.com... Jacob Carlborg d...@me.com wrote in message news:jl3kar$ie4$1...@digitalmars.com... On 2012-03-30 04:05, Nick Sabalausky wrote: Walter Brightnewshou...@digitalmars.com wrote in message True, but I upgraded

Re: UFCS for D

2012-03-30 Thread Timon Gehr
On 03/30/2012 01:45 AM, bearophile wrote: Timon Gehr: I think the article does not mention that it also works for primitive types. But there is a small problem with primitive properties: http://d.puremagic.com/issues/show_bug.cgi?id=7773 Bye, bearophile Yes, I have never understood why

Re: UFCS for D

2012-03-30 Thread Walter Bright
On 3/30/2012 12:18 AM, Nick Sabalausky wrote: While there are definitely times I need to access private state across separate components within a module, I find such cases are fairly uncommon, so I question the wisdom of making it the default behavior. If your module has grown so large that

Re: UFCS for D

2012-03-30 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:jl3l0c$jn2$1...@digitalmars.com... On 3/29/2012 7:05 PM, Nick Sabalausky wrote: I don't understand why people think it's ok for basic, basic shit that would have ran fine on a Pentium 1 (and less) to now require what quite

Re: UFCS for D

2012-03-30 Thread dennis luehring
or just use http://cdburnerxp.se/ Am 30.03.2012 10:30, schrieb Nick Sabalausky: Walter Brightnewshou...@digitalmars.com wrote in message news:jl3l0c$jn2$1...@digitalmars.com... On 3/29/2012 7:05 PM, Nick Sabalausky wrote: I don't understand why people think it's ok for basic, basic shit

Re: UFCS for D

2012-03-30 Thread Andrej Mitrovic
On 3/30/12, Walter Bright newshou...@digitalmars.com wrote: There has been a trend in Phobos of having some truly gigantic modules. I believe this is indicative of a problem in the language. Ignoring that there are still a few import bugs, you can split functionality into multiple modules and

Re: UFCS for D

2012-03-30 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:jl3qds$10ga$1...@digitalmars.com... On 3/30/2012 12:18 AM, Nick Sabalausky wrote: While there are definitely times I need to access private state across separate components within a module, I find such cases are fairly uncommon,

Re: UFCS for D

2012-03-30 Thread bls
On 03/30/2012 02:15 AM, Nick Sabalausky wrote: Eh? Other people have voiced concerns over that since waaay back in even pre-D1 times. In particular, many people have argued for allowing modules with the same name as a package. Ie: you could have both module foo and module foo.bar. This is

Re: UFCS for D

2012-03-30 Thread Walter Bright
On 3/30/2012 2:15 AM, Nick Sabalausky wrote: Andrei and I have talked about it, and we think it is because of difficulties in breaking a module up into submodules of a package. We think it's something we need to address. Eh? Other people have voiced concerns over that since waaay back in even

Re: UFCS for D

2012-03-30 Thread foobar
On Friday, 30 March 2012 at 01:55:23 UTC, Nick Sabalausky wrote: Yea, that occurred to me, too. wishful musingI've been starting to think more and more that the everything in a module is a friend was a mistake, and that we should have instead just had a module access specifier like we have

Re: UFCS for D

2012-03-30 Thread Steven Schveighoffer
On Fri, 30 Mar 2012 02:42:03 -0400, Walter Bright newshou...@digitalmars.com wrote: On 3/29/2012 6:57 PM, Nick Sabalausky wrote: How the heck does that improve encapsualtion? With D's implicit friends, it *doesn't*, it's just shifting things around. There is NO encapsualtion benefit there.

Re: UFCS for D

2012-03-30 Thread foobar
On Friday, 30 March 2012 at 10:22:18 UTC, Walter Bright wrote: On 3/30/2012 2:15 AM, Nick Sabalausky wrote: Andrei and I have talked about it, and we think it is because of difficulties in breaking a module up into submodules of a package. We think it's something we need to address. Eh?

Re: UFCS for D

2012-03-30 Thread Steven Schveighoffer
On Fri, 30 Mar 2012 04:21:12 -0400, Nick Sabalausky a@a.a wrote: Nick Sabalausky a@a.a wrote in message news:jl3n59$qf7$1...@digitalmars.com... Yea, I've seen that. It's a very good article, though. Although I've been saying this since before that article, and even before multi-cores.

Re: UFCS for D

2012-03-30 Thread Piotr Szturmaj
Walter Bright wrote: On 3/29/2012 5:09 PM, Steven Schveighoffer wrote: The reason being, if you change anything in class A, you do not have to worry about the implementation of getXSquared, because it simply has no access to the private implementation. You only have to worry about internal

Re: UFCS for D

2012-03-30 Thread Jacob Carlborg
On 2012-03-30 10:20, Walter Bright wrote: There has been a trend in Phobos of having some truly gigantic modules. I believe this is indicative of a problem in the language. Andrei and I have talked about it, and we think it is because of difficulties in breaking a module up into submodules of a

Re: UFCS for D

2012-03-30 Thread deadalnix
Le 30/03/2012 11:40, bls a écrit : On 03/30/2012 02:15 AM, Nick Sabalausky wrote: Eh? Other people have voiced concerns over that since waaay back in even pre-D1 times. In particular, many people have argued for allowing modules with the same name as a package. Ie: you could have both module

Re: UFCS for D

2012-03-30 Thread deadalnix
Le 30/03/2012 12:57, foobar a écrit : On Friday, 30 March 2012 at 10:22:18 UTC, Walter Bright wrote: On 3/30/2012 2:15 AM, Nick Sabalausky wrote: Andrei and I have talked about it, and we think it is because of difficulties in breaking a module up into submodules of a package. We think it's

Re: UFCS for D

2012-03-30 Thread deadalnix
Le 30/03/2012 01:34, Steven Schveighoffer a écrit : On Wed, 28 Mar 2012 21:53:57 -0400, Jesse Phillips jessekphillip...@gmail.com wrote: I won't be going out of my way to check this, but there is a mention of adding the range primatives. This works, but it doesn't make the class a range for

Re: UFCS for D

2012-03-30 Thread Jacob Carlborg
On 2012-03-30 10:36, Andrej Mitrovic wrote: On 3/30/12, Walter Brightnewshou...@digitalmars.com wrote: There has been a trend in Phobos of having some truly gigantic modules. I believe this is indicative of a problem in the language. Ignoring that there are still a few import bugs, you can

Re: UFCS for D

2012-03-30 Thread deadalnix
Le 30/03/2012 04:13, Adam D. Ruppe a écrit : On Friday, 30 March 2012 at 01:55:23 UTC, Nick Sabalausky wrote: wishful musingI've been starting to think more and more that the everything in a module is a friend was a mistake,and that we should have instead just had a module access specifier like

Re: UFCS for D

2012-03-30 Thread Steven Schveighoffer
On Fri, 30 Mar 2012 08:10:14 -0400, deadalnix deadal...@gmail.com wrote: I would expect this not to work, because bar isn't defined in module1 and template are supposed to use declaration scope, not instantiation scope (unless it is mixin template). Right, I think it's the way it works

Re: UFCS for D

2012-03-30 Thread Jacob Carlborg
On 2012-03-30 11:15, Nick Sabalausky wrote: I thought that was a deliberate Phobos style convention. I'm certain I remember you and/or Andrei talking here about a year or two ago about how you didn't want Phobos modules broken up into separate implemetation modules. I recognize that as well.

Re: UFCS for D

2012-03-30 Thread deadalnix
Le 30/03/2012 14:13, Steven Schveighoffer a écrit : On Fri, 30 Mar 2012 08:10:14 -0400, deadalnix deadal...@gmail.com wrote: I would expect this not to work, because bar isn't defined in module1 and template are supposed to use declaration scope, not instantiation scope (unless it is mixin

Re: UFCS for D

2012-03-30 Thread bls
On 03/30/2012 05:06 AM, deadalnix wrote: Le 30/03/2012 11:40, bls a écrit : On 03/30/2012 02:15 AM, Nick Sabalausky wrote: Eh? Other people have voiced concerns over that since waaay back in even pre-D1 times. In particular, many people have argued for allowing modules with the same name as a

Re: UFCS for D

2012-03-30 Thread Steven Schveighoffer
On Fri, 30 Mar 2012 08:22:12 -0400, deadalnix deadal...@gmail.com wrote: Le 30/03/2012 14:13, Steven Schveighoffer a écrit : On Fri, 30 Mar 2012 08:10:14 -0400, deadalnix deadal...@gmail.com wrote: I would expect this not to work, because bar isn't defined in module1 and template are

Re: UFCS for D

2012-03-30 Thread Adam D. Ruppe
On Friday, 30 March 2012 at 11:21:02 UTC, Steven Schveighoffer wrote: 4. Blow in bottom of cartridge, even though the pins are clean and free of dust (did this actually ever do anything?) My hypothesis is it was actually the moisture that made a better connection. I'd like to test this now...

Re: UFCS for D

2012-03-30 Thread Jacob Carlborg
On 2012-03-30 14:07, deadalnix wrote: all.d this the de facto standard here. I think it should become an official guideline. Why can't we get import foo.*;, then we don't have to relay on guidelines. -- /Jacob Carlborg

Re: UFCS for D

2012-03-30 Thread Adam D. Ruppe
On Friday, 30 March 2012 at 12:10:32 UTC, deadalnix wrote: For the ease of distribution, you can use a module with public import in it. There's still a few things I don't like though, about downloading and compiling several modules. When it is just one, you can download the single file and

Re: UFCS for D

2012-03-30 Thread Andrei Alexandrescu
On 3/30/12 3:20 AM, Walter Bright wrote: There has been a trend in Phobos of having some truly gigantic modules. I believe this is indicative of a problem in the language. Andrei and I have talked about it, and we think it is because of difficulties in breaking a module up into submodules of a

Re: UFCS for D

2012-03-30 Thread deadalnix
Le 30/03/2012 16:24, Andrei Alexandrescu a écrit : On 3/30/12 3:20 AM, Walter Bright wrote: There has been a trend in Phobos of having some truly gigantic modules. I believe this is indicative of a problem in the language. Andrei and I have talked about it, and we think it is because of

Re: UFCS for D

2012-03-30 Thread Jacob Carlborg
On 2012-03-30 16:17, Adam D. Ruppe wrote: On Friday, 30 March 2012 at 12:10:32 UTC, deadalnix wrote: For the ease of distribution, you can use a module with public import in it. There's still a few things I don't like though, about downloading and compiling several modules. When it is just

Re: UFCS for D

2012-03-30 Thread Andrei Alexandrescu
On 3/30/12 9:32 AM, deadalnix wrote: Le 30/03/2012 16:24, Andrei Alexandrescu a écrit : On 3/30/12 3:20 AM, Walter Bright wrote: There has been a trend in Phobos of having some truly gigantic modules. I believe this is indicative of a problem in the language. Andrei and I have talked about it,

Re: UFCS for D

2012-03-30 Thread Steven Schveighoffer
On Fri, 30 Mar 2012 10:39:09 -0400, Jacob Carlborg d...@me.com wrote: On 2012-03-30 14:52, Steven Schveighoffer wrote: Why would there be ambiguities? Unlike C include files, D modules are consistently compiled, unaffected by importing other modules. What about static-if and string mixins?

Re: UFCS for D

2012-03-30 Thread Steven Schveighoffer
On Fri, 30 Mar 2012 10:48:04 -0400, deadalnix deadal...@gmail.com wrote: Le 30/03/2012 14:52, Steven Schveighoffer a écrit : On Fri, 30 Mar 2012 08:22:12 -0400, deadalnix deadal...@gmail.com wrote: Immagine you want to define your own to!xxx() for your type xxx. (It is dumb case because you

Re: UFCS for D

2012-03-30 Thread Walter Bright
On 3/29/2012 4:34 PM, Steven Schveighoffer wrote: But I realized after typing about 2 messages in response to this (and deleting them), you are right, there is a fundamental problem here. Because the template instantiation is based solely on the type. It does *not* include the type and whatever

Re: UFCS for D

2012-03-30 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:jl4d2e$24i1$1...@digitalmars.com... On 2012-03-30 14:07, deadalnix wrote: all.d this the de facto standard here. I think it should become an official guideline. Why can't we get import foo.*;, then we don't have to relay on guidelines. The

Re: UFCS for D

2012-03-30 Thread Walter Bright
On 3/30/2012 12:11 PM, Steven Schveighoffer wrote: On Fri, 30 Mar 2012 14:27:43 -0400, Walter Bright newshou...@digitalmars.com wrote: I would argue that: 3. An extension method for an argument of type template parameter T will be looked up only in the instantiation scope. I don't think

Re: UFCS for D

2012-03-30 Thread Nick Sabalausky
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.wbzdtbo0eav7ka@localhost.localdomain... On Fri, 30 Mar 2012 04:21:12 -0400, Nick Sabalausky a@a.a wrote: Nick Sabalausky a@a.a wrote in message news:jl3n59$qf7$1...@digitalmars.com... Of course, I don't expect software to be

Re: UFCS for D

2012-03-30 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:udpabjwyzxlollbiz...@forum.dlang.org... On Friday, 30 March 2012 at 11:21:02 UTC, Steven Schveighoffer wrote: 4. Blow in bottom of cartridge, even though the pins are clean and free of dust (did this actually ever do anything?)

OT: video games (was Re: UFCS for D)

2012-03-30 Thread Adam D. Ruppe
On Friday, 30 March 2012 at 21:03:21 UTC, Nick Sabalausky wrote: Problem is, it also corrodes the connectors. Yea. But oh well, it can't be too bad... my old games all still work! Though, nowadays I tend to prefer the emulators. I have a playstation controller on usb, which works for all the

Re: UFCS for D

2012-03-30 Thread Piotr Szturmaj
Walter Bright wrote: On 3/30/2012 4:24 AM, Piotr Szturmaj wrote: Walter Bright wrote: I think it's far superior to the explicit friend thing in C++. Just curious. Did you take it from Delphi? :-) No. I've never looked at Delphi in detail. But in any case, for any language feature, there's

Re: video games (was Re: UFCS for D)

2012-03-30 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:ftnddrqdfbrtxiiwe...@forum.dlang.org... On Friday, 30 March 2012 at 21:03:21 UTC, Nick Sabalausky wrote: Problem is, it also corrodes the connectors. Yea. But oh well, it can't be too bad... my old games all still work! Though,

Re: video games (was Re: UFCS for D)

2012-03-30 Thread Bernard Helyer
Eeewww, I hate playing games on a PC: - Too many other processes to screw up the experience. Maybe if you were basing your experiences off of Windows 95. - I spent sooo many hours every day *working* at the computer desk, I *don't* want to be be glued to it for my entertainment, too. -

Re: UFCS for D

2012-03-30 Thread Walter Bright
On 3/30/2012 12:36 PM, Walter Bright wrote: On 3/30/2012 12:11 PM, Steven Schveighoffer wrote: On Fri, 30 Mar 2012 14:27:43 -0400, Walter Bright newshou...@digitalmars.com wrote: I would argue that: 3. An extension method for an argument of type template parameter T will be looked up only

Re: video games (was Re: UFCS for D)

2012-03-30 Thread Adam D. Ruppe
On Friday, 30 March 2012 at 22:43:00 UTC, Nick Sabalausky wrote: Oh *definitely*. BTW, Wii homebrew is *fantastic* for that. I don't have one of those thingys though. But that would *never* happen under US-style IP law. You know what's funny: I used to use an Atari ac adapter for my Sega.

Re: video games (was Re: UFCS for D)

2012-03-30 Thread Nick Sabalausky
Bernard Helyer b.hel...@gmail.com wrote in message news:jiioyfihtaqhpjafg...@forum.dlang.org... Eeewww, I hate playing games on a PC: - Too many other processes to screw up the experience. Maybe if you were basing your experiences off of Windows 95. Actually, it was pretty good back then,

Re: UFCS for D

2012-03-29 Thread deadalnix
Le 29/03/2012 02:21, Andrei Alexandrescu a écrit : http://www.reddit.com/r/programming/comments/rif9x/uniform_function_call_syntax_for_the_d/ Andrei The example of std.algorithm should have been used. The importance of such a syntax become obvious when using it.

Re: UFCS for D

2012-03-29 Thread Timon Gehr
On 03/29/2012 02:21 AM, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/rif9x/uniform_function_call_syntax_for_the_d/ Andrei I think the article does not mention that it also works for primitive types.

Re: UFCS for D

2012-03-29 Thread Simon
On 29/03/2012 01:21, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/rif9x/uniform_function_call_syntax_for_the_d/ Andrei I do wish you guys would just post the direct link as well. I hate reddit, I've zero interest in the comments on there and jumping through that

Re: UFCS for D

2012-03-29 Thread Nick Sabalausky
Simon s.d.hamm...@gmail.com wrote in message news:jl2j1u$1p3p$1...@digitalmars.com... On 29/03/2012 01:21, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/rif9x/uniform_function_call_syntax_for_the_d/ Andrei I do wish you guys would just post the direct link as

Re: UFCS for D

2012-03-29 Thread Walter Bright
On 3/29/2012 3:00 PM, Nick Sabalausky wrote: Yea, reddit *is* extremely slow whenever there's a reasonable number of comments. And *that's* with JS *off* (and using it that way prevents you from doing *anything* there other than read existing comments, which of course is retarded). And then with

Re: UFCS for D

2012-03-29 Thread Steven Schveighoffer
On Wed, 28 Mar 2012 21:53:57 -0400, Jesse Phillips jessekphillip...@gmail.com wrote: I won't be going out of my way to check this, but there is a mention of adding the range primatives. This works, but it doesn't make the class a range for any other module, so std.algorithms won't

Re: UFCS for D

2012-03-29 Thread bearophile
Timon Gehr: I think the article does not mention that it also works for primitive types. But there is a small problem with primitive properties: http://d.puremagic.com/issues/show_bug.cgi?id=7773 Bye, bearophile

Re: UFCS for D

2012-03-29 Thread Walter Bright
On 3/29/2012 4:34 PM, Steven Schveighoffer wrote: One misleading suggestion from the article however, it's not very easy to create non-friend non-member functions using UFCS, considering that every function in a given module is a friend. In order to do this, you would need a helper module for

Re: UFCS for D

2012-03-29 Thread Steven Schveighoffer
On Thu, 29 Mar 2012 19:46:24 -0400, Walter Bright newshou...@digitalmars.com wrote: On 3/29/2012 4:34 PM, Steven Schveighoffer wrote: One misleading suggestion from the article however, it's not very easy to create non-friend non-member functions using UFCS, considering that every

Re: UFCS for D

2012-03-29 Thread Walter Bright
On 3/29/2012 5:09 PM, Steven Schveighoffer wrote: The reason being, if you change anything in class A, you do not have to worry about the implementation of getXSquared, because it simply has no access to the private implementation. You only have to worry about internal methods, and friend

Re: UFCS for D

2012-03-29 Thread Walter Bright
On 3/29/2012 5:10 PM, Steven Schveighoffer wrote: Is anyone else's computer complaining about drdobbs having an invalid certificate? I read the article, and then I wanted to reference it again, and I got the error. Now I'm hesitant to accept the certificate because it seems to come from a

Re: UFCS for D

2012-03-29 Thread Steven Schveighoffer
On Thu, 29 Mar 2012 20:27:46 -0400, Walter Bright newshou...@digitalmars.com wrote: On 3/29/2012 5:09 PM, Steven Schveighoffer wrote: The reason being, if you change anything in class A, you do not have to worry about the implementation of getXSquared, because it simply has no access to

  1   2   >