Re: A simple question

2012-11-18 Thread Bernard Helyer
On Friday, 16 November 2012 at 01:00:58 UTC, Walter Bright wrote: On 11/15/2012 4:11 PM, Stugol wrote: am I likely to be told to fuck off again? I haven't seen Bernard lately, so probably not. I'm still about. Bernard was certainly out of line with that remark Absolutely. I let the NG ge

Re: A simple question

2012-11-17 Thread Rainer Schuetze
On 11/16/2012 4:08 AM, Nick Sabalausky wrote: On Fri, 16 Nov 2012 01:11:18 +0100 As for your specific issue, there's a few different factors: 1. Like other have already said, all the files need to be sent to DMD together (possibly by using RDMD) or, if not that, then at least their objects all

Re: A simple question

2012-11-16 Thread Jacob Carlborg
On 2012-11-16 11:16, Andrej Mitrovic wrote: Have you seen this comment: On 11/16/12, jerro wrote: doing that certainly would introduce some ambiguities. For example, consider this line: alias Foo Bar; Should Bar be a template or an instance of a template here? And my reply to that comment

Re: A simple question

2012-11-16 Thread Andrej Mitrovic
On 11/16/12, kenji hara wrote: > Done. > https://github.com/D-Programming-Language/dmd/pull/1295 Have you seen this comment: On 11/16/12, jerro wrote: > doing that certainly would introduce some ambiguities. For > example, consider this line: > > alias Foo Bar; > > Should Bar be a template or a

Re: A simple question

2012-11-16 Thread kenji hara
Done. https://github.com/D-Programming-Language/dmd/pull/1295 Kenji Hara 2012/11/16 kenji hara > Now I'm working that. > > Kenji Hara > > 2012/11/16 Don Clugston > >> One of the oldest open enhancement requests is on this topic: >> >> http://d.puremagic.com/issues/**show_bug.cgi?id=1012

Re: A simple question

2012-11-16 Thread kenji hara
Now I'm working that. Kenji Hara 2012/11/16 Don Clugston > On 16/11/12 05:15, Rob T wrote: > >> On Friday, 16 November 2012 at 03:41:45 UTC, Stugol wrote: >> >>> Event_t e2;// Will compile! >>> >>> Yeah but that kinda blows, doesn't it? >>> >>> >> I found it surprising or unintuiti

Re: A simple question

2012-11-16 Thread Don Clugston
On 16/11/12 05:15, Rob T wrote: On Friday, 16 November 2012 at 03:41:45 UTC, Stugol wrote: Event_t e2;// Will compile! Yeah but that kinda blows, doesn't it? I found it surprising or unintuitive that the !() is required, and I do want to know what is the reasoning behind it, One o

Re: A simple question

2012-11-15 Thread Jacob Carlborg
On 2012-11-16 05:26, jerro wrote: I don't know whether the language could be changed to support code like: struct Foo(){} Foo foo; but doing that certainly would introduce some ambiguities. For example, consider this line: alias Foo Bar; Should Bar be a template or an instance of a template

Re: A simple question

2012-11-15 Thread Rob T
On Friday, 16 November 2012 at 04:26:31 UTC, jerro wrote: I found it surprising or unintuitive that the !() is required, and I do want to know what is the reasoning behind it I don't know whether the language could be changed to support code like: struct Foo(){} Foo foo; but doing that cert

Re: A simple question

2012-11-15 Thread jerro
I found it surprising or unintuitive that the !() is required, and I do want to know what is the reasoning behind it I don't know whether the language could be changed to support code like: struct Foo(){} Foo foo; but doing that certainly would introduce some ambiguities. For example, consi

Re: A simple question

2012-11-15 Thread Rob T
On Friday, 16 November 2012 at 03:41:45 UTC, Stugol wrote: Event_t e2;// Will compile! Yeah but that kinda blows, doesn't it? I found it surprising or unintuitive that the !() is required, and I do want to know what is the reasoning behind it, but it's not that big of a deal becaus

Re: A simple question

2012-11-15 Thread Jesse Phillips
On Friday, 16 November 2012 at 00:55:36 UTC, Stugol wrote: On Friday, 16 November 2012 at 00:20:00 UTC, Adam D. Ruppe wrote: On Friday, 16 November 2012 at 00:11:19 UTC, Stugol wrote: As to the module bug, I refer you to this error I just received after trying to use D again after a long absenc

