Re: Bug fix week

2010-05-28 Thread Bruno Medeiros
On 26/05/2010 21:14, Masahiro Nakagawa wrote: On Sun, 23 May 2010 22:50:14 +0900, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: We've had a tremendous infusion of talent and energy in Phobos, and lately work has picked up in unprecedented ways, both in terms of new features and

Re: dcollections 1.0 and 2.0a beta released

2010-05-28 Thread Jacob Carlborg
On 2010-05-27 12:32, Steven Schveighoffer wrote: On Wed, 26 May 2010 10:06:32 -0400, Bruno Medeiros brunodomedeiros+s...@com.gmail wrote: On 24/05/2010 16:45, Andrei Alexandrescu wrote: In the past I have built a C++ library that abstracted features of the OS. My goal was to make it possible

Re: dcollections 1.0 and 2.0a beta released

2010-05-28 Thread Bruno Medeiros
On 27/05/2010 11:32, Steven Schveighoffer wrote: On Wed, 26 May 2010 10:06:32 -0400, Bruno Medeiros brunodomedeiros+s...@com.gmail wrote: On 24/05/2010 16:45, Andrei Alexandrescu wrote: In the past I have built a C++ library that abstracted features of the OS. My goal was to make it possible

Re: dcollections 1.0 and 2.0a beta released

2010-05-28 Thread Steven Schveighoffer
On Fri, 28 May 2010 06:24:26 -0400, Bruno Medeiros brunodomedeiros+s...@com.gmail wrote: On 27/05/2010 11:32, Steven Schveighoffer wrote: On Wed, 26 May 2010 10:06:32 -0400, Bruno Medeiros brunodomedeiros+s...@com.gmail wrote: On 24/05/2010 16:45, Andrei Alexandrescu wrote: In the past I

Re: dcollections 1.0 and 2.0a beta released

2010-05-28 Thread Steven Schveighoffer
On Fri, 28 May 2010 06:10:49 -0400, Jacob Carlborg d...@me.com wrote: On 2010-05-27 12:32, Steven Schveighoffer wrote: On Wed, 26 May 2010 10:06:32 -0400, Bruno Medeiros brunodomedeiros+s...@com.gmail wrote: On 24/05/2010 16:45, Andrei Alexandrescu wrote: In the past I have built a C++

Re: Bug fix week

2010-05-28 Thread SHOO
Bruno Medeiros さんは書きました: On 26/05/2010 21:14, Masahiro Nakagawa wrote: On Sun, 23 May 2010 22:50:14 +0900, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: We've had a tremendous infusion of talent and energy in Phobos, and lately work has picked up in unprecedented ways, both in

D Programlama Dili is almost finished

2010-05-28 Thread Ali Çehreli
It is a Turkish D2 book. I know that this news is not very useful for the members of this forum, but I am proud to announce that my D book targeting the Turkish reader is almost complete. It is for the novice programmer. Complete with exercises and solutions, it starts with the assignment

Re: D Programlama Dili is almost finished

2010-05-28 Thread Walter Bright
Ali Çehreli wrote: It is a Turkish D2 book. I know that this news is not very useful for the members of this forum, but I am proud to announce that my D book targeting the Turkish reader is almost complete. It is for the novice programmer. Complete with exercises and solutions, it starts

Re: D Programlama Dili is almost finished

2010-05-28 Thread Moritz Warning
On Fri, 28 May 2010 10:40:57 -0700, Ali Çehreli wrote: It is a Turkish D2 book. I know that this news is not very useful for the members of this forum, but I am proud to announce that my D book targeting the Turkish reader is almost complete. Congratulations! :)

D Programming now on twitter

2010-05-28 Thread Walter Bright
http://twitter.com/D_Programming also use #d_lang to connect D related tweets

OT: Use of D-icon

2010-05-28 Thread Matthias Pleh
Am 28.05.2010 20:06, schrieb Walter Bright: http://twitter.com/D_Programming also use #d_lang to connect D related tweets OT: I'm working on a redesign for wiki4d. Now I've seen the D-logo on twitter and I like it. :) Can we use this picture for wiki4d? greets Matthias

Re: OT: Use of D-icon

