Re: Andrei's Google Talk

2010-08-06 Thread Jacob Carlborg
On 2010-08-05 22:42, Walter Bright wrote: Jacob Carlborg wrote: What's unclear about it? Basically there's no road map, especially no official. What will happen in one month? Two months? Half a year? The only way to get some idea about what will happen is following the newsgroups and even doin

Re: Bug in the spec or implementation?

2010-08-06 Thread Don
simendsjo wrote: On 05.08.2010 22:24, Steven Schveighoffer wrote: On Thu, 05 Aug 2010 16:00:35 -0400, simendsjo wrote: On 05.08.2010 21:41, Steven Schveighoffer wrote: (...) Seems there are plenty of errors in the spec though... It will be very difficult to learn the language if the spec an

Re: Mixin Expressions, can't evalutate string variable

2010-08-06 Thread Jacob Carlborg
On 2010-08-05 23:50, Andrej Mitrovic wrote: On Thu, Aug 5, 2010 at 11:29 PM, Philippe Sigaud mailto:philippe.sig...@gmail.com>> wrote: On Thu, Aug 5, 2010 at 22:24, Andrej Mitrovic mailto:andrej.mitrov...@gmail.com>> wrote: Thanks, Steven! You don't want to know what

Re: Andrei's Google Talk

2010-08-06 Thread Jacob Carlborg
On 2010-08-05 22:56, Walter Bright wrote: Jacob Carlborg wrote: I was not saying it's going to be easy to make shared libraries work on Linux. I've tried to make shared libraries working on Linux starting with the same approach I used when making them work on Mac OS X. Issue 4583 is how far I go

Re: Andrei's Google Talk

2010-08-06 Thread Steven Schveighoffer
On Thu, 05 Aug 2010 16:37:36 -0400, Walter Bright wrote: Andrej Mitrovic wrote: Who is working on the D spec documentation, if anyone? I know Andrei and others work on the Phobos docs, but what about the D docs? The D docs are actually part of the Phobos under source control, and the pe

Re: [OT] opera 10.60 and d's bugzilla

2010-08-06 Thread Steven Schveighoffer
On Tue, 13 Jul 2010 15:41:05 -0400, Steven Schveighoffer wrote: On Tue, 13 Jul 2010 15:27:39 -0400, Vladimir Panteleev wrote: On Tue, 13 Jul 2010 21:56:57 +0300, Steven Schveighoffer wrote: I've noticed since installing opera 10.60, D's bugzilla seems to not hide any html and the j

Re: Build farm(er)

2010-08-06 Thread Andrei Alexandrescu
On 08/06/2010 12:00 AM, BCS wrote: Hello Andrei, Hello, I was talking yesterday with Walter and Brad about enacting a build farm and the build master who would tend to it. I'd be interested in partaking in such an endeavor. I was actually thinking of doing something related (automatic regre

Re: Build farm(er)

2010-08-06 Thread Jacob Carlborg
On 2010-08-06 03:59, Andrei Alexandrescu wrote: Hello, I was talking yesterday with Walter and Brad about enacting a build farm and the build master who would tend to it. The basic idea is to amass a number of remote machines (real and/or virtual) running various OSs and use them for building

Re: Build farm(er)

2010-08-06 Thread BCS
Hello Andrei, On 08/06/2010 12:00 AM, BCS wrote: Hello Andrei, Hello, I was talking yesterday with Walter and Brad about enacting a build farm and the build master who would tend to it. I'd be interested in partaking in such an endeavor. I was actually thinking of doing something related

Re: D 2.0 windows installer overwrites PATH variable

2010-08-06 Thread Andrej Mitrovic
I'm not seeing that behavior here (XP SP3), and I've just tested it. PATH gets appended with directories of DMD|DMD2|DM /bin. Btw., Rapid Environment Editor is a nice freeware app for manipulating environment variables. You can make backups with it as well. I will say the download in the setup is

Re: Andrei's Google Talk

2010-08-06 Thread BCS
Hello Walter, awishformore wrote: 64 bits on other platforms will follow once it proves out on Linux. So the 64bit support you're working on will not be for Windows? Not initially. 64 bit C on Windows uses a different ABI, the exception handling support is different, And I'm guessing tha

Re: Mixin Expressions, can't evalutate string variable