Re: A simple question

2012-11-15 Thread Stugol
On Friday, 16 November 2012 at 03:32:06 UTC, Rob T wrote: I encountered this same "wtf???" today. Apparently, even with a default type specified, you still have to put in a !(). I don't know what the reasoning was behind making this seeming redundancy a requirement, and it partially defeats t

Re: A simple question

2012-11-15 Thread Stugol
On Friday, 16 November 2012 at 03:24:28 UTC, Nick Sabalausky wrote: Unless you really are requiring that TEventArgs must be either EventArgs or something derived from EventArgs. (Maybe you are?) I am. You may be able to do this: alias Event!() Event; But I don't know if that would resu

Re: A simple question

2012-11-15 Thread Rob T
On Friday, 16 November 2012 at 02:55:54 UTC, Stugol wrote: Also, I'm having difficulty specifying a default specialisation for a template class: class Event(TEventArgs : EventArgs = EventArgs) { } Usage: Event!() e1; // Works Event e2;// Won't compile How can I have

Re: A simple question

2012-11-15 Thread Rob T
On Friday, 16 November 2012 at 02:55:54 UTC, Stugol wrote: Also, I'm having difficulty specifying a default specialisation for a template class: class Event(TEventArgs : EventArgs = EventArgs) { } Usage: Event!() e1; // Works Event e2;// Won't compile How can I have

Re: A simple question

2012-11-15 Thread Adam D. Ruppe
On Friday, 16 November 2012 at 02:55:54 UTC, Stugol wrote: I'm not quite sure what purpose the MODULE keyword serves in any case. I have a file "Include.D\Infinity\Standard\Mixins\Event.d", but if I give it a module name of "infinity.standard.event" it doesn't work. I have to include the ".mix

Re: A simple question

2012-11-15 Thread Nick Sabalausky
On Fri, 16 Nov 2012 03:55:53 +0100 "Stugol" wrote: > On Friday, 16 November 2012 at 02:22:32 UTC, Adam D. Ruppe wrote: > > On Friday, 16 November 2012 at 02:00:05 UTC, Stugol wrote: > >> Hmm, that makes a bit more sense now I guess. Funny, I don't > >> remember seeing that rule when I read the d

Re: A simple question