2010-05-28 Thread Walter Bright
Matthias Pleh wrote: Am 28.05.2010 20:06, schrieb Walter Bright: http://twitter.com/D_Programming also use #d_lang to connect D related tweets OT: I'm working on a redesign for wiki4d. Now I've seen the D-logo on twitter and I like it. :) Can we use this picture for wiki4d? That was

Re: OT: Use of D-icon

2010-05-28 Thread bearophile
Matthias Pleh: I'm working on a redesign for wiki4d. Now I've seen the D-logo on twitter and I like it. :) I agree, it's nice looking, almost professional :-) I am thinking about using it on my site to link to D site. Other D logos look too much amateurish. Bye, bearophile

new layout on wiki4d

2010-05-28 Thread Matthias Pleh
I have renewed the layout of the wiki4d-site. It's not finished, but I think it is already useable! Content itself hasn't changed! Any thoughts? Please check also the links on the sidebar! I have taken this from a template from Justin Calvarese (thanks), so maybe some links should changed,

Re: new layout on wiki4d

2010-05-28 Thread Ary Borenszweig
On 05/28/2010 07:47 PM, Matthias Pleh wrote: I have renewed the layout of the wiki4d-site. It's not finished, but I think it is already useable! Content itself hasn't changed! Any thoughts? Please check also the links on the sidebar! I have taken this from a template from Justin Calvarese

Re: new layout on wiki4d

2010-05-28 Thread Jesse Phillips
Matthias Pleh wrote: I have renewed the layout of the wiki4d-site. It's not finished, but I think it is already useable! Content itself hasn't changed! Any thoughts? Please check also the links on the sidebar! I have taken this from a template from Justin Calvarese (thanks), so maybe some

Memory Mapped File Access

2010-05-28 Thread Robert
Hi, has anyone played around with D and memory mapped files on Windows / Linux? A friend of mine and I want to use D to develop a D native database-system. Yes, sounds crazy and it will take long and we haven't done a lot yet. So don't expect anything to look at soon :-) Thanks Robert.

Re: Bug fix week

2010-05-28 Thread Bruno Medeiros
On 26/05/2010 21:14, Masahiro Nakagawa wrote: On Sun, 23 May 2010 22:50:14 +0900, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: We've had a tremendous infusion of talent and energy in Phobos, and lately work has picked up in unprecedented ways, both in terms of new features and

Re: Memory Mapped File Access

2010-05-28 Thread Bane
Robert Wrote: Hi, has anyone played around with D and memory mapped files on Windows / Linux? A friend of mine and I want to use D to develop a D native database-system. Yes, sounds crazy and it will take long and we haven't done a lot yet. So don't expect anything to look at soon :-)

Re: std.container update

2010-05-28 Thread Jonathan M Davis
BTW, what would be the point of an array/vector when you have built-in arrays? If built-in arrays would be syntax sugar for a real library type, like AAs, I can see as a good option using Array for that type, since built-in arrays and the library Array would be the same thing. The biggest

Re: std.container update

2010-05-28 Thread Jonathan M Davis
Simen kjaeraas wrote: I take it you don't work in simulation or games, then? Don't do much linear algebra? While I understand the reasoning for it, I dislike the name vector for arrays. A vector to me, is a geometric object with a length and magnitude, not a random collection of whatevers.

Re: std.container update

2010-05-28 Thread bearophile
Jonathan M Davis: The biggest difference is that a vector has capacity separate from its size/length. You can efficiency insert elements at the end with a vector - amortized constant time usually - but you can't do that with a built-in array because it would have to reallocate every time.

Re: Bug fix week

2010-05-28 Thread Kagamin
Lutger Wrote: What is the purpose of votes for closed bugs anyway? Should they not just get removed automatically? I would love if bugs get fixed automatically.

Re: Shared Class Variables

2010-05-28 Thread Kagamin
sybrandy Wrote: Evening. I'm having a bit of a problem and I'm hoping someone can help. I'm trying to create a class that is shared across threads. The only purpose of this class is to write data to somewhere, though currently a file. A single-threaded version of this works fine,

Re: std.container update

