Re: @noreturn property

2010-10-21 Thread Bernard Helyer
> > Thoughts? I really, really like the idea.

Re: What can the community do to help D?

2010-10-27 Thread Bernard Helyer
On Sat, 23 Oct 2010 16:09:37 +0100, Peter Alexander wrote: > Should people work on other D compilers (gdc and ldc in particular)? Is > this even possible without a formal language specification? God, I hope so, because I've already sunk enough time into SDC. I'd like to have a usable compiler at

Re: why a part of D community do not want go to D2 ?

2010-11-11 Thread Bernard Helyer
On Wed, 10 Nov 2010 16:26:52 -0500, Sean Kelly wrote: > Also, I do still feel > that the druntime SVN shouldn't have to be the repository used for every > compiler runtime or garbage collector implementation. I am attempting to write a compiler in D2 (github.com/bhelyer/SDC), and I can't help but

Re: D1 -> D2

2010-11-19 Thread Bernard Helyer
On Thu, 18 Nov 2010 19:58:42 +, %u wrote: > == Quote from Denis Koroskin (2kor...@gmail.com)'s article >> On Thu, 18 Nov 2010 22:19:12 +0300, Walter Bright >> wrote: >> > Steven Schveighoffer wrote: >> >> My recommendation -- when you are ready, switch wholly to D2. Don't >> >> bother with c

Re: Please vote on std.datetime

2010-12-09 Thread Bernard Helyer
I vote yes. Why? Because Phobos has needed a solid module for working with dates and time for a long time, and neither std.date or std.gregorian filled that need -- std.date is buggy beyond repair, and std.gregorian's API doesn't make my normal tasks easy. std.datetime's API is fairly intuitive

Re: Please vote on std.datetime

2010-12-11 Thread Bernard Helyer
On Thu, 09 Dec 2010 20:54:14 -0800, Jonathan M Davis wrote: > In any case, you've found bugs, please point them out. I can't fix it if > I don't know that it's broken. The localtime it retrieves is incorrect, over here. It is always one and a half hours slow. I am retrieving it using Clock.currTi

assert(object) fails to adhere to the principle of least surprise

2011-01-29 Thread Bernard Helyer
If I do if (object) { ... } What happens is fairly obvious, and is equivalent to if (object !is null) { } However, if I do auto object = new Object(); assert(object); What I expect to happen is assert(object !is null); Just as in the above example. What h

Re: assert(object) fails to adhere to the principle of least surprise

2011-01-29 Thread Bernard Helyer
A few corrections. On Sat, 29 Jan 2011 12:02:57 +, Bernard Helyer wrote: > auto object = new Object(); > assert(object); This segfaults if object is null, which is obviously impossible in this example. > > FWIW, GDC doesn't do the rewrite, On structs, it do

Re: assert(object) fails to adhere to the principle of least surprise

2011-01-29 Thread Bernard Helyer
Further correction. On Sat, 29 Jan 2011 12:09:41 +, Bernard Helyer wrote: >> FWIW, GDC doesn't do the rewrite, > > On structs, it does the rewrite on class instances (boo!). It checks for null then checks the invariant. I think that's a good compromise, given tha

Re: Suggestion: New D front page

2011-01-29 Thread Bernard Helyer
I like it. D's web presence needs work all-round.

Re: On 80 columns should (not) be enough for everyone

2011-02-01 Thread Bernard Helyer
Here's SDC, just for kicks: [SDC]$ find src/sdc -name "*.d" -print0 | xargs --null wc -l | sort -rn | head -n 1 12545 total [SDC]$ find src/sdc -name "*.d" -print0 | xargs --null grep '.\{81,\}' | cut -f1 -d:| uniq -c | sort -nr 81 src/sdc/gen/value.d 44 src/sdc/gen/expression.d

Re: std.xml should just go

2011-02-02 Thread Bernard Helyer
On Wed, 02 Feb 2011 17:33:42 -0600, Andrei Alexandrescu wrote: > > Should we nuke it? >From orbit; it's the only way to be sure. Remove it with utter prejudice, before someone else makes the mistake of trying to use it.

Re: std.xml should just go

2011-02-02 Thread Bernard Helyer
On Wed, 02 Feb 2011 16:28:27 -0800, Brad Roberts wrote: > I haven't used it nor am likely to, > but I also have trouble ruling out the potential that there's users for > which it works and they just aren't talking about it here. I do not believe that it's possible that anyone has used std.xml su

