Re: Fixing const arrays

2011-12-10 Thread Jonathan M Davis
On Sunday, December 11, 2011 01:16:28 Andrei Alexandrescu wrote: > On 12/10/11 5:20 PM, Michel Fortin wrote: > > On 2011-12-10 21:47:13 +, Andrei Alexandrescu > > > > said: > >> We decided to fix this issue by automatically shedding the top-level > >> const when passing an array or a pointer

Re: Fixing const arrays

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 5:20 PM, Michel Fortin wrote: On 2011-12-10 21:47:13 +, Andrei Alexandrescu said: We decided to fix this issue by automatically shedding the top-level const when passing an array or a pointer by value into a function. It seems strange that if you implemented the exact same se

Re: If I had my way

2011-12-10 Thread Nick Sabalausky
"Andrei Alexandrescu" wrote in message news:jc0fnt$13pu$1...@digitalmars.com... > On 12/10/11 2:14 PM, Andrew Wiley wrote: >> >> ^^ >> I agree. Postponing the current release doesn't really do anything but >> frustrate the people that depend on recent changes. Setting a goal for >> the next relea

Re: d-programming-language.com

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 10:14 PM, Adam D. Ruppe wrote: Andrei Alexandrescu Wrote: Anything automated rox. cool. I updated the program today to handle the new site. Take a look at the output: http://arsdnet.net/d-web-site/std_stdio.html [snip] Yah, there's definite improvement. Adding categorization by

Re: d-programming-language.com

2011-12-10 Thread Adam D. Ruppe
Jonathan M Davis Wrote: > In fact, as much of the documentation- > generation as possible should be in ddoc IMHO. That way, anyone can get > reasonable documentation for their own projects. I agree to an extent, but at the same time, I like keeping ddoc itself fairly simple. Correct anchors fro

Re: d-programming-language.com

2011-12-10 Thread Jonathan M Davis
On Saturday, December 10, 2011 23:14:20 Adam D. Ruppe wrote: > Anyway it's pretty much complete here. Let me know what you think. Overall, I like what I see here, but I definitely that that ddoc itself should be fixed so that it generates proper anchors instead of requiring you to manipulate the

Re: d-programming-language.com

2011-12-10 Thread Adam D. Ruppe
Also, I was just wondering how it'd work on a page like std.container http://www.d-programming-language.org/phobos/std_container.html which already has a hand written table up top. So I ran it: http://arsdnet.net/d-web-site/std_container.html and I'm ok with it. In the d-p-l page, can you tell

Re: Why D const is annoying