2010-08-06 Thread Andrej Mitrovic
I've already tried that. But .mangleof on an aliased symbol just returns "alias" as a string. On Fri, Aug 6, 2010 at 10:44 AM, Jacob Carlborg wrote: > On 2010-08-05 23:50, Andrej Mitrovic wrote: > >> On Thu, Aug 5, 2010 at 11:29 PM, Philippe Sigaud >> mailto:philippe.sig...@gmail.com>> wrote: >

Re: Andrei's Google Talk

2010-08-06 Thread Alexander Malakhov
Steven Schveighoffer писал(а) в своём письме Fri, 06 Aug 2010 18:28:41 +0700: 2. It seems like the documentation is HTML written as ddoc. I see $(P) tags, $(LI) tags, etc. Can't we just write it as HTML? I have had exactly same thought when I've first seen DDoc a week ago I think man

Re: Andrei's Google Talk

2010-08-06 Thread Jacob Carlborg
On 2010-08-06 17:41, Alexander Malakhov wrote: Steven Schveighoffer писал(а) в своём письме Fri, 06 Aug 2010 18:28:41 +0700: 2. It seems like the documentation is HTML written as ddoc. I see $(P) tags, $(LI) tags, etc. Can't we just write it as HTML? I have had exactly same thought when I've

Template constraints error messages using cputs()

2010-08-06 Thread bearophile
In D1 there were no template constraints, so to test the template arguments I used to add some static asserts inside them. So a wrong template argument shows a error message written by me that explains why the instantiation has failed (unfortunately those error messages show the line number insi

Re: Template constraints error messages using cputs()

2010-08-06 Thread Andrei Alexandrescu
bearophile wrote: In D1 there were no template constraints, so to test the template arguments I used to add some static asserts inside them. So a wrong template argument shows a error message written by me that explains why the instantiation has failed (unfortunately those error messages show

Re: Where to find D2 docs?

2010-08-06 Thread Jesse Phillips
Neal Becker Wrote: > I have TDPL. If I want to know what to expect to be the diffs to D2, where > could I find this information? TDPL is about D2 so their aren't any differences from it and D2. The D2 homepage is http://digitalmars.com/d/2.0/index.html

32-bit/64-bit D calling convention questions

2010-08-06 Thread Michel Fortin
On 2010-08-05 17:42:58 -0400, Walter Bright said: 64 bit C on Windows uses a different ABI, the exception handling support is different, there's no linker (oops), etc. It's a much harder job. Which makes me think of two small unimportant questions I'm curious about: What will be the 64-bit

Re: Template constraints error messages using cputs()

2010-08-06 Thread bearophile
Andrei Alexandrescu: > pragma(msg, "Is this what you need?"); You are right, in some situations it works :-) But you have to guard the pragma(msg) with a static if, so if your template constraint is a CTFE (that uses a normal 'if' instead of a 'static if') you can't use it, while ctputs() is OK

Re: Template constraints error messages using cputs()

2010-08-06 Thread bearophile
Andrei Alexandrescu: > pragma(msg, "Is this what you need?"); And just to express my feelings with better clarity, I think pragma(msg) is so buggy and unflexible that it deserves to go killed :-) Bye, bearophile

Re: Andrei's Google Talk

2010-08-06 Thread Steven Schveighoffer
On Fri, 06 Aug 2010 11:48:00 -0400, Jacob Carlborg wrote: On 2010-08-06 17:41, Alexander Malakhov wrote: Steven Schveighoffer писал(а) в своём письме Fri, 06 Aug 2010 18:28:41 +0700: 2. It seems like the documentation is HTML written as ddoc. I see $(P) tags, $(LI) tags, etc. Can't we just

Re: Template constraints error messages using cputs()

2010-08-06 Thread Lutger
bearophile wrote: > Andrei Alexandrescu: >> pragma(msg, "Is this what you need?"); > > And just to express my feelings with better clarity, I think pragma(msg) is so > buggy and unflexible that it deserves to go killed :-) > > Bye, > bearophile What kind of bugs?

Re: range chunks

2010-08-06 Thread Philippe Sigaud
2010/8/6 Adrian Matoga > Hi, > > Is there any off the shelf solution for iterating over a range by chunks? None that I know of. (should substitute [1, 2, 3], [4, 5, 6], [7, 8, 9], [10] for chunk in > subsequent iterations) > > As a data point, why do you think it should produce [10] and not st

Re: Template constraints error messages using cputs()

2010-08-06 Thread bearophile
Lutger: > What kind of bugs? If you take a look at my original post in this thread you can see it contains a reference to the bug 3952, that contains some examples. There are other problems I have not listed in that bug report. Bye, bearophile