Re: GDC Explorer - an online disassembler for D

2012-09-21 Thread Bernard Helyer
On Friday, 21 September 2012 at 10:04:00 UTC, Jens Mueller wrote: Andrei Alexandrescu wrote: I've met Matt Goldbolt, the author of the GCC Explorer at http://gcc.godbolt.org - a very handy online disassembler for GCC. This is not a disassembler. It just stops compilation before the assembler

Should this be flagged as a warning?

2012-09-24 Thread Bernard Helyer
I just found a bug in my code that showed up in this fragment: match(ts, TokenType.OpenParen); ie.type == parseType(ts); Obviously I meant ie.type = parseType(ts); but wrote == because I'm an idiot. If parseType wasn't a function with side effects, -w would have flagged it as an ex

Should this be flagged as a warning?

2012-09-25 Thread Bernard Helyer
I tried to post this last night, but the NG wasn't having any of it. I found myself writing a bug that looked like this match(ts, TokenType.Is); match(ts, TokenType.OpenParen); isExp.type == parseType(ts); The bug being of course, that a type is parsed and ts is modified, so the ex

Re: Should this be flagged as a warning?

2012-09-25 Thread Bernard Helyer
On Tuesday, 25 September 2012 at 19:29:26 UTC, Bernard Helyer wrote: I tried to post this last night, but the NG wasn't having any of it. I found myself writing a bug that looked like this match(ts, TokenType.Is); match(ts, TokenType.OpenParen); isExp.type == parseType(ts);

Re: Should this be flagged as a warning?

2012-09-25 Thread Bernard Helyer
On Tuesday, 25 September 2012 at 21:15:24 UTC, bearophile wrote: The top level operation is the ==, that is a pure expression, so maybe dmd should warn on this. Yeah, I thought so but I'm not sure. Hence me asking.

Re: Dangling if

2012-09-27 Thread Bernard Helyer
On Friday, 28 September 2012 at 02:12:20 UTC, Andrej Mitrovic wrote: This is a very specific situation that could be handled unless it is too complex to mess with the lexer. If there's an if statement which isn't followed by a block but is followed by a blank line emit a warning. Sounds simple

Re: I have a feature request: "Named enum scope inference"

2012-09-28 Thread Bernard Helyer
On Saturday, 29 September 2012 at 05:08:12 UTC, Tommi wrote: then that's completely an unacceptable argument. The question of how much work it is to implement, has nothing to do with whether it's a good feature to have or not. And that's what we're discussing. Except a theoretical feature doe

Re: I have a feature request: "Named enum scope inference"

2012-09-29 Thread Bernard Helyer
Yeah, to respond to the larger topic, the with statement is more than enough here. I'm not convinced that complicating lookup rules further is worth it.

Re: [OT] Gibberish webpages

2012-10-01 Thread Bernard Helyer
On Monday, 1 October 2012 at 12:54:45 UTC, Andrei Alexandrescu wrote: I have a Google alert on "D programming language" and it sometimes yields pages like this: http://swpp.co.uk/lovegovee.php?lib=1612 It looks like random sentences either scraped from other sites or generated using a languag

Re: A study on immutability usage

2012-10-01 Thread Bernard Helyer
Our results from 14 Java applications Only 14? So it's a useless statistic. Good to know. The rest seemed interesting.

Re: D3 suggestion: rename "range" to "sequence"

2012-10-03 Thread Bernard Helyer
On Thursday, 4 October 2012 at 03:10:56 UTC, Alex Rønne Petersen wrote: Look, not to sound dismissive, but D3 is not a thing and likely will never be. Well _I'll_ be dismissive. This idea, even if we were doing the D3 thing, is completely pointless. D != maths. I don't know why I have to point

Re: Proposal: clean up semantics of array literals vs string literals

2012-10-04 Thread Bernard Helyer
On Tuesday, 2 October 2012 at 15:14:10 UTC, Andrei Alexandrescu wrote: First, I think zero-terminated strings shouldn't be needed frequently enough in D code to make this necessary. My experience has been much different. Interfacing with C occurs in nearly every D program I write, and I usually

Re: Proposal: clean up semantics of array literals vs string literals

2012-10-04 Thread Bernard Helyer
On Tuesday, 2 October 2012 at 14:03:36 UTC, monarch_dodra wrote: If you want 0 termination, then make it explicit, that's my opinion. That ship has long since sailed. You'll break code in an incredibly dangerous way if you were to change it now.

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: Seeking research papers on D

