Re: D Statistics

2011-11-12 Thread JimB
Vladimir Panteleev wrote: > On Sun, 13 Nov 2011 08:37:33 +0200, Ali Ã?ehreli > wrote: >> \|||/ >> (o o) >> ,ooO--(_)---. >>> Please| >>> don't feed the | >>> TROLL's ! | >> '--Ooo--' >> |__|__| >> || || >> o

Re: D Statistics

2011-11-12 Thread JimB
Ali Çehreli wrote: > \|||/ > (o o) > ,ooO--(_)---. >> Please| >> don't feed the | >> TROLL's ! | > '--Ooo--' > |__|__| > || || > ooO Ooo Your time has come. What is your point?

Re: D Statistics

2011-11-12 Thread JimB
so wrote: > On Sun, 13 Nov 2011 06:31:00 +0200, JimB wrote: > >> NP (that's "no problemo" for those new to the net or who are >> English-handicapped) > > Do you need anyone point out the irony? I hate it when "they" push me in with "you guys" who are wet behind the ears. What what. You have a p

Re: D Statistics

2011-11-12 Thread Vladimir Panteleev
On Sun, 13 Nov 2011 08:37:33 +0200, Ali Çehreli wrote: \|||/ (o o) ,ooO--(_)---. | Please| | don't feed the | | TROLL's ! | '--Ooo--' |__|__| || || ooO Ooo Please don't feed the troll's what? -- Best r

Re: D Statistics

2011-11-12 Thread Ali Çehreli
\|||/ (o o) ,ooO--(_)---. | Please| | don't feed the | | TROLL's ! | '--Ooo--' |__|__| || || ooO Ooo

Re: std.csv: Vote in this thread

2011-11-12 Thread JimB
Jonathan M Davis wrote: > 1. Yes. Sheeple response.

Re: D Statistics

2011-11-12 Thread so
On Sun, 13 Nov 2011 06:31:00 +0200, JimB wrote: NP (that's "no problemo" for those new to the net or who are English-handicapped) Do you need anyone point out the irony?

Re: std.csv: Vote in this thread

2011-11-12 Thread Jonathan M Davis
1. Yes. 2. I vote for the version where Records is defined inside csvReader (#2). However, since the documentation for csvrReader seems to have been written with the idea that there is a separate set of documentation for Records and Record, csvReader's documentation could use some fleshing out

goto case warning

2011-11-12 Thread J Arrizza
I'm getting an odd error message in line 366 below (this is part of variant.d): ../utd/variant.d(366): Error: switch case fallthrough - use 'goto case;' if intended But you can see that line 366 already has a "goto case": switch(id) { foreach(i,T; ICT!A ) {

Re: std.csv: Vote in this thread

2011-11-12 Thread JimB
dsimcha wrote: > We're going to do something a little unusual with the std.csv voting. > Please cast **two** votes: Voting is a crime against humanity. Voting is evil.

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread JimB
"Walter Bright" wrote in message news:j9n97j$t4a$1...@digitalmars.com... > On 11/8/2011 2:00 AM, mta`chrono wrote: >> Does anyone know the last state of Deimos? What are we going to use >> now. >> >> This: https://github.com/D-Programming-Language/deimos > > No > >> Or that: https://github.com/

D Statistics

2011-11-12 Thread JimB
Can they be had? If so, where? If they are "bad" and being downplayed, NP (that's "no problemo" for those new to the net or who are English-handicapped), because there is more to things than "statistics". That is not to say, though, that discrete facts or quantifications are useless. Numbers ar

Re: Apache redirect digitalmars.com/d/2.0 -> d-programming-language.org

2011-11-12 Thread Michel Fortin
On 2011-11-13 03:28:33 +, Andrei Alexandrescu said: Hello, I wrote this to the site admin (Jan Knepper) too. Walter and I are trying to set up the digitalmars.com server such that all request for pages under digitalmars.com/d/2.0/ go to the corresponding file in d-programming-language

Re: CTFE is getting there

2011-11-12 Thread Martin Nowak
On Sun, 13 Nov 2011 02:06:55 +0100, bearophile wrote: Martin Nowak: D_InlineAsm_X86 is just a normal version tag and does not imply asm code, so it has to. IASM functions should redirect __ctfe to their non asm fallback. So you need two fallbaks and probably they contain the same code.

Re: CTFE is getting there

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

Re: Apache redirect digitalmars.com/d/2.0 -> d-programming-language.org

2011-11-12 Thread Andrei Alexandrescu
On 11/12/11 9:37 PM, Adam D. Ruppe wrote: Apache rewriting is the hardest thing in the world. But I'd try putting a [R] at the end of that redirect line and if it fails, check the error log. tail /var/log/httpd/error_log or whatever it is on your box. Sometimes there's something helpful in th

Re: Apache redirect digitalmars.com/d/2.0 -> d-programming-language.org

2011-11-12 Thread Walter Bright
On 11/12/2011 7:45 PM, Andrei Alexandrescu wrote: On 11/12/11 9:37 PM, Adam D. Ruppe wrote: tail /var/log/httpd/error_log or whatever it is on your box. Sometimes there's something helpful in there. The [R] applies to RewriteRule, not RedirectMatch. Walter, could you please take a look at th

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Jude Young
Oops misinterpreted. http://www.zeromq.org/

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Jude Young
No offense taken Andrei. I completely understand where you were coming from. It was presumptuous of me to attempt to get it in that quickly. Walter, zeromq is here: https://github.com/1100110/zeromq It should be entirely up-to-date and correct. I haven't encountered any bugs yet, and I'm current

Re: Apache redirect digitalmars.com/d/2.0 -> d-programming-language.org

2011-11-12 Thread Adam D. Ruppe
Apache rewriting is the hardest thing in the world. But I'd try putting a [R] at the end of that redirect line and if it fails, check the error log. tail /var/log/httpd/error_log or whatever it is on your box. Sometimes there's something helpful in there.

Apache redirect digitalmars.com/d/2.0 -> d-programming-language.org

2011-11-12 Thread Andrei Alexandrescu
Hello, I wrote this to the site admin (Jan Knepper) too. Walter and I are trying to set up the digitalmars.com server such that all request for pages under digitalmars.com/d/2.0/ go to the corresponding file in d-programming-language.org/. I experimented on my own website and here is the ap

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Walter Bright
On 11/12/2011 5:34 PM, Jude Young wrote: 0MQ(ZeroMQ? ZMQ?), and CZMQ(high-level C wrapper for 0MQ). What are they? Homepage urls?

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Walter Bright
On 11/12/2011 5:34 PM, Jude Young wrote: I have ncurses, https://github.com/D-Programming-Deimos/ncurses

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Walter Bright
On 11/8/2011 5:47 AM, Steve Teale wrote: I have done mysql.d and that would be close to fitting in there, https://github.com/D-Programming-Deimos/libmysql Full speed ahead!

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Andrei Alexandrescu
On 11/12/11 8:28 PM, Jude Young wrote: It was meant as a joke, ncurses wasn't quite ready the first time I tried to get it in. Apparently the low barrier wasn't low enough the first time around. haha. Well, there may not be a set process, but I do see a completely empty repo labeled openssl. I w

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Andrei Alexandrescu
On 11/12/11 8:46 PM, Walter Bright wrote: On 11/12/2011 6:28 PM, Jude Young wrote: Well, there may not be a set process, but I do see a completely empty repo labeled openssl. I've been working on the openssl stuff, but it ain't ready yet. I'm wondering if a work-in-progress would be worthwhile

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Walter Bright
On 11/5/2011 2:28 AM, Johannes Pfau wrote: Now that deimos is an organization and we can't use pull requests, how do we get new bindings into deimos? I'd still like to get my liblzma bindings in there: https://github.com/jpf91/deimos/tree/liblzma https://github.com/D-Programming-Deimos/liblzma

Re: CTFE is getting there

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

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Walter Bright
On 11/12/2011 6:28 PM, Jude Young wrote: Well, there may not be a set process, but I do see a completely empty repo labeled openssl. I've been working on the openssl stuff, but it ain't ready yet. I'm wondering if a work-in-progress would be worthwhile to put in it.

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Jude Young
On Sat 12 Nov 2011 08:07:55 PM CST, Andrei Alexandrescu wrote: > On 11/12/11 7:34 PM, Jude Young wrote: >> Ok, guys.. >> >> does anyone know the answers to these questions? >> >> I have ncurses, 0MQ(ZeroMQ? ZMQ?), and CZMQ(high-level C wrapper for >> 0MQ). (They aren't 100% mine, but I helped! =D)

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Walter Bright
On 11/8/2011 5:47 AM, Steve Teale wrote: Walter's original CAPI Manifesto wanted straight translations of C headers. Is that still the boundary? Yes. I have done mysql.d and that would be close to fitting in there, Great! but I also did mysqld.d, and that is way off. It's not Phobos mater

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Walter Bright
On 11/8/2011 2:00 AM, mta`chrono wrote: Does anyone know the last state of Deimos? What are we going to use now. This: https://github.com/D-Programming-Language/deimos No Or that: https://github.com/D-Programming-Deimos/ Yes

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Andrei Alexandrescu
On 11/12/11 7:34 PM, Jude Young wrote: Ok, guys.. does anyone know the answers to these questions? I have ncurses, 0MQ(ZeroMQ? ZMQ?), and CZMQ(high-level C wrapper for 0MQ). (They aren't 100% mine, but I helped! =D) They all should work, I don't have any problems with them. (haven't tested CZM

Re: [D-Programming-Deimos] Review process?

2011-11-12 Thread Jude Young
Ok, guys.. does anyone know the answers to these questions? I have ncurses, 0MQ(ZeroMQ? ZMQ?), and CZMQ(high-level C wrapper for 0MQ). (They aren't 100% mine, but I helped! =D) They all should work, I don't have any problems with them. (haven't tested CZMQ yet...) I haven't decided what my ne

Re: CTFE is getting there

2011-11-12 Thread bearophile
Martin Nowak: > D_InlineAsm_X86 is just a normal version tag and does not imply asm code, > so it has to. > IASM functions should redirect __ctfe to their non asm fallback. So you need two fallbaks and probably they contain the same code. So an inner function is useful here. -

Re: CTFE is getting there

2011-11-12 Thread Martin Nowak
On Sun, 13 Nov 2011 00:38:58 +0100, bearophile wrote: With the recent rounds of improvements to the compile-time evaluation, mostly from Don, CTFE is now able to run a significant percentage of D code. Some problems left: int foo1() { enum int[] array = [1]; return 1; } int foo2

CTFE is getting there

2011-11-12 Thread bearophile
With the recent rounds of improvements to the compile-time evaluation, mostly from Don, CTFE is now able to run a significant percentage of D code. Some problems left: int foo1() { enum int[] array = [1]; return 1; } int foo2() { // like map struct Bar { this(int x) {} }

Re: Bartosz about Chapel

2011-11-12 Thread Timon Gehr
On 11/12/2011 09:05 PM, Somedude wrote: Le 12/11/2011 17:27, Timon Gehr a écrit : I tend to believe D is conceptually more complex than C++. Which means it allows for more expressivity. What makes you think it is conceptually more complex? Most features that make D more expressive than C++ are

Re: Digital Mars Website

2011-11-12 Thread Timon Gehr
On 11/12/2011 10:48 PM, Jonathan M Davis wrote: On Saturday, November 12, 2011 22:04:46 Timon Gehr wrote: On 11/12/2011 09:41 PM, Jude Young wrote: On Sat 12 Nov 2011 02:19:21 PM CST, Jeff Nowakowski wrote: On 11/11/2011 05:58 PM, Jude Young wrote: I came very close to assuming D was dead and

Re: Digital Mars Website

2011-11-12 Thread Jonathan M Davis
On Saturday, November 12, 2011 22:04:46 Timon Gehr wrote: > On 11/12/2011 09:41 PM, Jude Young wrote: > > On Sat 12 Nov 2011 02:19:21 PM CST, Jeff Nowakowski wrote: > >> On 11/11/2011 05:58 PM, Jude Young wrote: > >>> I came very close to assuming D was dead and going off to look at > >>> another l

Re: How do I use DDoc?

2011-11-12 Thread Jonathan M Davis
On Saturday, November 12, 2011 13:39:21 Caligo wrote: > On Sat, Nov 12, 2011 at 1:59 AM, Jonathan M Davis wrote: > > On Saturday, November 12, 2011 01:54:48 Caligo wrote: > > > I'm about to go to bed and I can't keep my eyes open, so sorry if > > > the > > > answer to this is obvious. > > > > > >

Re: [OT] Re: Bartosz about Chapel

2011-11-12 Thread Walter Bright
On 11/12/2011 9:35 AM, Adam D. Ruppe wrote: I've never had a conversation with anyone who didn't know English. :-P I have. There's usually a lot of arm-waving and ahs and s. When I was in Tokyo, I kept a brochure from my hotel in my pocket. When you got into a taxi, just show

Re: Digital Mars Website

2011-11-12 Thread Timon Gehr
On 11/12/2011 09:41 PM, Jude Young wrote: On Sat 12 Nov 2011 02:19:21 PM CST, Jeff Nowakowski wrote: On 11/11/2011 05:58 PM, Jude Young wrote: I came very close to assuming D was dead and going off to look at another language. (I was considering Go, But I hate the forced {} syntax) It's funn

Re: Digital Mars Website

2011-11-12 Thread Jude Young
On Sat 12 Nov 2011 02:19:21 PM CST, Jeff Nowakowski wrote: > On 11/11/2011 05:58 PM, Jude Young wrote: >> >> I came very close to assuming D was dead and going off to look at >> another language. (I was considering Go, But I hate the forced {} >> syntax) > > It's funny, the trivial reasons that peo

Re: std.csv: Vote in this thread

2011-11-12 Thread Robert Jacques
On Sat, 12 Nov 2011 14:27:22 -0500, dsimcha wrote: We're going to do something a little unusual with the std.csv voting. Please cast **two** votes: 1. Whether std.csv should be included in Phobos. 2. Whether version one or version two (see below) should be included **if** std.csv is include

Re: Digital Mars Website

2011-11-12 Thread Jeff Nowakowski
On 11/11/2011 05:58 PM, Jude Young wrote: I came very close to assuming D was dead and going off to look at another language. (I was considering Go, But I hate the forced {} syntax) It's funny, the trivial reasons that people will come up with to choose a programming language.

Re: Bartosz about Chapel

2011-11-12 Thread Somedude
Le 12/11/2011 17:27, Timon Gehr a écrit : I tend to believe D is conceptually more complex than C++. Which means it allows for more expressivity. What makes you think it is conceptually more complex? Most features that make D more expressive than C++ are conceptually very simple. And what is co

Re: Bartosz about Chapel

2011-11-12 Thread Walter Bright
On 11/12/2011 9:15 AM, bcs wrote: The/a solution to the cheating problem at anything but the last set of classes is to make the next set of classes *painful* to take if you don't know the materiel from the prerequisite. The point of the class after all is to teach you the materiel (whatever that

Re: Bartosz about Chapel

2011-11-12 Thread Walter Bright
On 11/12/2011 6:29 AM, Nick Sabalausky wrote: all classes being required to have an official book that the students must purchase (typically from the school's own bookstore, naturally). That's just sad.

Re: How do I use DDoc?

2011-11-12 Thread Caligo
On Sat, Nov 12, 2011 at 1:59 AM, Jonathan M Davis wrote: > On Saturday, November 12, 2011 01:54:48 Caligo wrote: > > I'm about to go to bed and I can't keep my eyes open, so sorry if the > > answer to this is obvious. > > > > I cloned ' > > https://github.com/D-Programming-Language/d-programming-l

std.csv: Vote in this thread

2011-11-12 Thread dsimcha
We're going to do something a little unusual with the std.csv voting. Please cast **two** votes: 1. Whether std.csv should be included in Phobos. 2. Whether version one or version two (see below) should be included **if** std.csv is included at all. The difference between versions 1 and 2

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread deadalnix
Le 12/11/2011 16:29, Andrei Alexandrescu a écrit : On 11/12/11 8:39 AM, deadalnix wrote: Hi all, We recently had a discution on #D about copying a struct on the heap and getting a pointer to it. We come up with the following solution (Thanks to CyberShadow !) : struct S; S s; // Allocated loc

Re: [OT] Re: Bartosz about Chapel

2011-11-12 Thread Adam D. Ruppe
bcs wrote: > Why do you assume they will know English? I've never had a conversation with anyone who didn't know English. :-P

Re: [OT] Re: Bartosz about Chapel

2011-11-12 Thread bcs
On 11/11/2011 12:26 PM, Daniel Gibson wrote: Am 11.11.2011 19:54, schrieb Ali Çehreli: On 11/11/2011 09:56 AM, Daniel Gibson wrote: > (Also none-ascii chars in code outside of strings is bad IMHO) In English code, right? :) There are real problems of using the ASCII relatives of Turkish lette

Re: Bartosz about Chapel

2011-11-12 Thread bcs
On 11/11/2011 10:47 AM, Walter Bright wrote: On 11/11/2011 4:37 AM, Nick Sabalausky wrote: In my school experience (both high school and college), the students who were well versed in and heavily focused on rote regurgitation were consistently the ones with the best grades, and the ones who wher

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Martin Nowak
On Sat, 12 Nov 2011 16:29:01 +0100, Andrei Alexandrescu wrote: On 11/12/11 8:39 AM, deadalnix wrote: Hi all, We recently had a discution on #D about copying a struct on the heap and getting a pointer to it. We come up with the following solution (Thanks to CyberShadow !) : struct S; S s;

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Andrei Alexandrescu
On 11/12/11 9:37 AM, Martin Nowak wrote: On Sat, 12 Nov 2011 16:17:29 +0100, Adam D. Ruppe wrote: The way I'd do it is: S s; auto heap = new S; *heap = s; that should work. auto ps = std.conv.emplace(new S, s); Avoids the hacky array aliasing. That constructs S two times. // slight

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Martin Nowak
On Sat, 12 Nov 2011 17:41:56 +0100, Martin Nowak wrote: On Sat, 12 Nov 2011 17:41:43 +0100, deadalnix wrote: Le 12/11/2011 16:29, Andrei Alexandrescu a écrit : On 11/12/11 8:39 AM, deadalnix wrote: Hi all, We recently had a discution on #D about copying a struct on the heap and getti

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Martin Nowak
On Sat, 12 Nov 2011 17:41:43 +0100, deadalnix wrote: Le 12/11/2011 16:29, Andrei Alexandrescu a écrit : On 11/12/11 8:39 AM, deadalnix wrote: Hi all, We recently had a discution on #D about copying a struct on the heap and getting a pointer to it. We come up with the following solution (

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread deadalnix
Le 12/11/2011 16:27, Andrei Alexandrescu a écrit : On 11/12/11 9:22 AM, kenji hara wrote: Here is a pitfall. If S has the postblit, it is not called with your code. import core.stdc.stdio; struct S { this(this){ printf("postblit\n"); } } void main() { S s; S* ps = [s].ptr; // does not print "po

Re: Bartosz about Chapel

2011-11-12 Thread Timon Gehr
On 11/12/2011 04:47 PM, Somedude wrote: Le 10/11/2011 02:46, Caligo a écrit : On Wed, Nov 9, 2011 at 5:20 PM, Walter Bright mailto:newshou...@digitalmars.com>> wrote: On 11/9/2011 2:45 PM, Danni Coy wrote: how many keywords in D are needed because the preprocessor is built into the language

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Vladimir Panteleev
On Sat, 12 Nov 2011 17:17:29 +0200, Adam D. Ruppe wrote: auto heap = new S; Won't work if S has a constructor (which was the OP's case). -- Best regards, Vladimirmailto:vladi...@thecybershadow.net

type combination of qualified dynamic array / pointer types inconsistent

2011-11-12 Thread Timon Gehr
From TDPL p60 (type combination algorithm): "1. If a and b have the same type, T is that type. 2. else if a and b are integrals [...] 3. else if one is an integral and [...] 4. else if both have floating point type [...] 5. else if both have a common supertype (eg., base class), T is that t

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread kenji hara
It has been already filed in bugzilla? If so, I'd like to fix it. Kenji Hara 2011/11/13 Andrei Alexandrescu : > On 11/12/11 8:39 AM, deadalnix wrote: >> >> Hi all, >> >> We recently had a discution on #D about copying a struct on the heap and >> getting a pointer to it. >> >> We come up with the

Re: Bartosz about Chapel

2011-11-12 Thread Somedude
Le 10/11/2011 02:46, Caligo a écrit : On Wed, Nov 9, 2011 at 5:20 PM, Walter Bright mailto:newshou...@digitalmars.com>> wrote: On 11/9/2011 2:45 PM, Danni Coy wrote: how many keywords in D are needed because the preprocessor is built into the language itself?

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Martin Nowak
On Sat, 12 Nov 2011 16:17:29 +0100, Adam D. Ruppe wrote: The way I'd do it is: S s; auto heap = new S; *heap = s; that should work. auto ps = std.conv.emplace(new S, s); Avoids the hacky array aliasing. // slightly more efficient auto ps2 = emplace(cast(S*)(new ubyte[](S.sizeof)).ptr

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Martin Nowak
On Sat, 12 Nov 2011 16:29:01 +0100, Andrei Alexandrescu wrote: On 11/12/11 8:39 AM, deadalnix wrote: Hi all, We recently had a discution on #D about copying a struct on the heap and getting a pointer to it. We come up with the following solution (Thanks to CyberShadow !) : struct S; S s;

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Timon Gehr
On 11/12/2011 04:29 PM, Andrei Alexandrescu wrote: On 11/12/11 8:39 AM, deadalnix wrote: Hi all, We recently had a discution on #D about copying a struct on the heap and getting a pointer to it. We come up with the following solution (Thanks to CyberShadow !) : struct S; S s; // Allocated loc

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Andrei Alexandrescu
On 11/12/11 8:39 AM, deadalnix wrote: Hi all, We recently had a discution on #D about copying a struct on the heap and getting a pointer to it. We come up with the following solution (Thanks to CyberShadow !) : struct S; S s; // Allocated locally. [s].ptr; // Get a pointer to a copy in the hea

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Andrei Alexandrescu
On 11/12/11 9:22 AM, kenji hara wrote: Here is a pitfall. If S has the postblit, it is not called with your code. import core.stdc.stdio; struct S { this(this){ printf("postblit\n"); } } void main() { S s; S* ps = [s].ptr; // does not print "postblit" } I've al

Re: State of LDC

2011-11-12 Thread dsimcha
On 11/11/2011 1:32 PM, bioinfornatics wrote: did you have a conf file here: /etc/ldc2.conf if yes could you try this: # mv /etc/ldc2.conf /etc/ldc2.conf.back # mv /etc/ldc2.rebuild.conf /etc/ldc2.rebuild.conf.back and run make $ make read this please https://github.com/ldc-developers/ldc/wiki/In

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Timon Gehr
On 11/12/2011 04:17 PM, Adam D. Ruppe wrote: The way I'd do it is: S s; auto heap = new S; *heap = s; that should work. struct S{ immutable no_it_does_not = 0; // ;) }

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread kenji hara
Here is a pitfall. If S has the postblit, it is not called with your code. import core.stdc.stdio; struct S { this(this){ printf("postblit\n"); } } void main() { S s; S* ps = [s].ptr; // does not print "postblit" } I've already poted a pull (https://github.com/D-Progra

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Adam D. Ruppe
The way I'd do it is: S s; auto heap = new S; *heap = s; that should work.

Re: Digital Mars Website

2011-11-12 Thread Adam D. Ruppe
I like the digital mars site!

Re: Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread Timon Gehr
On 11/12/2011 03:39 PM, deadalnix wrote: Hi all, We recently had a discution on #D about copying a struct on the heap and getting a pointer to it. We come up with the following solution (Thanks to CyberShadow !) : struct S; S s; // Allocated locally. [s].ptr; // Get a pointer to a copy in the

Copy a struct on the heap and get the pointer to it.

2011-11-12 Thread deadalnix
Hi all, We recently had a discution on #D about copying a struct on the heap and getting a pointer to it. We come up with the following solution (Thanks to CyberShadow !) : struct S; S s; // Allocated locally. [s].ptr; // Get a pointer to a copy in the heap of the struct What is going on ? A

Re: Bartosz about Chapel

2011-11-12 Thread Nick Sabalausky
"Walter Bright" wrote in message news:j9jqkb$1sm$1...@digitalmars.com... > On 11/11/2011 4:37 AM, Nick Sabalausky wrote: >> In my school experience (both high school and college), the students who >> were well versed in and heavily focused on rote regurgitation were >> consistently the ones with

Re: Digital Mars Website

2011-11-12 Thread Nick Sabalausky
"Jude Young" <10equa...@gmail.com> wrote in message news:mailman.881.1321052329.24802.digitalmar...@puremagic.com... > > http://www.digitalmars.com/d/2.0/index.html That is the first link on > Google. This page MUST either redirect directly to d-p-l, or have a > note at the top mentioning that d

Re: Python vs D [ was Re: Bartosz about Chapel ]

2011-11-12 Thread Somedude
Le 11/11/2011 05:35, J Arrizza a écrit : Perl has CPAN Ruby has gems Python has PyPi. Java has the JDK C# has the CLR All of the libraries are huge and, just as importantly, they're organized (although some better than others). Depending on your level of cynicism, these l

Re: RFC curl

2011-11-12 Thread Marco Leise
Am 11.11.2011, 16:30 Uhr, schrieb Marco Leise : Ok, let's do an experiment. I don't think I've seen community polls yet, so I created one on a random online poll site: http://www.easypolls.net/poll.html?p=4ebd3219011eb0e4518d35ab When everyone has cast their vote, there should be no useless

Re: State of LDC

2011-11-12 Thread Jonas Drewsen
Den 11-11-2011 23:51, Ruslan Mullakhmetov skrev: On 2011-11-12 00:06:27 +0400, David Nadlinger said: When we started the move to GitHub, I tried to create an »ldc« org, but it was already taken. The best alternative we could come up with on IRC was ldc-developers, which we then decided to use.

Re: Class inheritance bug

2011-11-12 Thread Tobias M.
Am 12.11.2011 01:16, schrieb Andrej Mitrovic: Because optlink works in mysterious ways. [...]the linker error messages can be misleading. Thats what it seems to be ;). Great THANKS to all of you!

Re: Python vs D [ was Re: Bartosz about Chapel ]

2011-11-12 Thread Johannes Pfau
Danni Coy wrote: >> >> >> Now to Paulo's point, one of those packages will be the killer app >> that causes D to go wildly successful. Will it be a web framework >> like Rails or CGI? Perhaps. But it could be something else. Here's >> my wish: >>- a replacement for X11 on ARM processors running

Re: How do I use DDoc?

2011-11-12 Thread Andrej Mitrovic
I've never had problems with just cloning the dpl.org repo and editing the files, checking my edits via: make array.html -f win32.mak Replacing 'array.html' with whatever file I'm editing.