Re: range chunks

2010-08-06 Thread bearophile
Philippe Sigaud: > Here is what I cooked, it's still a bit rough around the edges. It has an > optional step argument, to see how many elements to jump. It's better to give it a default chunk size of 2. If I have understood this well, then this is the partition() function: http://reference.wolfram

Re: range chunks

2010-08-06 Thread Steven Schveighoffer
On Fri, 06 Aug 2010 13:33:09 -0400, Philippe Sigaud wrote: Here is what I cooked, it's still a bit rough around the edges. It has an optional step argument, to see how many elements to jump. [snip] ElementType!R[] front() @property { return array(take(range, n));} // I'd change this

Re: Andrei's Google Talk

2010-08-06 Thread Johannes Pfau
On 06.08.2010 19:23, Steven Schveighoffer wrote: > On Fri, 06 Aug 2010 11:48:00 -0400, Jacob Carlborg wrote: > >> On 2010-08-06 17:41, Alexander Malakhov wrote: >>> Steven Schveighoffer писал(а) в своём письме Fri, >>> 06 Aug 2010 18:28:41 +0700: >>> 2. It seems like the documentation is HT

Re: Andrei's Google Talk

2010-08-06 Thread Don
Steven Schveighoffer wrote: On Fri, 06 Aug 2010 11:48:00 -0400, Jacob Carlborg wrote: On 2010-08-06 17:41, Alexander Malakhov wrote: Steven Schveighoffer писал(а) в своём письме Fri, 06 Aug 2010 18:28:41 +0700: 2. It seems like the documentation is HTML written as ddoc. I see $(P) tags, $(

Re: Mixin Expressions, can't evalutate string variable

2010-08-06 Thread Jonathan M Davis
On Friday, August 06, 2010 08:08:03 Andrej Mitrovic wrote: > I've already tried that. But .mangleof on an aliased symbol just returns > "alias" as a string. That sounds like a bug report in the making. - Jonathan M Davis

Re: Andrei's Google Talk

2010-08-06 Thread Steven Schveighoffer
On Fri, 06 Aug 2010 14:26:48 -0400, Don wrote: Steven Schveighoffer wrote: Does ddoc output in pdf? And besides, most of the tags *are* html tags, they're even the same tag name. I can't imagine there's no htmltopdf program that would do exactly that. The reason they're the same is tha

Re: Andrei's Google Talk

2010-08-06 Thread David Gileadi
On 8/6/10 11:24 AM, Graham Fawcett wrote: On Fri, 06 Aug 2010 19:56:55 +0200, Johannes Pfau wrote: A simple html to pdf conversion might not produce good results. Converting *anything* to PDF might not produce good results. :) There's at least one excellent, open-source HTML-to-PDF converter

Re: range chunks

2010-08-06 Thread Philippe Sigaud
On Fri, Aug 6, 2010 at 19:48, Steven Schveighoffer wrote: > On Fri, 06 Aug 2010 13:33:09 -0400, Philippe Sigaud < > philippe.sig...@gmail.com> wrote: > > Here is what I cooked, it's still a bit rough around the edges. It has an >> optional step argument, to see how many elements to jump. >> > > [

Re: Build farm(er)

2010-08-06 Thread Tomek Sowiński
Andrei Alexandrescu napisał: > Hello, > > > I was talking yesterday with Walter and Brad about enacting a build farm > and the build master who would tend to it. > > The basic idea is to amass a number of remote machines (real and/or > virtual) running various OSs and use them for building and

Re: range chunks

2010-08-06 Thread Philippe Sigaud
On Fri, Aug 6, 2010 at 19:41, bearophile wrote: > Philippe Sigaud: > > Here is what I cooked, it's still a bit rough around the edges. It has an > > optional step argument, to see how many elements to jump. > > It's better to give it a default chunk size of 2. > Why? And what should the default

Re: Andrei's Google Talk

2010-08-06 Thread Lutger
Steven Schveighoffer wrote: > On Fri, 06 Aug 2010 14:26:48 -0400, Don wrote: > >> Steven Schveighoffer wrote: >>> Does ddoc output in pdf? And besides, most of the tags *are* html >>> tags, they're even the same tag name. I can't imagine there's no >>> htmltopdf program that would do exactly

Re: Andrei's Google Talk