2010-05-28 Thread Leandro Lucarella
Jonathan M Davis, el 28 de mayo a las 04:58 me escribiste: BTW, what would be the point of an array/vector when you have built-in arrays? If built-in arrays would be syntax sugar for a real library type, like AAs, I can see as a good option using Array for that type, since built-in arrays

Re: std.container update

2010-05-28 Thread Steven Schveighoffer
On Fri, 28 May 2010 07:58:55 -0400, Jonathan M Davis jmdavisp...@gmail.com wrote: BTW, what would be the point of an array/vector when you have built-in arrays? If built-in arrays would be syntax sugar for a real library type, like AAs, I can see as a good option using Array for that type,

Re: Bug fix week

2010-05-28 Thread SHOO
Bruno Medeiros さんは書きました: On 26/05/2010 21:14, Masahiro Nakagawa wrote: On Sun, 23 May 2010 22:50:14 +0900, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: We've had a tremendous infusion of talent and energy in Phobos, and lately work has picked up in unprecedented ways, both in

Re: std.container update - now Array is in

2010-05-28 Thread Pillsy
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article: I defined Array as a straightforward implementation of the homonym abstraction. There are a few imperfect corners, but by and large I'm starting to believe it's becoming possible to write certain cross-container

Re: std.container update - now Array is in

2010-05-28 Thread Steven Schveighoffer
On Thu, 27 May 2010 21:08:29 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: http://erdani.com/d/phobos/std_container.html http://erdani.com/d/phobos/container.d I defined Array as a straightforward implementation of the homonym abstraction. There are a few imperfect

Re: std.container update - now Array is in

2010-05-28 Thread Steven Schveighoffer
On Fri, 28 May 2010 15:51:53 -0400, Steven Schveighoffer schvei...@yahoo.com wrote: On Thu, 27 May 2010 21:08:29 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: http://erdani.com/d/phobos/std_container.html http://erdani.com/d/phobos/container.d I defined Array as a

Re: Bug fix week

2010-05-28 Thread Don
Bruno Medeiros wrote: On 26/05/2010 21:14, Masahiro Nakagawa wrote: On Sun, 23 May 2010 22:50:14 +0900, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: We've had a tremendous infusion of talent and energy in Phobos, and lately work has picked up in unprecedented ways, both in terms

Re: std.container update - now Array is in

2010-05-28 Thread Andrei Alexandrescu
On 05/28/2010 02:51 PM, Steven Schveighoffer wrote: On Thu, 27 May 2010 21:08:29 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: http://erdani.com/d/phobos/std_container.html http://erdani.com/d/phobos/container.d I defined Array as a straightforward implementation of the

Re: std.container update - now Array is in

2010-05-28 Thread Steven Schveighoffer
On Fri, 28 May 2010 16:03:10 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 05/28/2010 02:51 PM, Steven Schveighoffer wrote: On Thu, 27 May 2010 21:08:29 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: http://erdani.com/d/phobos/std_container.html

Re: Memory Mapped File Access

2010-05-28 Thread Robert
On 2010-05-28 13:06:04 +0200, Bane branimir.milosavlje...@gmail.com said: MMapped files work just fine, I played/am playing with them. I posted before I saw that there is a MmFile class :-) So, I have the first questions: 1. How can I expand the size of a MMF after it was created? 2. If I

Re: Shared Class Variables

2010-05-28 Thread sybrandy
I don't know much about threading but I do know that D1 vs. D2 (you didn't say what version) makes a big difference. For example, in D2 globals are thread local by default where as in D1 they are not. Thanks. Casey Sorry about that. I've been doing everything in D2. Casey

Huffman coding comparison

2010-05-28 Thread bearophile
Now and then it's very useful to compare how to write in D2 a small interesting program written in another language, the comparison can help find problems, possible improvements, performance problems, and so on. Time ago I have tried to convert to D2 a small Python program that finds the

Re: Static constructors in circularly imported modules - again

2010-05-28 Thread Max Samukha
On 27.05.2010 13:37, Max Samukha wrote: There was a discussion about those a while ago that terminated with Andrei's authoritative it would be a step backward. I am not entirely convinced that there had been a step forward in the first place. Defining static construction order to be determined