2012-11-15 Thread Nick Sabalausky
On Fri, 16 Nov 2012 01:11:18 +0100 "Stugol" wrote: > On Thursday, 15 November 2012 at 23:56:49 UTC, David Nadlinger > wrote: > > On Thursday, 15 November 2012 at 21:25:03 UTC, Stugol wrote: > >> However, when I post on these forums to ask for bugs to be > >> fixed (e.g. the defective MODULE key

Re: A simple question

2012-11-15 Thread Stugol
On Friday, 16 November 2012 at 02:22:32 UTC, Adam D. Ruppe wrote: On Friday, 16 November 2012 at 02:00:05 UTC, Stugol wrote: Hmm, that makes a bit more sense now I guess. Funny, I don't remember seeing that rule when I read the documentation. It might not be clear, but it is there: http://dla

Re: A simple question

2012-11-15 Thread Adam D. Ruppe
On Friday, 16 November 2012 at 02:00:05 UTC, Stugol wrote: Hmm, that makes a bit more sense now I guess. Funny, I don't remember seeing that rule when I read the documentation. It might not be clear, but it is there: http://dlang.org/module.html "The ModuleDeclaration sets the name of the modu

Re: A simple question

2012-11-15 Thread Stugol
On Friday, 16 November 2012 at 01:14:18 UTC, Adam D. Ruppe wrote: The module thing is only optional in simple cases, where the name has no dots and matches the filename. If you are using packages, the module line is required to get that full name registered in the file. Hmm, that makes a b

Re: A simple question

2012-11-15 Thread jerro
I believe this post occurred *after* I had already been met with hostility. That post was actually the very first post in the thread.

Re: A simple question

2012-11-15 Thread Adam D. Ruppe
On Friday, 16 November 2012 at 00:55:36 UTC, Stugol wrote: The point is, it says that kind of crap all the time. Even when it doesn't, if I take the MODULE statement out, it comes back. The module keyword is supposed to be optional. Oh, I see what's going on now. The module thing is only opti

Re: A simple question

2012-11-15 Thread Walter Bright
On 11/15/2012 4:11 PM, Stugol wrote: am I likely to be told to fuck off again? I haven't seen Bernard lately, so probably not. Bernard was certainly out of line with that remark, but we try not to censor people here. Peoples' comments are their own responsibility.

Re: A simple question

2012-11-15 Thread Stugol
On Friday, 16 November 2012 at 00:39:48 UTC, bearophile wrote: Stugol: Huh? This usually happens if I omit the module statement at the top of EVERY DAMN FILE (why???) but in this case I haven't omitted it, yet I'm still getting the error. ... What the HELL is this "ModuleInfo", why is it nec

Re: A simple question

2012-11-15 Thread Stugol
On Friday, 16 November 2012 at 00:29:24 UTC, David Nadlinger wrote: On Friday, 16 November 2012 at 00:11:19 UTC, Stugol wrote: Are these bugs likely to be addressed, or am I likely to be told to fuck off again? Ah, now things become clearer. The issue here is that what you are describing is n

Re: A simple question

2012-11-15 Thread Stugol
On Friday, 16 November 2012 at 00:20:00 UTC, Adam D. Ruppe wrote: On Friday, 16 November 2012 at 00:11:19 UTC, Stugol wrote: As to the module bug, I refer you to this error I just received after trying to use D again after a long absence: "Error 42: Symbol Undefined _D8infinity8standard3api7w

Re: A simple question

2012-11-15 Thread Adam D. Ruppe
On Friday, 16 November 2012 at 00:29:24 UTC, David Nadlinger wrote: Granted, the diagnostics for it are terrible, you just get to see the raw linker error message. This is potentially very easy to fix... $ cat demangle.d import core.demangle; import std.stdio; import std.regex; string dem(Cap

Re: A simple question

2012-11-15 Thread David Nadlinger
On Friday, 16 November 2012 at 00:11:19 UTC, Stugol wrote: Are these bugs likely to be addressed, or am I likely to be told to fuck off again? Ah, now things become clearer. The issue here is that what you are describing is not an actual bug, but the consequence of you not specifying one of t

Re: A simple question

2012-11-15 Thread Adam D. Ruppe
On Friday, 16 November 2012 at 00:11:19 UTC, Stugol wrote: As to the module bug, I refer you to this error I just received after trying to use D again after a long absence: "Error 42: Symbol Undefined _D8infinity8standard3api7windows12__ModuleInfoZ d:\Documents\Programming\WindowsApp1\WindowsA

Re: A simple question

2012-11-15 Thread Stugol
On Thursday, 15 November 2012 at 23:56:49 UTC, David Nadlinger wrote: On Thursday, 15 November 2012 at 21:25:03 UTC, Stugol wrote: However, when I post on these forums to ask for bugs to be fixed (e.g. the defective MODULE keyword, or the linker not supporting spaces in paths), you say that's n

Re: A simple question

2012-11-15 Thread David Nadlinger
On Thursday, 15 November 2012 at 23:56:49 UTC, David Nadlinger wrote: On Thursday, 15 November 2012 at 21:25:03 UTC, Stugol wrote: However, when I post on these forums to ask for bugs to be fixed (e.g. the defective MODULE keyword, or the linker not supporting spaces in paths), you say that's n

Re: A simple question

2012-11-15 Thread David Nadlinger
On Thursday, 15 November 2012 at 21:25:03 UTC, Stugol wrote: However, when I post on these forums to ask for bugs to be fixed (e.g. the defective MODULE keyword, or the linker not supporting spaces in paths), you say that's not going to happen anytime soon. Please provide links to that statem

Re: A simple question

2012-11-15 Thread Stugol
On Thursday, 15 November 2012 at 22:43:22 UTC, Jesse Phillips wrote: To say that being told you won't see it any times soon is "flaming" is exaggeration. If you have a real example of flames then please do bring that forward, but there isn't much the community will be able to do about it. I

Re: A simple question

2012-11-15 Thread Jesse Phillips
On Thursday, 15 November 2012 at 21:25:03 UTC, Stugol wrote: When I post on these forums to ask for new features (e.g. iterators), you say that you won't be adding any new features at the moment, and that you are instead concentrating on making the language stable and usable. However, when I