2010-08-06 Thread Andrei Alexandrescu
Steven Schveighoffer wrote: On Fri, 06 Aug 2010 11:48:00 -0400, Jacob Carlborg wrote: On 2010-08-06 17:41, Alexander Malakhov wrote: Steven Schveighoffer писал(а) в своём письме Fri, 06 Aug 2010 18:28:41 +0700: 2. It seems like the documentation is HTML written as ddoc. I see $(P) tags, $(

Re: Template constraints error messages using cputs()

2010-08-06 Thread Andrei Alexandrescu
Lutger wrote: bearophile wrote: Andrei Alexandrescu: pragma(msg, "Is this what you need?"); And just to express my feelings with better clarity, I think pragma(msg) is so buggy and unflexible that it deserves to go killed :-) Bye, bearophile What kind of bugs? And how would changing its

Re: Build farm(er)

2010-08-06 Thread Andrei Alexandrescu
BCS wrote: Hello Andrei, On 08/06/2010 12:00 AM, BCS wrote: Hello Andrei, Hello, I was talking yesterday with Walter and Brad about enacting a build farm and the build master who would tend to it. I'd be interested in partaking in such an endeavor. I was actually thinking of doing someth

Re: Build farm(er)

2010-08-06 Thread Andrei Alexandrescu
Tomek Sowiński wrote: Andrei Alexandrescu napisał: Hello, I was talking yesterday with Walter and Brad about enacting a build farm and the build master who would tend to it. The basic idea is to amass a number of remote machines (real and/or virtual) running various OSs and use them for buil

Templated struct operator overloading

2010-08-06 Thread Peter Alexander
Is this a bug, or a limitation of how operator overloads handle generic operands? struct Vec(int N) {} struct Mat(int M, int N) { Vec!(M) opBinary(string op)(in Vec!(N) rhs) { return Vec!(M)(); } } void main() { Vec!(3) v; Mat!(3, 3) m;

Re: Build farm(er)

2010-08-06 Thread SK
Hello Andrei, On Thu, Aug 5, 2010 at 6:59 PM, Andrei Alexandrescu wrote: > and everything is built from source all the way to uploading the installers > for all OSs to the website and updating html files accordingly. > How about CDash? http://www.cdash.org/cdash/project/about.html CMake+CTest+CD

Re: Andrei's Google Talk

2010-08-06 Thread Steven Schveighoffer
On Fri, 06 Aug 2010 15:02:26 -0400, Andrei Alexandrescu wrote: Steven Schveighoffer wrote: On Fri, 06 Aug 2010 11:48:00 -0400, Jacob Carlborg wrote: On 2010-08-06 17:41, Alexander Malakhov wrote: Steven Schveighoffer писал(а) в своём письме Fri, 06 Aug 2010 18:28:41 +0700: 2. It seem

Re: range chunks

2010-08-06 Thread Steven Schveighoffer
On Fri, 06 Aug 2010 14:59:17 -0400, Philippe Sigaud wrote: On Fri, Aug 6, 2010 at 19:48, Steven Schveighoffer wrote: On Fri, 06 Aug 2010 13:33:09 -0400, Philippe Sigaud < philippe.sig...@gmail.com> wrote: Here is what I cooked, it's still a bit rough around the edges. It has an optio

Re: range chunks

2010-08-06 Thread Andrei Alexandrescu
Steven Schveighoffer wrote: On Fri, 06 Aug 2010 14:59:17 -0400, Philippe Sigaud wrote: On Fri, Aug 6, 2010 at 19:48, Steven Schveighoffer wrote: On Fri, 06 Aug 2010 13:33:09 -0400, Philippe Sigaud < philippe.sig...@gmail.com> wrote: Here is what I cooked, it's still a bit rough around th

Re: Mixin Expressions, can't evalutate string variable

2010-08-06 Thread Philippe Sigaud
Andrej: > > It was just an exercise for fun but it's cool that things like this are > possible in D. It would be nice if I could get the actual names of the > parameters the function takes + the clear name of the function itself, that > way I'd actually get back variables "ftc, fta, ftm" back)

Re: Andrei's Google Talk

2010-08-06 Thread Jesse Phillips
Steven Schveighoffer Wrote: > I wouldn't mind the current docs, but I'd like to have some document to > know what tags are defined and what they mean (like a ddocdoc), and how to > define new tags. Maybe this already exists? My two comments are, shouldn't paragraphs be handled with a blank l

Re: Templated struct operator overloading