C#5 desiderata

2010-05-28 Thread bearophile
You can remember when I have shown this link, about desired features for C#4: http://stackoverflow.com/questions/138367/ Instead of many of those features, C# devs have chosen to add only very few ones, but rather basic ones, like the dynamic attribute, that change some how C# programs can be

Re: C#5 desiderata

2010-05-28 Thread Simen kjaeraas
bearophile bearophileh...@lycos.com wrote: Return tuples: Absolutely. While it's possible today, some more sugar wouldn't hurt. in for arrays: Yes. Automatic Flag Enums (automatically enumerate in powers of two). Neat. Worthy an @keyword, I think. @flag enum foo {...} Null Safe

Re: C#5 desiderata

2010-05-28 Thread bearophile
Simen kjaeraas: I think you have missed one important point: that was not my list of things I'd like in D2/D3. It contains some cute things, but it's first of all a summary of the linked stackoverflow thread. My personal list of desiderata for D3 is different. Absolutely. While it's

Re: Huffman coding comparison

2010-05-28 Thread Leandro Lucarella
bearophile, el 28 de mayo a las 18:01 me escribiste: For me for one thing the D program is better than the Python version: the Python std lib doesn't define a mutable named tuple like that one in D2 (there is only one immutable and dynamically typed one), this forces the Python code to use all

Re: C#5 desiderata

2010-05-28 Thread Adam Ruppe
On 5/28/10, bearophile bearophileh...@lycos.com wrote: in for arrays: if (x in (1, 2, 3)) {} If the uniform function call syntax starts up, you could (maybe) do something like this: import std.algorithm; import std.array; bool among(T)(T v, T[] arr...) { return ! (arr.find(v).empty); }

Re: Huffman coding comparison

2010-05-28 Thread bearophile
Leandro Lucarella: def NamedTuple(*fields): class T: def __init__(self, *args): for i in range(len(args)): setattr(self, fields[i], args[i]) return T That's not enough, those tuples must support the cmp for the

Re: C#5 desiderata

2010-05-28 Thread Robert Jacques
On Fri, 28 May 2010 19:52:46 -0400, bearophile bearophileh...@lycos.com wrote: Simen kjaeraas: Neat. Worthy an @keyword, I think. @flag enum foo {...} It's cute. But Don hates attributes :-) Recently I have created a thread about this, and some one has written a good enough implementation

Re: Huffman coding comparison

2010-05-28 Thread Simen kjaeraas
bearophile bearophileh...@lycos.com wrote: I will keep missing array comprehensions in D. In the meantime other languages have got some forms of them (but Python ones use the best syntax still). I'm now so tired of hearing this, I started writing something that does it: auto r = list!2 *

Go has contempt for generics

2010-05-28 Thread Andrei Alexandrescu
http://www.reddit.com/r/programming/comments/c93iy/go_at_io_frequently_asked_questions/ Do you have plans to implement generics? Many proposals for generics-like features have been mooted both publicly and internally, but as yet we haven't found a proposal that is consistent with the rest of

Re: C#5 desiderata

2010-05-28 Thread Simen kjaeraas
bearophile bearophileh...@lycos.com wrote: Simen kjaeraas: I think you have missed one important point: that was not my list of things I'd like in D2/D3. It contains some cute things, but it's first of all a summary of the linked stackoverflow thread. My personal list of desiderata for

Copy constructors for lazy initialization

2010-05-28 Thread Andrei Alexandrescu
Walter has had a great idea last night: allow classes to define this(ref S src); where S is the name of the struct being defined, as an alternative for this(this); The result would be a function similar with a C++ copy constructor. Such an abstraction allows us to perform lazy initialization

Re: Huffman coding comparison

2010-05-28 Thread bearophile
Simen kjaeraas: I'm now so tired of hearing this, I started writing something that does it: Array comprehensions are syntax sugar. From what I have seen there is a very narrow range of usable syntaxes for them. Outside that range, they get much less useful or useless. Even Haskell has got

Re: Go has contempt for generics

2010-05-28 Thread Jonathan M Davis
Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/c93iy/go_at_io_frequently_asked_questions/ Do you have plans to implement generics? Many proposals for generics-like features have been mooted both publicly and internally, but as yet we haven't found a proposal that