2012-11-18 Thread Bernard Helyer
On Sunday, 18 November 2012 at 08:35:51 UTC, Philippe Sigaud wrote: I remember reading an article on graphs using D a few years ago. Ah, there it is: http://www.massey.ac.nz/~kahawick/cstn/043/cstn-043.pdf Hey, that guy was my lecturer! He turned me onto D in the first place. Neat. :D

Re: moving away from changelog.dd?

2012-12-23 Thread Bernard Helyer
On Monday, 24 December 2012 at 03:48:47 UTC, Andrei Alexandrescu wrote: Some other way may as well be introduce entries in bugzilla. Is adding things that don't belong in bugzilla to bugzilla really a great idea?

Re: DMD build

2012-12-28 Thread Bernard Helyer
On Saturday, 29 December 2012 at 02:11:03 UTC, Jonathan M Davis wrote: I would expect rebasing to fix it trivially so long as git mv was used rather than renaming the file with the OS' commands, but I don't know for sure. - Jonathan M Davis IIRC, Git can figure out if a raw renamed file (a n

Re: Vote on std.regex (FReD)

2011-10-24 Thread Bernard Helyer
Yes.

Re: assert(obj) is an atrocity

2011-11-09 Thread Bernard Helyer
Agreed on all points. It's pathetic that this is still a problem. Check the object for null. To not do so is a _bug_, even if Walter disagrees. SDC will not replicate DMD's behaviour in this regard. -Bernard.

Re: assert(obj) is an atrocity

2011-11-09 Thread Bernard Helyer
Because it's a design issue, not a learning issue?

Re: CTFE is getting there

2011-11-12 Thread Bernard Helyer
On Sun, 13 Nov 2011 01:28:54 +0100, Martin Nowak wrote: > D_InlineAsm_X86 is just a normal version tag and does not imply asm > code, so it has to. D_InlineAsm_X86 is intended to be defined when an implementation supports inline asm for x86. The compiler, when running CTFE, does not, so it shou

Re: Translation of C struct to D

2011-11-15 Thread Bernard Helyer
kbuild is almost certainly not linking in phobos.

Re: Curl wrapper review

2011-11-15 Thread Bernard Helyer
I'll just post my thoughts here while they're fresh. It looks good. The documentation is what I'd expect from a Phobos module, as is the naming convention. auto _basicFtp(T)(const(char)[] url, const(void)[] sendData, Ftp client) If you don't want people using it, shouldn't it be marked private

Re: newsgroup web viewer

2011-11-15 Thread Bernard Helyer
On Tue, 15 Nov 2011 22:48:55 -0800, Walter Bright wrote: > russian porn spam WHY WAS I NOT INFORMED? I mean, terrible stuff. :o

Re: newsgroup web viewer

2011-11-17 Thread Bernard Helyer
On Wed, 16 Nov 2011 20:04:39 +1300, Bernard Helyer wrote: On Tue, 15 Nov 2011 22:48:55 -0800, Walter Bright wrote: russian porn spam WHY WAS I NOT INFORMED? I mean, terrible stuff. :o Forgive me, but I'm just trying out Opera's NG reader.

Re: In my whole life

2011-11-22 Thread Bernard Helyer
Don't give the mouth breather the pleasure of a reply, please.

Re: Doom3 (id tech 4) port/binding in D ?

2011-11-23 Thread Bernard Helyer
On Thu, 24 Nov 2011 09:38:56 +1300, Trass3r wrote: Also,, in any case, you will want to wait until the community gains some direction and organization. Eventually something like iodoom3 should take over control and aggregate the useful patches floating around in space. Currently there are

Re: D Parser in D

2011-11-25 Thread Bernard Helyer
On Sat, 26 Nov 2011 07:58:19 +1300, NMS wrote: Is there a D parser written in D? - C strings kill me. Thanks, NMS SDC[1] has one, but it's being lazy loaded in -- that is, it's not complete. [1]:http://github.com/bhelyer/SDC

If I use an extern (C) interface, can I use shared objects in Linux from DMD?

2011-12-02 Thread Bernard Helyer
I don't need to share GC memory across instances or anything, but I would be interested in using a C interface if possible. If not, what's blocking it. If yes, how would one initialise the runtime? I know there's a Windows DLL article on the website, but I'm interested in Linux. I know GDC can d

Re: Chinese characters printing issue under windows

2011-12-08 Thread Bernard Helyer
This is very useful information, so thank you for posting it, but this looks like something that Phobos should pick up automatically. I would note that the program works perfectly in Linux without the need for setting the locale, so I'd imagine its some encoding issue? Not really my area of exp

Re: SDC & ddmd

2011-12-09 Thread Bernard Helyer
Hi, primary author of SDC here. Existing compilers (DMD, LDC, GDC, DDMD) all descend directly from the DMDFE. The DMDFE is thus the only real source of true semantics of the language, except where directly contradicted by Walter, Andrei, or TDPL. For the ecosystem to not become inbred, a new

Re: SDC & ddmd

2011-12-10 Thread Bernard Helyer
We intend to be compatible with DMD to a point. Where we are not, will be through omission. Off the top of my head: *delete will not be implemented. *scope classes will not be implemented. *complex numbers will not be implemented. *version/debug levels will not be implemented, as their semantics

Re: SDC & ddmd

2011-12-10 Thread Bernard Helyer
On Saturday, 10 December 2011 at 09:47:14 UTC, Timon Gehr wrote: On 12/10/2011 10:40 AM, Bernard Helyer wrote: We intend to be compatible with DMD to a point. Where we are not, will be through omission. Off the top of my head: [...] *D's forward reference and module order bugs will n

Re: SDC & ddmd

2011-12-10 Thread Bernard Helyer
On Saturday, 10 December 2011 at 09:51:08 UTC, Somedude wrote: Le 10/12/2011 08:54, Piotr Szturmaj a écrit : And it would be *far* more frustrating for the users, who would observe different behaviors and different bugs on different compilers. Hence that would mean that writing portable code ne

Re: Why D const is annoying

2011-12-10 Thread Bernard Helyer
On Saturday, 10 December 2011 at 11:11:44 UTC, Walter Bright wrote: On 12/10/2011 3:04 AM, Mehrdad wrote: On 12/10/2011 3:01 AM, Walter Bright wrote: On 12/10/2011 2:34 AM, Mehrdad wrote: ... and another... struct Matrix(T, size_t N = 1) { public auto mul(Matrix!(T, N) other) const { return t

Re: SDC & ddmd

2011-12-11 Thread Bernard Helyer
On Saturday, 10 December 2011 at 11:17:19 UTC, Timon Gehr wrote: On 12/10/2011 10:54 AM, Bernard Helyer wrote: On Saturday, 10 December 2011 at 09:47:14 UTC, Timon Gehr wrote: How is that an 'omission'? Just my lame attempt at humour. :P Should have thought of that. =) Do you al

Re: SDC & ddmd

2011-12-19 Thread Bernard Helyer
On Monday, 19 December 2011 at 22:59:37 UTC, Trass3r wrote: Are you building SDC in the same fashion as clang by chance where the pieces are modular and usable else ware? (such as the parser being able to be used in an ide?) It isn't as well-conceived. Hence the name, it started out as a toy

Re: CURL Wrapper: Vote Thread

2011-12-20 Thread Bernard Helyer
Yes.

Re: Compiler for multiple languages, including D

2012-01-06 Thread Bernard Helyer
On Thursday, 5 January 2012 at 23:08:14 UTC, Vladimir Panteleev wrote: On Thursday, 5 January 2012 at 22:53:10 UTC, Stewart Gordon wrote: Or is it really not an online compiler, but rather an online interface to a collection of compilers that the author has on his computer? Um... yes. What d

Re: [OT] Programming language WATs

2012-01-20 Thread Bernard Helyer
On Friday, 20 January 2012 at 15:40:44 UTC, Robert Clipsham wrote: Just came across this amusing 4 minute video: https://www.destroyallsoftware.com/talks/wat Anyone have any other WATs you can do in other languages? Bonus points for WATs you can do in D. void main() { import std.stdio;

Can gc_stats be exposed through core.memory?

2012-01-21 Thread Bernard Helyer
With a big fat "subject to change use at own risk" warning attached?

Re: Do we need Win95/98/Me support?

2012-01-23 Thread Bernard Helyer
On Monday, 23 January 2012 at 11:15:02 UTC, Nick Sabalausky wrote: [1] I don't even know what the fuck to call any of them anymore. "Window manager", "Desktop Environment", "Shell", "Compositor", and if I'm not mistaken there's even some damn hybrids or some such, and some can be used together,

Re: A modest proposal

2012-01-23 Thread Bernard Helyer
On Tuesday, 24 January 2012 at 02:17:09 UTC, Trass3r wrote: Adapt the bot or configure your client to ignore the bot. Plain simple. You know who else configured their client to ignore bots? Bin Laden. You thought I was going to say Hitler, didn't you? Well that's silly, Hitler was long dead

Re: Can't the dmd source files finally get a proper C++ file extension?

2012-01-23 Thread Bernard Helyer
On Tuesday, 24 January 2012 at 02:35:43 UTC, Trass3r wrote: It's really annoying. clang++ gives a lot of warnings and IDEs are confused as well. Queue Walter saying that it's needed for some ancient platform D has never and will never exist/ed on in three... two...

Re: A modest proposal

2012-01-23 Thread Bernard Helyer
On Tuesday, 24 January 2012 at 03:01:25 UTC, Jonathan M Davis wrote: On Monday, January 23, 2012 19:52:27 Brad Anderson wrote: Jonathan, Swiftly closing them is causing real pain for some of us. Certainly he could fix them and keep a log of the ones he fixed then actually close, say, 3 a day on

Re: A modest proposal

2012-01-23 Thread Bernard Helyer
On Tuesday, 24 January 2012 at 03:52:25 UTC, Nick Sabalausky wrote: "Bernard Helyer" wrote in message news:zqqqybjeqepidctwz...@dfeed.kimsufi.thecybershadow.net... On Tuesday, 24 January 2012 at 03:01:25 UTC, Jonathan M Davis wrote: On Monday, January 23, 2012 19:52:27 Brad Ande

Re: A modest proposal

2012-01-23 Thread Bernard Helyer
On Tuesday, 24 January 2012 at 05:25:59 UTC, Jonathan M Davis wrote: On Monday, January 23, 2012 21:58:18 Andrei Alexandrescu wrote: Wait, Brad was being funny. No? Well, if he was, it went completely over my head. - Jonathan M Davis Jonathan, Swiftly http://en.wikipedia.org/wiki/Jonatho

Re: C/C++ backend for DMD?

2012-01-25 Thread Bernard Helyer
On Wednesday, 25 January 2012 at 12:03:15 UTC, Nick Sabalausky wrote: wrote in message news:op.v8mxx6s9xa30qa@marton-pc... Hi, I have been thinking . Would not C and C++ backend would make DMD more versatile? D language could be used in many platforms easily. D language could be used in .ne

Why not allow people to submit name:url associations for dman?

2012-01-30 Thread Bernard Helyer
I've found myself using dman more than I thought I would, but it is a little annoying when it fails to find a page and I navigate to it manually -- I wouldn't mind if I could improve dman for the next release. Perhaps a text file on GitHub we could submit pull requests to? Thanks, -Bernard.

Re: Opinion of February 2012

2012-02-04 Thread Bernard Helyer
On Saturday, 4 February 2012 at 20:58:23 UTC, Walter Bright wrote: On 2/3/2012 4:11 PM, bearophile wrote: Aren't less than 10 minutes enough to fix this simple problem? I don't know why Walter likes to use ".c" as suffix for those files, I don't remember his answers on this topic, I have never

[OT] I ported Empire to D2 and made it cross platform.

2012-02-05 Thread Bernard Helyer
I've tried multiple times to contact Walter through his websites, but apparently _that's_ a dead end so... http://i.imgur.com/DzrN6.png Look at it! The selection pulses! Empire's never looked so good! There are some rough edges; the save games fail to load, demo isn't working, the text log is

Re: libphobos.so libdruntime.so

2012-02-05 Thread Bernard Helyer
On Sunday, 5 February 2012 at 03:58:03 UTC, Steven Schveighoffer wrote: Static linking has its advantages too, but as far as phobos and druntime are concerned, dynamic linking would be way way better. Bollocks. In the general case (which is silly to talk about, I'll admit) I'd take static lin

Re: [OT] I ported Empire to D2 and made it cross platform.

2012-02-05 Thread Bernard Helyer
On Monday, 6 February 2012 at 04:33:56 UTC, Caligo wrote: On Sun, Feb 5, 2012 at 8:44 PM, Bernard Helyer wrote: I've tried multiple times to contact Walter through his websites, but apparently _that's_ a dead end so... http://i.imgur.com/DzrN6.png Look at it! The selection pulses

Re: [OT] I ported Empire to D2 and made it cross platform.

2012-02-06 Thread Bernard Helyer
On Monday, 6 February 2012 at 12:42:31 UTC, Stewart Gordon wrote: On 06/02/2012 02:44, Bernard Helyer wrote: I've tried multiple times to contact Walter through his websites, but apparently _that's_ a dead end so... http://i.imgur.com/DzrN6.png Look at it! The selection pulses

Re: [OT] I ported Empire to D2 and made it cross platform.

2012-02-06 Thread Bernard Helyer
On Monday, 6 February 2012 at 10:55:22 UTC, Mattbeui wrote: The source code is open or you did reverse engineering? On classicempire.com there's a version for windows written in an old version of D (old enough that it wouldn't even compile with a modern copy of DMD1). I took that code and por

Re: [OT] I ported Empire to D2 and made it cross platform.

2012-02-06 Thread Bernard Helyer
On Monday, 6 February 2012 at 18:04:24 UTC, Stewart Gordon wrote: On 06/02/2012 13:48, Bernard Helyer wrote: I started with Walter's original 2.01 D release. The font I'm using is proportional, so I've not a problem there. You mean "The font I'm using is fixed&qu

Re: [OT] I ported Empire to D2 and made it cross platform.

2012-02-06 Thread Bernard Helyer
On Tuesday, 7 February 2012 at 06:18:24 UTC, Walter Bright wrote: On 2/6/2012 4:42 AM, Stewart Gordon wrote: The version I've contributed I emailed to Walter and he eventually put it up on the website. Is there any reason the same can't be done in this instance? Nope. Send it to me. Awesome

Re: Why I don't want D to expand

2012-02-07 Thread Bernard Helyer
I understand you have daddy issues that come out when you drink, but can't you start a diary or something?

Re: Why I don't want D to expand

2012-02-08 Thread Bernard Helyer
On Wednesday, 8 February 2012 at 08:19:28 UTC, Bee wrote: Bernard Helyer wrote: I understand you have daddy issues that come out when you drink, but can't you start a diary or something? You are saying what, you lil prick? I'm saying you get drunk and post random shit because

Re: D-

2012-02-10 Thread Bernard Helyer
On Saturday, 11 February 2012 at 02:13:19 UTC, Tim Krimm wrote: If you make a subset of D, it would most likely be named Mini-D. But at that point you've got an enhanced C without going C++. Yes and that probably would be better than what I have now. Going back and forth programming in C/C++

Re: Why I don't want D to expand

2012-02-12 Thread Bernard Helyer
On Sunday, 12 February 2012 at 06:38:25 UTC, Adam wrote: Bernard Helyer wrote: On Wednesday, 8 February 2012 at 08:19:28 UTC, Bee wrote: Bernard Helyer wrote: I understand you have daddy issues that come out when you drink, but can't you start a diary or something? You are saying what

Re: Why I don't want D to expand

2012-02-12 Thread Bernard Helyer
On Sunday, 12 February 2012 at 14:31:44 UTC, Nick Sabalausky wrote: "Bernard Helyer" wrote in message news:gtnbsoxlyvmpbptup...@dfeed.kimsufi.thecybershadow.net... On Sunday, 12 February 2012 at 06:38:25 UTC, Adam wrote: Bernard Helyer wrote: On Wednesday, 8 February 2012 at 08

Re: newbie -- how to build module?

2012-02-13 Thread Bernard Helyer
On Monday, 13 February 2012 at 19:27:39 UTC, Walter Bright wrote: On 2/13/2012 6:15 AM, Alf P. Steinbach wrote: Are there group charters? Not much beyond the descriptions here: http://digitalmars.com/NewsGroup.html We're pretty informal. I read that last word as 'normal' and was about to

Re: VisualD Console WIndow Disappears

2012-02-15 Thread Bernard Helyer
On Wednesday, 15 February 2012 at 07:27:56 UTC, RedShift wrote: So, I'm just starting to get into D, using the extension for VS called Visual D. Is there any way to stop the console from disappearing like in C++? Like C + F5 (which doesn't seem to work). Or like a getline? Just pop a stdin.re

Re: The Right Approach to Exceptions

2012-02-18 Thread Bernard Helyer
On Sunday, 19 February 2012 at 02:27:07 UTC, Andrei Alexandrescu wrote: On 2/18/12 6:28 PM, Jonathan M Davis wrote: On Saturday, February 18, 2012 17:53:52 Andrei Alexandrescu wrote: On 2/18/12 5:47 PM, Jakob Ovrum wrote: you are basically arguing against exceptions here I must have argued m

Re: empty arrays and cast(bool): WAT

2012-02-18 Thread Bernard Helyer
On Sunday, 19 February 2012 at 03:33:14 UTC, Timon Gehr wrote: That would potentially break code. It would also potentially fix code. Well that's the stupidest thing I've read today. Can you point to people using it in the way that you expect? Besides which, that's just about the worst way

Re: empty arrays and cast(bool): WAT

2012-02-18 Thread Bernard Helyer
On Sunday, 19 February 2012 at 04:01:45 UTC, Timon Gehr wrote: On 02/19/2012 04:56 AM, Bernard Helyer wrote: On Sunday, 19 February 2012 at 03:33:14 UTC, Timon Gehr wrote: That would potentially break code. It would also potentially fix code. Well that's the stupidest thing I've

Re: std.collection lets rename it into std,ridiculous.

2012-02-19 Thread Bernard Helyer
Maybe when you learn to type like an adult people will listen to you?

Re: std.collection lets rename it into std,ridiculous.

2012-02-19 Thread Bernard Helyer
On Monday, 20 February 2012 at 00:29:20 UTC, bls wrote: On 02/19/2012 04:05 PM, Bernard Helyer wrote: Maybe when you learn to type like an adult people will listen to you? Facts, that's what I am are talking about. If you don't like my speak ...sorry. My point is that D2 ne

Re: Safe navigation operator

2012-02-19 Thread Bernard Helyer
On Monday, 20 February 2012 at 00:55:15 UTC, Alex Rønne Petersen wrote: Hi, http://groovy.codehaus.org/Operators#Operators-SafeNavigationOperator What do you folks think about this? Would it be useful to have in D? It would make navigating large object graphs with possible null values much ea

Re: Questions about windows support

2012-02-21 Thread Bernard Helyer
Nick replied to something about globbing Having programs doing the globbing sounds great until you run into someone who doesn't play ball. *cough* every single digital mars utility *cough*. I think Windows and unix both get it wrong, but unix gets it less wrong (as it could theoretically be an

dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Bernard Helyer
A discussion on the Mono-D IRC channel just made me realise something. dmd -c foo/a.d bar/a.d The second module overwrites the first. This makes using 'pass everything at once' with Mono-D (IDE plugin) difficult/impossible. As far as I'm concerned, it's just a bug that's never come up.

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Bernard Helyer
On Wednesday, 22 February 2012 at 22:05:51 UTC, Jonathan M Davis wrote: Then what happens when you have dmc -c foo/a.d foo_a.d Good point. Regardless, I really wouldn't like the idea of screwing with the object file names to try and avoid collisions. Well, the thing is in this case eve

Re: dmd -c behaviour doesn't take account of packages.

2012-02-22 Thread Bernard Helyer
On Wednesday, 22 February 2012 at 22:44:15 UTC, Jonathan M Davis wrote: On Wednesday, February 22, 2012 23:33:57 Bernard Helyer wrote: On Wednesday, 22 February 2012 at 22:05:51 UTC, Jonathan M Davis wrote: > Then what happens when you have > > dmc -c foo/a.d foo_a.d G

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Bernard Helyer
On Thursday, 23 February 2012 at 21:28:17 UTC, H. S. Teoh wrote: On Thu, Feb 23, 2012 at 01:42:44PM +0100, Jacob Carlborg wrote: On 2012-02-23 00:03, Jonathan M Davis wrote: >On Wednesday, February 22, 2012 23:50:53 Bernard Helyer wrote: >>Except DMD is faster by a factor of 10 when p

Re: dmd -c behaviour doesn't take account of packages.

2012-02-23 Thread Bernard Helyer
On Thursday, 23 February 2012 at 23:06:56 UTC, Bernard Helyer wrote: Did you not read what Jacob posted? my.module.A.o my_module_A.o my_module.A.o my.module_A.o No conflicts. Also, you can't have a package called module.

Can someone decipher this moon speak for me? (abi - calling conventions)

2012-02-29 Thread Bernard Helyer
http://dlang.org/abi.html "The extern (C) and extern (D) calling convention matches the C calling convention used by the supported C compiler on the host system. Except that the extern (D) calling convention for Windows x86 is described here." Was this written by someone slamming their face

Re: Can someone decipher this moon speak for me? (abi - calling conventions)

2012-02-29 Thread Bernard Helyer
So as near as I can tell, it's trying to say "On non-Windows platforms, both extern (C) and extern (D) match the calling convention of the platforms C compiler. On Windows, the extern (D) calling convention differs, and is documented below:" Is this accurate? If so, there's is no way I am

Re: Can someone decipher this moon speak for me? (abi - calling conventions)

2012-02-29 Thread Bernard Helyer
On Thursday, 1 March 2012 at 06:07:40 UTC, Martin Nowak wrote: For x86-32 dmd uses a fastcall, where EAX can contain a parameter, for Windows AND all other supported OSes. ._.; Well, that's nice to know, thanks. Because we (SDC) use fastcall for D, just (we thought) as a temporary measure.

Re: Poll of the week: main OS and compiler

2012-03-02 Thread Bernard Helyer
On Friday, 2 March 2012 at 11:53:56 UTC, Manu wrote: Personally, I just want to be able to link like a normal windows developer. My code is C/C++, built with VC, and I want to link my D app against those libs using the VC linker, and debug with Visual Studio. This is the workflow I think the va

Re: Arbitrary abbreviations in phobos considered ridiculous

2012-03-07 Thread Bernard Helyer
On Wednesday, 7 March 2012 at 18:39:41 UTC, Nick Sabalausky wrote: "Adam D. Ruppe" wrote in message news:sgmfyzmrfygshlmfq...@forum.dlang.org... On Tuesday, 6 March 2012 at 20:20:47 UTC, Derek wrote: Should we use American or English spelling? Color verses Colour, for example? I can go eithe

Re: Poll of the week: main OS and compiler

2012-03-08 Thread Bernard Helyer
On Thursday, 8 March 2012 at 09:25:19 UTC, Jonathan M Davis wrote: On Thursday, March 08, 2012 09:45:34 David Nadlinger wrote: On Saturday, 3 March 2012 at 11:44:54 UTC, Daniel Murphy wrote: > Walter, how big is it really? Small enough to be done as, > say, > a gsoc > project? Would you be i

Re: [OT] Smoking sections (Was: Arbitrary abbreviations in phobos considered ridiculous)

2012-03-08 Thread Bernard Helyer
On Friday, 9 March 2012 at 07:02:47 UTC, Jonathan M Davis wrote: On Friday, March 09, 2012 01:45:13 Nick Sabalausky wrote: "H. S. Teoh" wrote in message news:mailman.289.1331260526.4860.digitalmar...@puremagic.com... [...] > T That's one great thing about Ohio: A few years back we had a stat

Re: Changing the name of the language?

2012-03-15 Thread Bernard Helyer
On Friday, 16 March 2012 at 02:17:13 UTC, ixid wrote: Do you think a minor renaming like using Dlang as the name consistently would be damaging? Yes. Changing it now is an incredibly stupid idea.

Re: OpenBSD port of dmd?

2012-03-17 Thread Bernard Helyer
On Sunday, 18 March 2012 at 00:53:17 UTC, Walter Bright wrote: On 3/17/2012 5:40 PM, Sean Kelly wrote: In truth it would be else version (Posix) Anyway, which isn't the bare else Walter was advising against. And is Posix really predictably compatible across diverse systems? If you restric

Re: virtual-by-default rant

2012-03-17 Thread Bernard Helyer
On Sunday, 18 March 2012 at 01:23:42 UTC, Manu wrote: My minimum recommendation: D needs an explicit 'virtual' keyword, and to fix that D1 bug, so putting final: at the top of your class works, and everything from there works as it should. Agreed. Final by default is a proposition long gone,

Re: OpenBSD port of dmd?

2012-03-17 Thread Bernard Helyer
On Sunday, 18 March 2012 at 04:04:30 UTC, Sean Kelly wrote: On Mar 17, 2012, at 6:00 PM, "Bernard Helyer" wrote: On Sunday, 18 March 2012 at 00:53:17 UTC, Walter Bright wrote: On 3/17/2012 5:40 PM, Sean Kelly wrote: In truth it would be else version (Posix) Anyway, which isn&

  1   2   3   >