2010-08-06 Thread Philippe Sigaud
On Fri, Aug 6, 2010 at 21:54, Peter Alexander wrote: > Is this a bug, or a limitation of how operator overloads handle generic > operands? > > struct Vec(int N) {} > > struct Mat(int M, int N) > { > Vec!(M) opBinary(string op)(in Vec!(N) rhs) > { > return Vec!(M)(); > }

Re: Template constraints error messages using cputs()

2010-08-06 Thread Don
Andrei Alexandrescu wrote: Lutger wrote: bearophile wrote: Andrei Alexandrescu: pragma(msg, "Is this what you need?"); And just to express my feelings with better clarity, I think pragma(msg) is so buggy and unflexible that it deserves to go killed :-) Bye, bearophile What kind of bugs?

Re: range chunks

2010-08-06 Thread Philippe Sigaud
On Fri, Aug 6, 2010 at 22:11, Andrei Alexandrescu < seewebsiteforem...@erdani.org> wrote: > Steven Schveighoffer wrote: > >> Doesn't take return a random-access range if the original is a random >> access range? >> >> I would actually expect take(range, n) to return range[0..n] if range >> support

Re: Andrei's Google Talk

2010-08-06 Thread Philippe Sigaud
On Fri, Aug 6, 2010 at 21:02, Andrei Alexandrescu < seewebsiteforem...@erdani.org> wrote: > > I have an experimental std.ddoc that generates TeX. > >From a 'pure ddoc' file or from a .d file? It transforms ddoc mark-up into TeX mak-up? Would it allow (theoretically) for literate programming? we

Re: Build farm(er)

2010-08-06 Thread sybrandy
I can't help with hardware, but if you want to virtualize some of your operating systems, VirtualBox is very nice and freely available. Also, and this is just me throwing out something new, you could write some small Erlang programs that are linked to each other to manage the distribution. To

Re: range chunks

2010-08-06 Thread Adrian Matoga
On 2010-08-06 19:33, Philippe Sigaud wrote: 2010/8/6 Adrian Matoga mailto:e...@atari8.info>> Hi, Is there any off the shelf solution for iterating over a range by chunks? None that I know of. (should substitute [1, 2, 3], [4, 5, 6], [7, 8, 9], [10] for chunk in subsequent

Re: Mixin Expressions, can't evalutate string variable

2010-08-06 Thread Andrej Mitrovic
Slightly OT: I've noticed you're often missing the word "know" in your posts (e.g. "I don't what", that should be "I don't know what"). Is something filtering your posts? :) And yeah, I've noticed your other thread with the argument names. With a little bit of regex I could easily extract the vari

Re: D 2.0 windows installer overwrites PATH variable

2010-08-06 Thread notna
could maybe still be http://d.puremagic.com/issues/show_bug.cgi?id=3319 Am 06.08.2010 05:17, schrieb Wei Cheng: Dear all: I've found that D 2.0 windows installer (one key installer) will clear the original PATH and set it as the D path. Is it a bug in the installer? Should it keep the original v

Re: 32-bit/64-bit D calling convention questions

2010-08-06 Thread Walter Bright
Michel Fortin wrote: What will be the 64-bit D calling convention? Will it follow the host platform's C calling convention? Yes. or will it be more uniform across platforms? No. Also, why is 32-bit D using its own calling convention instead of reusing an already existing one? Generates

Re: Andrei's Google Talk

2010-08-06 Thread Walter Bright
BCS wrote: While you fix that, could you also add support for another linker to the win32 version? Which one are you thinking about?

Re: Andrei's Google Talk

2010-08-06 Thread Walter Bright
Steven Schveighoffer wrote: I just did (fixed a lot of stuff in the array page). Thank you. A couple comments: 1. There is no guideline for updating the spec (at least that I could find). I deduced $(V1) and $(V2) and figured out what $(LNAME2) is, but lack of guidelines may be partially t

Re: Andrei's Google Talk

2010-08-06 Thread Walter Bright
Alexander Malakhov wrote: Also, for example, what if I want to put extra ')' paren into $(D text)? I think there is (simple) solution, but that is one more thing to learn. RPAREN=) $(D text $(RPAREN) ) You'll see a few of those in the macros, in particular $(DOLLAR) to embed a dollar sig

Re: Andrei's Google Talk