Re: C#5 desiderata

2010-05-28 Thread Marianne Gagnon
If there's one thing I need to agree with there, it's definitely having more than one return value. C/C++ have it really awful by passing pointers, and then you need to document it's an out parameter (I know this has become very common to most of us, me included, but when I first saw this -

Re: Go has contempt for generics

2010-05-28 Thread bearophile
Andrei Alexandrescu: That has Java 1994 written all over it. Java today can be the most used language, so despite its faults, probably it was good enough. Even if Go has no templates, it has plenty of time to add them five years from now :-) (And in the end templates aren't the only way to

Re: C#5 desiderata

2010-05-28 Thread bearophile
Simen kjaeraas: Yeah. So, either we need thunks for this, or tuples need to carry alignment information. If we accept a little less performance there must be a way to solve this problem. Multiple return values are certainly very handy. Bye, bearophile

Re: C#5 desiderata

2010-05-28 Thread Marianne Gagnon
I think Walter said this can't be implemented :) The items alignment of function arguments used by D tuples is not fitting to return a struct. I have not understood the details of this thing, and in the end I don't care if returning a struct can decrease performance a bit... well, it

Re: Copy constructors for lazy initialization

2010-05-28 Thread Jonathan M Davis
Andrei Alexandrescu wrote: What do you think? Andrei Certainly, in the case provided, it's a definite win. I'm not sure what the overall implications would be though. Part of the problem stems from the fact that the array is initialized to null, and yet you can still add stuff to it. My

Re: Copy constructors for lazy initialization

2010-05-28 Thread bearophile
Andrei Alexandrescu Wrote: this(ref S src); this(this); What do you think? In this moment I am too much sleepy to understand the semantics of what you say. But I can say something about syntax: that this(this) syntax is bad, it's cryptic, I prefer something that uses/contains some English

Re: Go has contempt for generics

2010-05-28 Thread Jonathan M Davis
bearophile wrote: Andrei Alexandrescu: That has Java 1994 written all over it. Java today can be the most used language, so despite its faults, probably it was good enough. Even if Go has no templates, it has plenty of time to add them five years from now :-) (And in the end templates

Re: Copy constructors for lazy initialization

2010-05-28 Thread Jonathan M Davis
bearophile wrote: Andrei Alexandrescu Wrote: this(ref S src); this(this); What do you think? In this moment I am too much sleepy to understand the semantics of what you say. But I can say something about syntax: that this(this) syntax is bad, it's cryptic, I prefer something that

Re: Copy constructors for lazy initialization

2010-05-28 Thread Lionello Lunesu
Nice. This could also be used to implement unique_ptr(T), with move semantics. L. On 29-5-2010 9:26, Andrei Alexandrescu wrote: Walter has had a great idea last night: allow classes to define this(ref S src); where S is the name of the struct being defined, as an alternative for

Re: Copy constructors for lazy initialization

2010-05-28 Thread Walter Bright
Jonathan M Davis wrote: The weird thing here is that you're actually altering the parameter that you passed in, which is normally a major no-no with copy constructors. Yup. One subtle but important distinction from C++ is that D can omit copy construction completely if the compiler can

Re: Go has contempt for generics

2010-05-28 Thread Walter Bright
Jonathan M Davis wrote: Sure, you _can_ use a language without generics (and many other features) and get a lot done, but I'd argue having simplicity as your prime directive tends to lead to an inefficient tool for the programmer. Simplicity should be a goal, but there are times that it should

Re: Go has contempt for generics

2010-05-28 Thread Andrei Alexandrescu
On 05/28/2010 08:39 PM, Jonathan M Davis wrote: [snip some good points] So, while some folks seem to want to draw comparisons between Go and D, it sounds like there are definitely things about them which are drastically different, not only in the design, but in the philosophy behind the design.

Re: Copy constructors for lazy initialization

2010-05-28 Thread Andrei Alexandrescu
On 05/28/2010 09:18 PM, Lionello Lunesu wrote: Nice. This could also be used to implement unique_ptr(T), with move semantics. Yah, a number of interesting idioms spring to life. Andrei

Re: Go has contempt for generics

2010-05-28 Thread Andrei Alexandrescu
On 05/28/2010 08:44 PM, bearophile wrote: Andrei Alexandrescu: That has Java 1994 written all over it. Java today can be the most used language, so despite its faults, probably it was good enough. Even if Go has no templates, it has plenty of time to add them five years from now :-) (And in

Re: Copy constructors for lazy initialization

2010-05-28 Thread Steven Schveighoffer
On Fri, 28 May 2010 21:26:50 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Walter has had a great idea last night: allow classes to define I'm almost positive you meant allow *structs* to define this(ref S src); where S is the name of the struct being defined, as an

Re: CreateThread?

2010-05-28 Thread BCS
Hello Pavel, I create win32 application. (use dmd 2.046) Exist object Thread in std.thread. Object Thread gives support for garbage collector, but I want to use the function CreateThread. Can I create threads with this function? You can call it (you can call any C function). It should give

Re: Handy templates

2010-05-28 Thread Don
Philippe Sigaud wrote: On Thu, May 27, 2010 at 01:00, Simen kjaeraas simen.kja...@gmail.com mailto:simen.kja...@gmail.com wrote: Here's a collection of templates I have created and use often. Some of these may be fit for inclusion in Phobos, others maybe not as much. Please critique, and

noob Q: array out-of-range

2010-05-28 Thread Duke Normandin
Hey... Compiler is now working as expected! Thank's to a great catch by Michel Fortin! A little further down the tutorial D_ A Newbie-Oriented Tutorial, there's this code: [code] import std.stdio; void main() { int[] intArray; intArray[0] = 42; intArray[1] = 54; intArray[2] =

Re: noob Q: array out-of-range

2010-05-28 Thread Don
Duke Normandin wrote: Hey... Compiler is now working as expected! Thank's to a great catch by Michel Fortin! A little further down the tutorial D_ A Newbie-Oriented Tutorial, there's this code: [code] import std.stdio; void main() { int[] intArray; intArray[0] = 42; intArray[1]

Re: noob Q: array out-of-range

2010-05-28 Thread bearophile
Don: The array initially has length of zero. You need to write something like: intArray = new int[3]; or intArray.length = 3; before putting anything into it. In some languages (Perl? Maybe Lua and PHP) arrays auto-create empty slots as needed, but in many languages you need to tell the

Re: noob Q: array out-of-range

2010-05-28 Thread Duke Normandin
On Fri, 28 May 2010, bearophile wrote: Don: The array initially has length of zero. You need to write something like: intArray = new int[3]; or intArray.length = 3; before putting anything into it. In some languages (Perl? Maybe Lua and PHP) arrays auto-create empty slots as

Re: noob Q: array out-of-range

2010-05-28 Thread bearophile
Duke Normandin: This is the site that I'm using to learn D. If you scroll down 3-4 screens full, you'll come to the array topic. Is this tutorial outdated, wrong, or what, because it doesn't deem to sync with what you two fine fellows are telling me about creating dynamic arrays in the

Re: noob Q: array out-of-range

2010-05-28 Thread Duke Normandin
On Fri, 28 May 2010, bearophile wrote: Duke Normandin: This is the site that I'm using to learn D. If you scroll down 3-4 screens full, you'll come to the array topic. Is this tutorial outdated, wrong, or what, because it doesn't deem to sync with what you two fine fellows are telling

Re: noob Q: array out-of-range

2010-05-28 Thread Simen kjaeraas
Duke Normandin dukeofp...@ml1.net wrote: So these two paragraphs in the tutorial are flat out wrong? Absolutely. -- Simen

Re: noob Q: array out-of-range

2010-05-28 Thread Duke Normandin
On Sat, 29 May 2010, Simen kjaeraas wrote: Duke Normandin dukeofp...@ml1.net wrote: So these two paragraphs in the tutorial are flat out wrong? Absolutely. Then I'm done with _that_ site - can't trust it! Any chance that you could suggest a good beginner's D tutorial? -- duke

Re: Handy templates

2010-05-28 Thread BCS
Hello Don, Philippe Sigaud wrote: On Thu, May 27, 2010 at 01:00, Simen kjaeraas simen.kja...@gmail.com mailto:simen.kja...@gmail.com wrote: Here's a collection of templates I have created and use often. Some of these may be fit for inclusion in Phobos, others maybe not as much. Please

Re: noob Q: array out-of-range

2010-05-28 Thread BCS
Hello Simen, Duke Normandin dukeofp...@ml1.net wrote: So these two paragraphs in the tutorial are flat out wrong? Absolutely. Any idea who owns it so it can get changed? For that matter, who added the link? Being paranoid for the moment (it can be fun sometimes :) that blurb is so

Re: noob Q: array out-of-range

2010-05-28 Thread Steven Schveighoffer
On Fri, 28 May 2010 22:42:32 -0400, Duke Normandin dukeofp...@ml1.net wrote: On Sat, 29 May 2010, Simen kjaeraas wrote: Duke Normandin dukeofp...@ml1.net wrote: So these two paragraphs in the tutorial are flat out wrong? Absolutely. Then I'm done with _that_ site - can't trust it! Any

[Issue 4245] New: Declaring conflicting symbols in single function scope allowed

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4245 Summary: Declaring conflicting symbols in single function scope allowed Product: D Version: 2.041 Platform: x86 OS/Version: All Status: NEW Keywords:

[Issue 4237] Typedefs of the same name cause initializer conflict

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4237 Shin Fujishiro rsi...@gmail.com changed: What|Removed |Added Keywords||patch

[Issue 4237] Typedefs of the same name cause initializer conflict

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4237 --- Comment #2 from Shin Fujishiro rsi...@gmail.com 2010-05-28 04:54:49 PDT --- Here's a trivial patch to dmd svn r502. --- src/declaration.c +++ src/declaration.c @@ -296,6 +296,7 @@ Dsymbol *TypedefDeclaration::syntaxCopy(Dsymbol *s) void

[Issue 4056] Template instantiation with bare parameter not documented

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4056 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4206] type accepted as enum initializer

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4206 --- Comment #2 from Rainer Schuetze r.sagita...@gmx.de 2010-05-28 12:18:05 PDT --- You're right, it correctly does not compile with dmd 1.056. I must have been halucinating. Also, enum { var = myint }; causes an error. The use case that was

[Issue 3445] DDoc usually omits attributes (including pure nothrow)

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3445 Don clugd...@yahoo.com.au changed: What|Removed |Added Summary|DDoc usually omits pure |DDoc usually omits

[Issue 3120] std.process.execv() pass arguments to programm incorrectly

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3120 Masahiro Nakagawa repeate...@gmail.com changed: What|Removed |Added CC|

[Issue 4246] New: Delegate literals passed to variadic templates function incorrectly

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4246 Summary: Delegate literals passed to variadic templates function incorrectly Product: D Version: future Platform: Other OS/Version: Windows Status: NEW

[Issue 4246] Delegate literals passed to variadic templates function incorrectly

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4246 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

[Issue 3887] ddoc does not replicate @property to documentation

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3887 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3445] DDoc usually omits attributes (including pure nothrow)

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3445 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC|

[Issue 3445] DDoc usually omits attributes (including pure nothrow)

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3445 --- Comment #2 from Steven Schveighoffer schvei...@yahoo.com 2010-05-28 15:17:43 PDT --- From 3887, @property also doesn't show up. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this

[Issue 4247] New: Cannot create default-constructed struct on heap when constructor is defined

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4247 Summary: Cannot create default-constructed struct on heap when constructor is defined Product: D Version: 2.041 Platform: Other OS/Version: Linux Status: NEW

[Issue 1087] scope(exit) is ignored if preceded by a label

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1087 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4242] ICE(module.c): importing a module with same name as package

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4242 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 1513] try/catch/finally misbehavior on windows

2010-05-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1513 --- Comment #4 from Brad Roberts bra...@puremagic.com 2010-05-28 22:51:25 PDT --- I figured it'd been ages and maybe something had changed to maybe fix this bug.. nope: dmd 1.061 on windows: Error: ex 2 throw ex1 throw ex2 dmd 1.061 on