2011-12-10 Thread Mehrdad
Another bug, this time regarding invariant() (I think this is related to the previous one about int vs. size_t in template parameters, but I'm not sure...) template NArray(T, size_t N) { static if (N > 0) { alias NArray!(T, N - 1)[] NArray; } else { alias T NArray; } } struct

Re: d-programming-language.com

2011-12-10 Thread Adam D. Ruppe
Walter Bright Wrote: > It just statically serves html. No cgi. See my reply to Andrei - the program modifies the static html ahead of time, so it just needs to be part of the build process, not part of the deployment. Here's a link to see its output: http://arsdnet.net/d-web-site/std_stdio.html

Re: Why D const is annoying

2011-12-10 Thread Mehrdad
Moar bugs/ICEs... struct S(int N) { this(T!N) { } } alias S!1 M; annoy.d(1): Error: template instance T!(N) template 'T' is not defined, did you mean M? annoy.d(1): Error: T!(N) is used as a type ty = 35 Assertion failure: '0' on line 145 in file 'mtype.c

Re: d-programming-language.com

2011-12-10 Thread Adam D. Ruppe
Andrei Alexandrescu Wrote: > Anything automated rox. cool. I updated the program today to handle the new site. Take a look at the output: http://arsdnet.net/d-web-site/std_stdio.html Biggest improvement imo is anchors work better: http://arsdnet.net/d-web-site/std_stdio.html#File.writeln is dis

Re: New Website Issues I've Found

2011-12-10 Thread Walter Bright
On 12/10/2011 7:35 PM, Andrei Alexandrescu wrote: On 12/10/11 5:55 PM, Xinok wrote: - I was looking for the page that documents the compiler switches but can't find it. Walter? http://www.d-programming-language.org/dcompiler.html#switches

Re: New Website Issues I've Found

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 5:55 PM, Xinok wrote: On 12/10/2011 3:11 PM, Chad J wrote: I'm looking at http://www.d-programming-language.org and seeing the following problems: I found a few more issues as well: - The links to D 2.0 Changelog, D 1.0 Changelog, and D Programming Language Specification 2.0 are br

Null and IFTI

2011-12-10 Thread Andrew Wiley
--- class Bob { } void doSomething(T)(Bob bob, T data) { } void main() { doSomething(null, 5); // Error: template test.doSomething(T) does not match any function template declaration // Error: template test.doSomething(T) cannot deduce template function from argument types !()(voi

Re: d-programming-language.com

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 8:13 PM, Adam D. Ruppe wrote: Walter Bright Wrote: Essentially, I'd like to have the .chm files automatically built by the makefile for the html documentation. I'm curious: what kind of setup do you have there? It's a makefile you can find on github. The jump list in D's lib do

Re: Fixing const arrays

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 6:24 PM, kenji hara wrote: Posted a test patch to realize the suggestion. https://github.com/D-Programming-Language/dmd/pull/554 Kenji Hara Many thanks, Kenji, for executing so fast on this! Andrei

Re: d-programming-language.com

2011-12-10 Thread Walter Bright
On 12/10/2011 6:13 PM, Adam D. Ruppe wrote: Walter Bright Wrote: Essentially, I'd like to have the .chm files automatically built by the makefile for the html documentation. I'm curious: what kind of setup do you have there? The jump list in D's lib docs are very bad right now, and we could i

Re: New Website Issues I've Found

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 5:04 PM, Chad J wrote: - There IS a changelog at http://www.d-programming-language.org/changelog.html , though I have no idea how I'd get there without going through the old .com site. Cool, but all of the info for the 2.056 is missing for me! No new features or fixed bugs to peruse.

Re: Immutable Message Passing

2011-12-10 Thread Andrew Gough
On Mon, 05 Dec 2011 08:21:45 +0100 Jacob Carlborg wrote: > On 2011-12-04 21:46, Andrew Wiley wrote: > > On Sun, Dec 4, 2011 at 1:42 AM, Jonathan M > > Davis wrote: > >> On Sunday, December 04, 2011 01:24:02 Andrew Wiley wrote: > >>> This should work, right? I'm not just going crazy or something?

Re: d-programming-language.com

2011-12-10 Thread Adam D. Ruppe
Walter Bright Wrote: > Essentially, I'd like to have the .chm files automatically built by the > makefile > for the html documentation. I'm curious: what kind of setup do you have there? The jump list in D's lib docs are very bad right now, and we could improve the javascript behind them, but I

Re: d-programming-language.com

2011-12-10 Thread Walter Bright
On 12/10/2011 6:01 PM, Walter Bright wrote: On 12/10/2011 4:16 PM, Vladimir Panteleev wrote: On Saturday, 10 December 2011 at 23:45:50 UTC, Manu wrote: and I will never type this. There should be a .chm in the distribution http://d.puremagic.com/issues/show_bug.cgi?id=5470 Awesome, I had ov

Re: d-programming-language.com

2011-12-10 Thread Walter Bright
On 12/10/2011 4:16 PM, Vladimir Panteleev wrote: On Saturday, 10 December 2011 at 23:45:50 UTC, Manu wrote: and I will never type this. There should be a .chm in the distribution http://d.puremagic.com/issues/show_bug.cgi?id=5470 Awesome, I had overlooked that. Can you do a pull request to p

Re: d-programming-language.com

2011-12-10 Thread Jonathan M Davis
On Saturday, December 10, 2011 17:52:18 Walter Bright wrote: > On 12/10/2011 4:46 PM, Peter Alexander wrote: > > I think either would be fine, but having to use the command line for > > anything on Windows is a no-no these days in terms of usability. > > Since dmd is a command line tool anyway, wh

Re: d-programming-language.com

2011-12-10 Thread Walter Bright
On 12/10/2011 5:05 PM, Andrej Mitrovic wrote: Well now I could do the same thing with dman and it would open my browser instead. But dman wasn't around before.. ;) dman has suffered a bit from lack of TLC. But that can be fixed.

Re: d-programming-language.com

2011-12-10 Thread Walter Bright
On 12/10/2011 4:44 PM, Manu wrote: So it's imperative to get that part just right, and that's all about the docs and presentation for me. I agree with you.

Re: d-programming-language.com

2011-12-10 Thread Walter Bright
On 12/10/2011 4:46 PM, Peter Alexander wrote: I think either would be fine, but having to use the command line for anything on Windows is a no-no these days in terms of usability. Since dmd is a command line tool anyway, why is it a usability problem to use dman?

Re: d-programming-language.com

2011-12-10 Thread Walter Bright
On 12/10/2011 4:10 PM, Mirko Pilger wrote: I didn't think anyone preferred chm over web pages anymore! personally i prefer chm > pdf > web for technical documentations and ebooks on the desktop. We've got an ebook now for the D spec, and hope to get one done for Phobos.

Re: If I had my way

2011-12-10 Thread Adam Wilson
On Sat, 10 Dec 2011 11:36:19 -0800, Trass3r wrote: Floating point arithmetic benchmarks have long hurt us, and 64-bit generation on OSX is a gating issue. The disastrous Windoze toolchain as well. F*** OMF. +1! x64 on Windows will never happen until Optlink is overhauled or COFF is added

Re: What should be done with the domain, dlang.org?

2011-12-10 Thread Brad Roberts
On 12/10/2011 12:35 PM, maarten van damme wrote: > it's indeed better then d-p-l.org . > dlang.org is a great new name and I would love to see it > becoming the official d homepage. > now only get it on the top of the google results when trying to search for "d

VisualD

2011-12-10 Thread Manu
Just another thought. Has anyone considered including VisualD in the windows distribution, and the standard installer? I think many windows users will want to install it at the same time as the toolchain, and it could auto-configure the toolchain paths in the plugin while installing, which would be

Re: d-programming-language.com

2011-12-10 Thread Andrej Mitrovic
On 12/11/11, Walter Bright wrote: > I didn't think anyone preferred chm over web pages anymore! It is for me. All I have to do to get to some documentation of a symbol is highlight the symbol and hit F1, and the CHM with the section on that symbol comes up. Well now I could do the same thing wit

Re: SDC & ddmd

2011-12-10 Thread Andrej Mitrovic
On 12/10/11, Andrei Alexandrescu wrote: > and no member of the community, however > willing, will always act the way that's in the best rational interest of > the community. I think writing a D compiler from scratch in a "D-tonic" way is in the best interest of the community, much more so than ha

Re: d-programming-language.com

2011-12-10 Thread Manu
On 11 December 2011 02:00, Walter Bright wrote: > On 12/10/2011 3:45 PM, Manu wrote: > >> Cool cheers, noted, although to be completely honest, I'm a windows user, >> and I >> will never type this. There should be a .chm in the distribution, which >> is the >> standard expected by any windows dev

Re: d-programming-language.com

2011-12-10 Thread Peter Alexander
On 11/12/11 12:00 AM, Walter Bright wrote: On 12/10/2011 3:45 PM, Manu wrote: Cool cheers, noted, although to be completely honest, I'm a windows user, and I will never type this. There should be a .chm in the distribution, which is the standard expected by any windows developer from any sdk the

Re: Fixing const arrays

2011-12-10 Thread kenji hara
Posted a test patch to realize the suggestion. https://github.com/D-Programming-Language/dmd/pull/554 Kenji Hara 2011/12/11 kenji hara : > OK. I agree to the suggestion. > > I've been afraid that increasing IFTI rule is making the language > learning difficult. > It comes from the experience from

Re: d-programming-language.com

2011-12-10 Thread Vladimir Panteleev
On Saturday, 10 December 2011 at 23:45:50 UTC, Manu wrote: and I will never type this. There should be a .chm in the distribution http://d.puremagic.com/issues/show_bug.cgi?id=5470

Re: d-programming-language.com

2011-12-10 Thread Manu
On 11 December 2011 02:04, Andrej Mitrovic wrote: > Create a .chm with this: http://thecybershadow.net/d/docs/ > Wow, see, that's exactly what I'm talking about! :) .. (although I tried downloading that chm and it doesn't work...) There's an amazing amount of work and energy spent here, but there

Re: dfeed

2011-12-10 Thread Vladimir Panteleev
On Saturday, 10 December 2011 at 22:44:03 UTC, Andrei Alexandrescu wrote: One idea for Vladimir's dfeed: it would be great to automatically post the tweets of D_language to digitalmars.D.announce. Hmm, is this the best solution? It would mean either redundant posts, or posts that are atypical

Re: About function keyword

2011-12-10 Thread kenji hara
2011/12/11 Timon Gehr : > On 12/11/2011 12:35 AM, kenji hara wrote: >> >> 2011/12/11 deadalnix: >>> >>> Hi, >>> >>> I was working with std.concurrency and discovered a (now reported) bug >>> about >>> receive and function. It lead me to some experimentations with fucntions. >>> consider the code be

Re: d-programming-language.com

2011-12-10 Thread Mirko Pilger
I didn't think anyone preferred chm over web pages anymore! personally i prefer chm > pdf > web for technical documentations and ebooks on the desktop.

Re: d-programming-language.com

2011-12-10 Thread Jonathan M Davis
On Saturday, December 10, 2011 16:00:15 Walter Bright wrote: > On 12/10/2011 3:45 PM, Manu wrote: > > Cool cheers, noted, although to be completely honest, I'm a windows > > user, and I will never type this. There should be a .chm in the > > distribution, which is the standard expected by any windo

Re: Templated Struct Constructor

2011-12-10 Thread Andrej Mitrovic
You can cheat with __ctor: Test test = Test.__ctor!(int, true)(5);

Re: d-programming-language.com

2011-12-10 Thread Walter Bright
On 12/10/2011 3:45 PM, Manu wrote: Cool cheers, noted, although to be completely honest, I'm a windows user, and I will never type this. There should be a .chm in the distribution, which is the standard expected by any windows developer from any sdk they intend to take seriously. This is very eas

Re: d-programming-language.com

2011-12-10 Thread Andrej Mitrovic
Create a .chm with this: http://thecybershadow.net/d/docs/

Re: New Website Issues I've Found

2011-12-10 Thread Xinok
On 12/10/2011 3:11 PM, Chad J wrote: I'm looking at http://www.d-programming-language.org and seeing the following problems: I found a few more issues as well: - The links to D 2.0 Changelog, D 1.0 Changelog, and D Programming Language Specification 2.0 are broken at http://www.d-programming-

Re: d-programming-language.com

2011-12-10 Thread Mirko Pilger
There should be a .chm in the distribution +1

Re: About function keyword

2011-12-10 Thread Timon Gehr
On 12/11/2011 12:35 AM, kenji hara wrote: 2011/12/11 deadalnix: Hi, I was working with std.concurrency and discovered a (now reported) bug about receive and function. It lead me to some experimentations with fucntions. consider the code bellow : module funtest; import std.stdio; void infos(T

Re: d-programming-language.com

2011-12-10 Thread Manu
On 10 December 2011 21:28, Walter Bright wrote: > On 12/10/2011 9:21 AM, Manu wrote: > >> Okay, so is this the official documentation for the language? >> Is there somewhere else I should be looking? >> >> I ask because literally 50% if things I've looked up in the last 2 days >> are >> undocumen

Re: d-programming-language.com

2011-12-10 Thread Manu
On 10 December 2011 20:08, Trass3r wrote: > Am 10.12.2011, 18:21 Uhr, schrieb Manu : > > > Okay, so is this the official documentation for the language? >> Is there somewhere else I should be looking? >> > > You mean .org > Yes this is the official documentation and yes it is lacking in some are

Re: About function keyword

2011-12-10 Thread kenji hara
2011/12/11 deadalnix : > Hi, > > I was working with std.concurrency and discovered a (now reported) bug about > receive and function. It lead me to some experimentations with fucntions. > consider the code bellow : > > module funtest; > > import std.stdio; > > void infos(T)(T fun) { >        writel

Re: Fixing const arrays

2011-12-10 Thread Michel Fortin
On 2011-12-10 21:47:13 +, Andrei Alexandrescu said: We decided to fix this issue by automatically shedding the top-level const when passing an array or a pointer by value into a function. It seems strange that if you implemented the exact same semantic as an a dynamic array or a pointer

Re: Fixing const arrays

2011-12-10 Thread kenji hara
OK. I agree to the suggestion. I've been afraid that increasing IFTI rule is making the language learning difficult. It comes from the experience from implementing inout deduction for template function. But also it is useful that removing top const when passing arguments by value. C++ precedent c

Re: Fixing const arrays

2011-12-10 Thread Jonathan M Davis
On Sunday, December 11, 2011 08:01:57 kenji hara wrote: > 2011/12/11 bearophile : > > kenji hara: > >> It breaks IFTI rule, > > > > What do you mean? > > I mean following code comment will not become true. > > void func(T)(T prm){} > void main(){ >X arg; >func(arg); // T is deduced to t

Re: Fixing const arrays

2011-12-10 Thread Timon Gehr
On 12/10/2011 11:41 PM, Andrei Alexandrescu wrote: On 12/10/11 4:31 PM, kenji hara wrote: Treating whole constant arrays as ranges by automatically shedding the top-level const is good. But realizing it by language semantic change is definitely bad.It breaks IFTI rule, and adding special case wi

Re: D1 to be discontinued on December 31, 2012

2011-12-10 Thread F i L
Should have set the date to Dec 21st so D1's end would coincide with the end of the world in 2012 ;)

Re: Fixing const arrays

2011-12-10 Thread kenji hara
2011/12/11 Andrei Alexandrescu : > On 12/10/11 4:31 PM, kenji hara wrote: >> >> Treating whole constant arrays as ranges by automatically shedding the >> top-level const is good. >> But realizing it by language semantic change is definitely bad.It >> breaks IFTI rule, and adding special case will m

Re: New Website Issues I've Found

2011-12-10 Thread Chad J
On 12/10/2011 05:15 PM, Andrei Alexandrescu wrote: > On 12/10/11 3:44 PM, Sean Kelly wrote: >> The sidebar is justified according to weird rules. Looks like crap on >> Safari.. > > Fixed. > >> On Dec 10, 2011, at 12:11 PM, Chad >> J wrote: >>> - There is no "bug tracker" link on the left. Someh

Re: Fixing const arrays

2011-12-10 Thread kenji hara
2011/12/11 bearophile : > kenji hara: > >> It breaks IFTI rule, > > What do you mean? I mean following code comment will not become true. void func(T)(T prm){} void main(){ X arg; func(arg); // T is deduced to typeof(arg) } > > >> and adding special case will make difficult to learn langu

Re: About function keyword

2011-12-10 Thread deadalnix
Le 10/12/2011 23:42, bearophile a écrit : deadalnix: in the first case, doNothing is evaluated, even with no () . This function isn't @property, so this behaviour is somehow misleading and error prone. This needs to change. When passing a delegate, is(T == delegate) is true, but when passi

Re: Fixing const arrays

2011-12-10 Thread bearophile
kenji hara: > It breaks IFTI rule, What do you mean? > and adding special case will make difficult to learn language. I think that change proposed by Andrei A. (that I like) doesn't add a special case to D2. Currently (2.057beta) this works: void main() { immutable(int[]) a = [1, 2];

Re: About function keyword

2011-12-10 Thread bearophile
deadalnix: > in the first case, doNothing is evaluated, even with no () . > This function isn't @property, so this behaviour is somehow misleading > and error prone. This needs to change. > When passing a delegate, is(T == delegate) is true, but when passing a > function is(T == function) is

Re: Fixing const arrays

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 4:31 PM, kenji hara wrote: Treating whole constant arrays as ranges by automatically shedding the top-level const is good. But realizing it by language semantic change is definitely bad.It breaks IFTI rule, and adding special case will make difficult to learn language. Instead of lan

dfeed

2011-12-10 Thread Andrei Alexandrescu
One idea for Vladimir's dfeed: it would be great to automatically post the tweets of D_language to digitalmars.D.announce. Andrei

Re: Fixing const arrays

2011-12-10 Thread deadalnix
This is just about removing the constness for whatever the part of a type that is passed by value. This is not really a special rule and make sense. Le 10/12/2011 23:31, kenji hara a écrit : Treating whole constant arrays as ranges by automatically shedding the top-level const is good. But rea

Re: Fixing const arrays

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 4:31 PM, kenji hara wrote: Treating whole constant arrays as ranges by automatically shedding the top-level const is good. But realizing it by language semantic change is definitely bad.It breaks IFTI rule, and adding special case will make difficult to learn language. There is no b

About function keyword

2011-12-10 Thread deadalnix
Hi, I was working with std.concurrency and discovered a (now reported) bug about receive and function. It lead me to some experimentations with fucntions. consider the code bellow : module funtest; import std.stdio; void infos(T)(T fun) { writeln(typeof(fun).stringof); write

Re: Fixing const arrays

2011-12-10 Thread Jonathan M Davis
On Sunday, December 11, 2011 07:31:28 kenji hara wrote: > Treating whole constant arrays as ranges by automatically shedding the > top-level const is good. > But realizing it by language semantic change is definitely bad.It > breaks IFTI rule, and adding special case will make difficult to learn >

Re: Package manager - interacting with the compiler

2011-12-10 Thread J Arrizza
A few other potential twists. - the installation step needs to be portable int that can install the variant build artifacts into non-standard file system locations. For example, the build artifacts for the windows build and the build artifacts for the linux build need to end up in separate directo

Re: Fixing const arrays

2011-12-10 Thread kenji hara
Treating whole constant arrays as ranges by automatically shedding the top-level const is good. But realizing it by language semantic change is definitely bad.It breaks IFTI rule, and adding special case will make difficult to learn language. Instead of language change, we can add specializations

Re: New Website Issues I've Found

2011-12-10 Thread David Nadlinger
On 12/10/11 11:24 PM, Jonathan M Davis wrote: On Saturday, December 10, 2011 16:15:23 Andrei Alexandrescu wrote: Thanks! Take a look at http://dlang.org. Wow. We have the domain name already? That was quick. - Jonathan M Davis dlang.org has been CNAME'd to the d-p-l.org server for quite som

Re: New Website Issues I've Found

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 4:24 PM, Jonathan M Davis wrote: On Saturday, December 10, 2011 16:15:23 Andrei Alexandrescu wrote: Thanks! Take a look at http://dlang.org. Wow. We have the domain name already? That was quick. Not yet. It's still registered to Oscar, who had had it CNAMEd to our website for a

Re: New Website Issues I've Found

2011-12-10 Thread Jonathan M Davis
On Saturday, December 10, 2011 16:15:23 Andrei Alexandrescu wrote: > Thanks! Take a look at http://dlang.org. Wow. We have the domain name already? That was quick. - Jonathan M Davis

Re: Fixing const arrays

2011-12-10 Thread deadalnix
Le 10/12/2011 22:47, Andrei Alexandrescu a écrit : Walter and I discussed today and decided to fix this long-standing issue: import std.algorithm; void main() { const arr = [1, 2, 3]; reduce!"a*b"(arr); } The problem here is that D's built-in arrays are at the same time containers and their own

Re: SDC & ddmd

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 3:59 PM, Somedude wrote: Le 10/12/2011 10:56, Bernard Helyer a écrit : 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 differe

Re: SDC & ddmd

2011-12-10 Thread Jonathan M Davis
On Saturday, December 10, 2011 22:59:48 Somedude wrote: > Le 10/12/2011 10:56, Bernard Helyer a écrit : > > 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 > >> obs

Re: New Website Issues I've Found

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 3:44 PM, Sean Kelly wrote: The sidebar is justified according to weird rules. Looks like crap on Safari.. Fixed. On Dec 10, 2011, at 12:11 PM, Chad J wrote: - There is no "bug tracker" link on the left. Somehow I have to find myself on http://www.digitalmars.com/d before it bec

Re: Fixing const arrays

2011-12-10 Thread Jonathan M Davis
On Saturday, December 10, 2011 15:47:13 Andrei Alexandrescu wrote: > Walter and I discussed today and decided to fix this long-standing issue: [snip] This looks like a solid decision, and I was actually about to suggest it when thinking about the issues with const ranges today. It's the only sens

Re: Package manager - interacting with the compiler

2011-12-10 Thread Jonathan M Davis
On Saturday, December 10, 2011 22:17:44 jdrewsen wrote: > On Saturday, 10 December 2011 at 08:55:57 UTC, Jacob Carlborg > > wrote: > > I think I've come so far in my development of a package manager > > that it's time to think how it should interact with the > > compiler. > > > > Currently I see

Re: SDC & ddmd

2011-12-10 Thread Somedude
Le 10/12/2011 10:56, Bernard Helyer a écrit : > 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

Re: d-programming-language.com

2011-12-10 Thread Mirko Pilger
v2.055 to v2.056 v2.055 to v2.057b

Re: d-programming-language.com

2011-12-10 Thread Walter Bright
On 12/10/2011 1:48 PM, Mirko Pilger wrote: I think dman didn't get updated properly on that platform. It does work properly on Windows. obviously i'm missing something here. within the downloaded archives for v2.055 to v2.056 i can only find binaries of dman for freebsd, linux and osx but not f

Re: Fixing const arrays

2011-12-10 Thread Adam D. Ruppe
Andrei Alexandrescu Wrote: > We decided to fix this issue by automatically shedding the top-level > const when passing an array or a pointer by value into a function. Thank you. Finally.

Fixing const arrays

2011-12-10 Thread Andrei Alexandrescu
Walter and I discussed today and decided to fix this long-standing issue: import std.algorithm; void main() { const arr = [1, 2, 3]; reduce!"a*b"(arr); } The problem here is that D's built-in arrays are at the same time containers and their own ranges. When the array is constant the matter

Re: d-programming-language.com

2011-12-10 Thread Mirko Pilger
I think dman didn't get updated properly on that platform. It does work properly on Windows. obviously i'm missing something here. within the downloaded archives for v2.055 to v2.056 i can only find binaries of dman for freebsd, linux and osx but not for windows. :/

Re: New Website Issues I've Found

2011-12-10 Thread Sean Kelly
The sidebar is justified according to weird rules. Looks like crap on Safari. Sent from my iPhone On Dec 10, 2011, at 12:11 PM, Chad J wrote: > I'm looking at http://www.d-programming-language.org and seeing the > following problems: > > - There is no "bug tracker" link on the left. Somehow

Re: d-programming-language.com

2011-12-10 Thread Walter Bright
On 12/10/2011 12:52 PM, Chad J wrote: On 12/10/2011 03:50 PM, Chad J wrote: On 12/10/2011 02:28 PM, Walter Bright wrote: Yup. In general, you can find the documentation on a particular keyword by typing in: dman keyword Interesting, but doesn't work for me: chad@Hugin ~ $ dman auto x-w

Re: If I had my way

2011-12-10 Thread Walter Bright
On 12/10/2011 12:53 PM, maarten van damme wrote: Could also someone shed some light on creating shared library's on linux? there was some news about -fPIC beeing fixed but no real confirmation. Turns out there was a bug where EBX was not set correctly when calling a function that existed in a

Re: If I had my way

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 2:45 PM, Mehrdad wrote: On 12/10/2011 12:37 PM, Andrei Alexandrescu wrote: On 12/10/11 2:28 PM, Gour wrote: On Sat, 10 Dec 2011 14:35:13 -0500 bearophile wrote: I suggest to release the nearly done 2.057 and leave those issues to 2.058 and successive versions. I suggest releasin

Re: If I had my way

2011-12-10 Thread Andrei Alexandrescu
On 12/10/11 2:56 PM, bearophile wrote: Andrei Alexandrescu: We should, after fixing ALL issues raised by Mehrdad. This is not a wise thing to do. In Bugzilla there are several issues more urgent/bigger/worse than those raised Mehrdad. In Bugzilla there is a way to tag bugs with a priority/imp

D1 to be discontinued on December 31, 2012

2011-12-10 Thread Andrei Alexandrescu
Hello everyone, This is the end of the year, a good time to look both back and forward. Walter and I have had a long discussion about our strategy going forth. But before that, let's take a quick look at this year. By all accounts, 2011 has been a terrific year for D. There has been unprece

Re: Package manager - interacting with the compiler

2011-12-10 Thread jdrewsen
On Saturday, 10 December 2011 at 08:55:57 UTC, Jacob Carlborg wrote: I think I've come so far in my development of a package manager that it's time to think how it should interact with the compiler. Currently I see two use cases: 1. When the package manager installs (and builds) a package 2.

Re: Why D const is annoying

2011-12-10 Thread Timon Gehr
On 12/10/2011 10:04 PM, Mehrdad wrote: On 12/10/2011 1:00 PM, Timon Gehr wrote: Yah, the issue is that *BOTH* your inouts are on a parameter. Just change them to const, without copying any code and call it a day... I don't see what's wrong with that, but yes, that's what I did. And that caused

Re: Package manager - interacting with the compiler

2011-12-10 Thread J Arrizza
Jacob, On Sat, Dec 10, 2011 at 12:55 AM, Jacob Carlborg wrote: > Currently I see two use cases: > > 1. When the package manager installs (and builds) a package > This will have to handle cross-compilations and multiple build variants per platform. Multiple platforms are needed especially for em

Re: What can be done to reduce executable size?

2011-12-10 Thread RivenTheMage
> Short term and long term suggestions ? Anything we can do ? I'm using UniLink. > import std.stdio; > int main(){ > writefln("Hello Bloat!"); > return 0; > } On Windows: DMD v2.056 UniLink 1.07 build 3.21 --- import std.stdio; int main() { writefln("Hello World!"); return 0; } --- dmd.ex

Re: Why D const is annoying

2011-12-10 Thread Mehrdad
On 12/10/2011 1:00 PM, Timon Gehr wrote: Yah, the issue is that *BOTH* your inouts are on a parameter. Just change them to const, without copying any code and call it a day... I don't see what's wrong with that, but yes, that's what I did. And that caused the next bug that I posted. :P

Re: Why D const is annoying

2011-12-10 Thread bearophile
Jonathan M Davis: > Per isInputRange!(typeof(arr)), no. It has the right functions, but it can't > use them, because it's const. > [... snip] > > Ranges are too heavily used > with their current API for us to change it that drastically now. Thank you Jonathan for taking the time to explain me

Re: Why D const is annoying

2011-12-10 Thread Timon Gehr
On 12/10/2011 08:47 PM, Mehrdad wrote: On 12/10/2011 3:33 AM, Walter Bright wrote: On 12/10/2011 3:14 AM, Mehrdad wrote: ... and another... (yes, this one _IS_ a const issue) struct S { int opApply(scope int delegate(ref inout(int)) dg) inout { return 0; } } void main() { foreach (i; S()) { }

Re: If I had my way

2011-12-10 Thread David Nadlinger
On 12/10/11 9:34 PM, Walter Bright wrote: Andrei makes a compelling case, but I am also concerned about messing things up for you. What is your schedule like? First of all, I don't want it to appear like I would be demanding special treatment, which is certainly not what I intend. That being

Re: If I had my way

2011-12-10 Thread bearophile
Andrei Alexandrescu: > We should, after fixing ALL issues raised by Mehrdad. This is not a wise thing to do. In Bugzilla there are several issues more urgent/bigger/worse than those raised Mehrdad. In Bugzilla there is a way to tag bugs with a priority/importance. Bye, bearophile

Re: d-programming-language.com

2011-12-10 Thread Chad J
On 12/10/2011 02:28 PM, Walter Bright wrote: > > Yup. In general, you can find the documentation on a particular keyword > by typing in: > >dman keyword Interesting, but doesn't work for me: chad@Hugin ~ $ dman auto x-www-browser: No such file or directory chad@Hugin ~ $

  1   2   3   >