2010-08-06 Thread Andrej Mitrovic
This is the same method used in some text editors (e.g. Scite uses this exact same method for variables, $() ). 2010/8/7 Walter Bright > Alexander Malakhov wrote: > >> Also, for example, what if I want to put extra ')' paren into $(D text)? >> I think there is (simple) solution, but that is one

Re: Andrei's Google Talk

2010-08-06 Thread Walter Bright
Don wrote: The reason they're the same is that the docs were originally written in html. The original conversion to ddoc was done via search and replace. One of the HUGE benefits of ddoc is that it does highlighting of the D code. That instantly saved Walter a lot of time. Seriously, converting

Re: Andrei's Google Talk

2010-08-06 Thread Walter Bright
Lutger wrote: doesn't really make much difference than using The advantage of using html tags for formatting like this means editors will recognize tags, and everyone and their mother knows what html tags look like. One trick that can work wonders here is treating ddoc as lisp code, most ed

Wrong and somewhat rude statement in your docs.

2010-08-06 Thread Elias Salom�o Helou Neto
[Sorry for cross-posting, but I've just noticed that the other forum is deprecated.] Please modify your documentation, because the following part of it is even offensive. At least from my viewpoint. Your page http://www.digitalmars.com/d/1.0/memory.html states that (my emphasis): "_Any_ non-t

Re: Andrei's Google Talk

2010-08-06 Thread mwarning
On Thu, 05 Aug 2010 22:34:34 +, mwarning wrote: > On Thu, 05 Aug 2010 13:55:40 -0700, Walter Bright wrote: > >> Adam Ruppe wrote: >>> To abandon DMD for that is language suicide. >> >> Well, one reason (certainly not the only one) I keep with the current >> dmd back end is that I don't need

Re: Andrei's Google Talk

2010-08-06 Thread Jonathan M Davis
On Friday, August 06, 2010 15:27:36 Walter Bright wrote: > BCS wrote: > > While you fix that, could you also add support for another linker to the > > win32 version? > > Which one are you thinking about? Presumably Microsoft's linker if that's at all possible. Unfortunately, having to use dmc fo

Re: Andrei's Google Talk

2010-08-06 Thread Jonathan M Davis
On Friday, August 06, 2010 15:54:51 Walter Bright wrote: > 10. HTML is a visually butt-ugly format that makes my eyes bleed pus. Very > hard to read. Note to self: Don't go anywhere near Walter when he's reading HTML. - Jonathan M Davis

Re: Andrei's Google Talk

2010-08-06 Thread Walter Bright
Andrej Mitrovic wrote: This is the same method used in some text editors (e.g. Scite uses this exact same method for variables, $() ). Yah, I just used the makefile syntax.

Re: Andrei's Google Talk

2010-08-06 Thread Walter Bright
Jonathan M Davis wrote: Unfortunately, having to use dmc for C or C++ in order to link it with D code in Windows would make D a non-starter for any project that couldn't be in pure D where I work. Most of our stuff is cross-platform between Linux and Windows, using gcc on Linux and Visual Studi

Re: Wrong and somewhat rude statement in your docs.

2010-08-06 Thread Walter Bright
Elias Salom������������������������������� wrote: Please modify your documentation, because the following part of it is even offensive. At least from my viewpoint. Your page http://www.digitalmars.com/d/1.0/memory.html states that (my

Re: range chunks

2010-08-06 Thread bearophile
Philippe Sigaud: > > It's better to give it a default chunk size of 2. > > Why? I'm using partition() for years in various languages, and I've seen that the chunks of size 2 are the most common. > And what should the default step be, according to you? If chose n (the chunk > size), because tha

Re: Andrei's Google Talk

2010-08-06 Thread Jonathan M Davis
On Friday, August 06, 2010 16:35:57 Walter Bright wrote: > Jonathan M Davis wrote: > > Unfortunately, having to use dmc for C or C++ in order to link it with D > > code in Windows would make D a non-starter for any project that couldn't > > be in pure D where I work. Most of our stuff is cross-plat

Re: Andrei's Google Talk

2010-08-06 Thread Walter Bright
Jonathan M Davis wrote: Unfortunately, in order to be able to use D where I work, I'd have to be able to link the D code with C/C++ code which has been built with Visual Studio and its compiler and linker. And, if I understand correctly, that means that the D code has to be linked with Microsof

Re: Mixin Expressions, can't evalutate string variable

2010-08-06 Thread Andrej Mitrovic
On Fri, Aug 6, 2010 at 8:40 PM, Jonathan M Davis wrote: > On Friday, August 06, 2010 08:08:03 Andrej Mitrovic wrote: > > I've already tried that. But .mangleof on an aliased symbol just returns > > "alias" as a string. > > That sounds like a bug report in the making. > > - Jonathan M Davis > No I

Re: Mixin Expressions, can't evalutate string variable

2010-08-06 Thread Andrej Mitrovic
Actually I better report this, it might lead to unexpected behavior otherwise. See, this will compile: import std.stdio; auto template_func(alias func, T...)(T args) { return func.mangleof; } void test() {} unittest { writeln(template_func!(test, int)(1)); } void main() { } And this

tolf and detab

2010-08-06 Thread Walter Bright
I wrote these two trivial utilities for the purpose of canonicalizing source code before checkins and to deal with FreeBSD's inability to deal with CRLF line endings, and because I can never figure out the right settings for git to make it do the canonicalization. tolf - converts LF, CR, and C

Re: tolf and detab

2010-08-06 Thread Andrei Alexandrescu
On 08/06/2010 08:34 PM, Walter Bright wrote: I wrote these two trivial utilities for the purpose of canonicalizing source code before checkins and to deal with FreeBSD's inability to deal with CRLF line endings, and because I can never figure out the right settings for git to make it do the canon

Re: range chunks

2010-08-06 Thread Andrei Alexandrescu
On 08/06/2010 06:52 PM, bearophile wrote: Philippe Sigaud: It's better to give it a default chunk size of 2. Why? I'm using partition() for years in various languages, and I've seen that the chunks of size 2 are the most common. And what should the default step be, according to you? If c

Re: Mixin Expressions, can't evalutate string variable

2010-08-06 Thread Andrej Mitrovic
Damn regexe(s|n). I almost never need them, but when I do, I have to spend an hour trying to remember the syntax (+ I'm really used to doing regexes in Python and then there's the whole "regex objects in lang x work different than in lang y" thing). But I digress.. I think a better way is to pass

Re: tolf and detab

2010-08-06 Thread Andrej Mitrovic
Or improve your google-fu by finding some existing tools that do the job right. :) I'm pretty sure Uncrustify is good at most of these issues, not to mention it's a very nice source-code "prettifier/indenter". There's a front-end called UniversalIndentGUI, which has about a dozen integrated versio

Re: Andrei's Google Talk

2010-08-06 Thread Jonathan M Davis
On Friday 06 August 2010 18:07:51 Walter Bright wrote: > Jonathan M Davis wrote: > > Unfortunately, in order to be able to use D where I work, I'd have to be > > able to link the D code with C/C++ code which has been built with Visual > > Studio and its compiler and linker. And, if I understand cor

Re: tolf and detab

2010-08-06 Thread Walter Bright
Andrej Mitrovic wrote: Or improve your google-fu by finding some existing tools that do the job right. :) Sure, but I suspect it's faster to write the utility! After all, they are trivial.

Re: tolf and detab

2010-08-06 Thread Walter Bright
Andrei Alexandrescu wrote: A good exercise would be rewriting these tools in idiomatic D2 and assess the differences. Some D2-fu would be cool. Any takers?

Re: Build farm(er)

2010-08-06 Thread Walter Bright
Tomek Sowiński wrote: An idea: could the assembled farm be reused to build other D projects? Being able to easily run thorough unittests on a variety of machines would be a massive boost in quality of D's software ecosystem. I agree. We have a constant problem with fixes on one platform breakin

Re: Andrei's Google Talk

2010-08-06 Thread Walter Bright
Jonathan M Davis wrote: So, it is understandably not possible to do the linking with dmc. Would it be possible to make it so that dmd could link using Microsoft's linker? Or is enough of what Microsoft's doing secret and/or too difficult to keep track of to make it possible to use Microsoft's l

Re: tolf and detab

2010-08-06 Thread Yao G.
What does idiomatic D means? On Fri, 06 Aug 2010 20:50:52 -0500, Andrei Alexandrescu wrote: On 08/06/2010 08:34 PM, Walter Bright wrote: I wrote these two trivial utilities for the purpose of canonicalizing source code before checkins and to deal with FreeBSD's inability to deal with CRLF

Re: Documentation generation

2010-08-06 Thread Bernard Helyer
On Sun, 01 Aug 2010 13:22:53 -0700, Walter Bright wrote: > 1. Being a defined part of D means it's ALWAYS there. That means there > won't be D compilers without ddoc. /me waves. I'm writing a D compiler, and have zero plans to add DDoc support. I couldn't do it well enough for me to waste my tim

Re: Mac OSX installer for dmd

2010-08-06 Thread Bruno Medeiros
On 05/08/2010 11:59, Jacob Carlborg wrote: On 2010-08-04 12:34, Walter Bright wrote: Don wrote: Walter Bright wrote: I believe D's current approach is what Java does? I'm not sure what Java does. I'm pretty sure that D's and Java's approach is the same. Yes, it is the same I think. In

Re: tolf and detab

2010-08-06 Thread Andrei Alexandrescu
On 08/06/2010 09:33 PM, Yao G. wrote: What does idiomatic D means? At a quick glance - I'm thinking two elements would be using string and possibly byLine. Andrei

Re: Andrei's Google Talk

2010-08-06 Thread Nick Sabalausky
"Walter Bright" wrote in message news:i3i3v6$kj...@digitalmars.com... > Lutger wrote: >>> doesn't really make much difference than using The >>> advantage >>> of using html tags for formatting like this means editors will recognize >>> tags, and everyone and their mother knows what html ta

Re: Andrei's Google Talk

2010-08-06 Thread Nick Sabalausky
"Walter Bright" wrote in message news:i3i2m7$i9...@digitalmars.com... > > But the editor I use (microemacs) has a fabulous feature, F3, which finds > the matching ( { [ < > ] } ) #ifdef/#elif/#else/#endif when the cursor is > placed on one of those. It makes it utterly trivial to find the misma

Re: Andrei's Google Talk

2010-08-06 Thread Nick Sabalausky
"Jesse Phillips" wrote in message news:i3hr7p$1s...@digitalmars.com... > Steven Schveighoffer Wrote: > >> I wouldn't mind the current docs, but I'd like to have some document to >> know what tags are defined and what they mean (like a ddocdoc), and how >> to >> define new tags. Maybe this alrea

Re: Andrei's Google Talk

2010-08-06 Thread Nick Sabalausky
"Jonathan M Davis" wrote in message news:mailman.165.1281141748.13841.digitalmar...@puremagic.com... > > but the company I work for (and > actually any that I've worked for which has used C++) has specificaly used > Visual > Studio with Microsoft's compiler and linker Intel's C/C++ compiler is

Re: tolf and detab

2010-08-06 Thread Nick Sabalausky
"Yao G." wrote in message news:op.vg1qpcjfxeu...@miroslava.gateway.2wire.net... > > What does idiomatic D means? > "idiomatic D" -> "In typical D style"

Re: Wrong and somewhat rude statement in your docs.

2010-08-06 Thread Nick Sabalausky
"Elias Salomão Helou Neto" wrote in message news:i3i41m$l1...@digitalmars.com... > [Sorry for cross-posting, but I've just noticed that the other forum is > deprecated.] > > Please modify your documentation, because the following part of it is even > offensive. At least from my viewpoint. > >

Re: Andrei's Google Talk

2010-08-06 Thread Walter Bright
Nick Sabalausky wrote: And I'll see your "HTML/XML syntax is a horrid verbose mess", and raise you a "(X)HTML's shittiness extends far beyond the syntax." What's odd about how pointlessly verbose it is, is it was designed in the era of modems. You'd think that tightening up the syntax would be

Re: Wrong and somewhat rude statement in your docs.

2010-08-06 Thread Hemanth Kapila
That TeX does not allocate dynamically does not mean it does not *need* it. Don Knuth implemented his own *beep* garbage collection algorithm in TeX. Good luck for any one trying to do so in *ANY* non trivial program. Please, try reformulating, maybe by using "most" instead of "any". It would > be

Re: range chunks

2010-08-06 Thread Peter Alexander
On 7/08/10 2:51 AM, Andrei Alexandrescu wrote: On 08/06/2010 06:52 PM, bearophile wrote: Philippe Sigaud: Yeah, partition, chunk, segment, it a basic thing, worth including in std.range. The most common name is partition(). When I see "partition" I think it's quicksort's partition algorithm

Re: Build farm(er)

2010-08-06 Thread Tomek Sowiński
Andrei Alexandrescu napisał: > In terms of machines, if anyone could volunteer ssh accounts to stable > machines (e.g. preferably not laptops and not connected via dynamic IP, > though the latter is satisfactorily fixed by dyndns.org), please chime in! It would be a shame to leave out laptops. Id