Re: Descent with compile-time debug for testing

2009-06-01 Thread Pablo Ripolles
I do not why but every time I install Descent into my Eclipse 3.4.2 on MacOSX, on the exit (quiting eclipse) it gives me a JavaNullPointer error... it's a pity. Cheers! Ary Borenszweig Wrote: Hi! I just uploaded a new test version of Descent (0.5.6) with the new compile-time debugging

Re: Descent with compile-time debug for testing

2009-06-01 Thread Ary Borenszweig
Pablo Ripolles escribió: I do not why but every time I install Descent into my Eclipse 3.4.2 on MacOSX, on the exit (quiting eclipse) it gives me a JavaNullPointer error... it's a pity. Cheers! And what's on the Error Log?

Re: Descent with compile-time debug for testing

2009-06-01 Thread Pablo Ripolles
Hello, just before it closes there appears a window message tittled Problems saving worksppace and the message is: Problems occurred while trying to save the state of the workbench. On details it's written: Problems ocurred during save. java.lang.NullPointerException Thanks! Ary

Re: Taunting

2009-06-01 Thread BCS
Reply to Ary, (I came to this conclusion when trying to debug the scrapple:units project). I'm sorry g OTOH that is a rater pathological cases. One option that might be doable (I don't know how the inside works so I'm guessing here) is to have the debug more highlight expression that can

Re: Descent with compile-time debug for testing

2009-06-01 Thread BCS
Reply to Pablo, Hello, just before it closes there appears a window message tittled Problems saving worksppace and the message is: Problems occurred while trying to save the state of the workbench. On details it's written: Problems ocurred during save. java.lang.NullPointerException

ODBCD

2009-06-01 Thread Steve Teale
I have an alpha version of an ODBCD working. I have tested it so far with MySQL and SQL Express 2005 on Windows XP. Both have their shortcomings, but I don't think they have that much to do with the ODBCD code. If you have a different database and/or ODBC driver, and are interested in

Re: Descent with compile-time debug for testing

2009-06-01 Thread Pablo Ripolles
Hello Ary! Yes indeed, it is fixed! and yes, I had no D project on that workspace. Thanks! Ary Borenszweig Wrote: Hmm, that's strange. You should only get that error if you don't have any D project in the workspace. Anyway, it's a bug and I fixed it, you can update from Eclipse and it

Re: Why are void[] contents marked as having pointers?

2009-06-01 Thread Vladimir Panteleev
On Mon, 01 Jun 2009 02:21:33 +0300, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: To argue that convincingly, you'd need to disable conversions from arrays of class objects to void[]. You're right. Perhaps implicit cast of reference types to void[] should result in an error. --

Re: Why are void[] contents marked as having pointers?

2009-06-01 Thread Vladimir Panteleev
On Mon, 01 Jun 2009 05:28:39 +0300, Christopher Wright dhase...@gmail.com wrote: Vladimir Panteleev wrote: std.boxer is actually a valid counter-example for my post. The specific fix is simple: replace the void[] with void*[]. The generic fix is just to add a line to

Re: Why are void[] contents marked as having pointers?

2009-06-01 Thread Daniel Keep
Vladimir Panteleev wrote: On Mon, 01 Jun 2009 02:21:33 +0300, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: To argue that convincingly, you'd need to disable conversions from arrays of class objects to void[]. You're right. Perhaps implicit cast of reference types to

Re: Why are void[] contents marked as having pointers?

2009-06-01 Thread Vladimir Panteleev
On Sun, 31 May 2009 23:24:09 +0300, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Another alternative would be to allow implicitly casting arrays of any type to const(ubyte)[] which is always safe. But I think this is too much ado about nothing - you're avoiding the type system

Re: visualization of language benchmarks

2009-06-01 Thread Jérôme M. Berger
Nick Sabalausky wrote: Denis Koroskin 2kor...@gmail.com wrote in message news:op.uuthxivwo7c...@soldat.creatstudio.intranet... On Mon, 01 Jun 2009 03:21:42 +0400, Tim Matthews tim.matthe...@gmail.com wrote: Knud Soerensen wrote: Tim Matthews wrote: It's things like this that make me want

Re: visualization of language benchmarks

2009-06-01 Thread Robert Fraser
Jérôme M. Berger wrote: Nick Sabalausky wrote: Denis Koroskin 2kor...@gmail.com wrote in message news:op.uuthxivwo7c...@soldat.creatstudio.intranet... On Mon, 01 Jun 2009 03:21:42 +0400, Tim Matthews tim.matthe...@gmail.com wrote: Knud Soerensen wrote: Tim Matthews wrote: It's things like

Re: Source control for all dmd source

2009-06-01 Thread hasen
Christopher Wright wrote: Leandro Lucarella wrote: Jérôme M. Berger, el 31 de mayo a las 19:03 me escribiste: Leandro Lucarella wrote: Well, that's great to hear! As Robert said, please tell if you need any help. Please, please, please consider using a distributed SCM (I think git would be

Compiling in 64 system 32 bit program

2009-06-01 Thread Dan900
I have GDC 64 on Linux Fedora 11, i wanna compile program to 32 bit systems but i have 64 bit system. Is this possible? when i type --target-help i have this error gdc: error trying to exec 'cc1': execvp: Not Found

Re: Compiling in 64 system 32 bit program

2009-06-01 Thread Anders F Björklund
Dan900 wrote: I have GDC 64 on Linux Fedora 11, i wanna compile program to 32 bit systems but i have 64 bit system. Is this possible? when i type --target-help i have this error gdc: error trying to exec 'cc1': execvp: Not Found To compile 32-bit programs, you use the -m32 flag. --anders

Re: Compiling in 64 system 32 bit program

2009-06-01 Thread Dan900
[dan...@localhost bin]$ ./gdc -m32 dupa.d /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status ??

Re: Compiling in 64 system 32 bit program

2009-06-01 Thread Anders F Björklund
Dan900 wrote: [dan...@localhost bin]$ ./gdc -m32 dupa.d /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status You will also need the 32-bit runtime libraries*... By default you would only have the 64-bit variants. * the package would be glibc-devel,

Re: Compiling in 64 system 32 bit program

2009-06-01 Thread Dan900
Yeah Thanks! It Work!. yum install glibc-devel.i586 Dan900 wrote: [dan...@localhost bin]$ ./gdc -m32 dupa.d /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status You will also need the 32-bit runtime libraries*... By default you would only have the

Re: Source control for all dmd source

2009-06-01 Thread Daniel Keep
hasen wrote: ... Wow, tortoisegit? Seems so bloated, look at those screen shots, it's so confusing! Wow, git cli? Seems so bloated, look at all those commands, it's so confusing! add am annotate apply archive bisect blame branch bundle cat-file check-attr checkout checkout-index

Re: Source control for all dmd source

2009-06-01 Thread hasen
Daniel Keep wrote: hasen wrote: ... Wow, tortoisegit? Seems so bloated, look at those screen shots, it's so confusing! Wow, git cli? Seems so bloated, look at all those commands, it's so confusing! It *is* confusing, it doesn't claim to be intuitive, it's aimed for developers, they're

Re: visualization of language benchmarks

2009-06-01 Thread Jérôme M. Berger
Robert Fraser wrote: Jérôme M. Berger wrote: Nick Sabalausky wrote: Denis Koroskin 2kor...@gmail.com wrote in message news:op.uuthxivwo7c...@soldat.creatstudio.intranet... On Mon, 01 Jun 2009 03:21:42 +0400, Tim Matthews tim.matthe...@gmail.com wrote: Knud Soerensen wrote: Tim Matthews

Re: Source control for all dmd source

2009-06-01 Thread Jérôme M. Berger
Daniel Keep wrote: Incidentally, I use both. TortoiseGit is great for anything of relative complexity as it actually helps you do it correctly (it took me a while to work out how to properly apply patch sets without it). hg unbundle patchset Sorry, couldn't resist ;)

Re: Why are void[] contents marked as having pointers?

2009-06-01 Thread Christopher Wright
Vladimir Panteleev wrote: On Mon, 01 Jun 2009 05:28:39 +0300, Christopher Wright dhase...@gmail.com wrote: Vladimir Panteleev wrote: std.boxer is actually a valid counter-example for my post. The specific fix is simple: replace the void[] with void*[]. The generic fix is just to add a line

Re: Why are void[] contents marked as having pointers?

2009-06-01 Thread Vladimir Panteleev
On Mon, 01 Jun 2009 02:18:46 +0300, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Vladimir Panteleev wrote: On Mon, 01 Jun 2009 00:00:45 +0300, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: const(ubyte)[] getRepresentation(T)(T[] data) { return

Re: Why are void[] contents marked as having pointers?

2009-06-01 Thread Vladimir Panteleev
On Mon, 01 Jun 2009 14:10:57 +0300, Christopher Wright dhase...@gmail.com wrote: Vladimir Panteleev wrote: On Mon, 01 Jun 2009 05:28:39 +0300, Christopher Wright dhase...@gmail.com wrote: Vladimir Panteleev wrote: std.boxer is actually a valid counter-example for my post. The specific

Re: Source control for all dmd source (Git propaganda =)

2009-06-01 Thread Leandro Lucarella
Anyways, my point was, putting DMDFE in a SCM would be great, even when it's svn. For me the ideal would be Git, Mercurial or other distributed SCM would be nice, but even svn is better than we have now =) -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/

Re: forward ranges must offer a save() function

2009-06-01 Thread Steven Schveighoffer
On Sat, 30 May 2009 13:18:06 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: If we want to allow people to create ranges that are classes (as opposed to structs) the requirement for a save() function is a must. This is because copying class ranges with Range copy =

Re: Source control for all dmd source

2009-06-01 Thread Jérôme M. Berger
Leandro Lucarella wrote: Jérôme M. Berger, el 1 de junio a las 12:23 me escribiste: Daniel Keep wrote: Incidentally, I use both. TortoiseGit is great for anything of relative complexity as it actually helps you do it correctly (it took me a while to work out how to properly apply patch sets

Re: Source control for all dmd source (Git propaganda =)

2009-06-01 Thread hasen
Leandro Lucarella wrote: Anyways, my point was, putting DMDFE in a SCM would be great, even when it's svn. For me the ideal would be Git, Mercurial or other distributed SCM would be nice, but even svn is better than we have now =) Even under svn, we can track it with git-svn

Re: Source control for all dmd source (Git propaganda =)

2009-06-01 Thread Jérôme M. Berger
Leandro Lucarella wrote: Anyways, my point was, putting DMDFE in a SCM would be great, even when it's svn. For me the ideal would be Git, Mercurial or other distributed SCM would be nice, but even svn is better than we have now =) Oh, I agree. However, IMO git is a poor choice. Mercurial,

Re: Source control for all dmd source (Git propaganda =)

2009-06-01 Thread Robert Fraser
Jérôme M. Berger wrote: - Here's the same for Mozilla: http://weblogs.mozillazine.org/preed/2007/04/version_control_system_shootou_1.html From the article: While they've made recent progress, Git was lacking in Win32 support and it was unclear that this would ever change and if it did

Re: Source control for all dmd source (Git propaganda =)

2009-06-01 Thread Daniel Keep
Jérôme M. Berger wrote: Leandro Lucarella wrote: Anyways, my point was, putting DMDFE in a SCM would be great, even when it's svn. For me the ideal would be Git, Mercurial or other distributed SCM would be nice, but even svn is better than we have now =) Oh, I agree. However, IMO git

Re: Source control for all dmd source (Git propaganda =)

2009-06-01 Thread Jérôme M. Berger
Daniel Keep wrote: Jérôme M. Berger wrote: Leandro Lucarella wrote: Anyways, my point was, putting DMDFE in a SCM would be great, even when it's svn. For me the ideal would be Git, Mercurial or other distributed SCM would be nice, but even svn is better than we have now =) Oh, I agree.

Re: Source control for all dmd source

2009-06-01 Thread BCS
Reply to hasen, IMO it's wrong to just put the same command-line commands on the right-click menu, and call that a gui. I like exactly that kind of approach, it gives you the full power of the command line without having to keep a command shell(s) around in the correct directory(s). All

Re: Source control for all dmd source

2009-06-01 Thread BCS
Reply to hasen, Daniel Keep wrote: hasen wrote: ... Wow, tortoisegit? Seems so bloated, look at those screen shots, it's so confusing! Wow, git cli? Seems so bloated, look at all those commands, it's so confusing! It *is* confusing, it doesn't claim to be intuitive, it's aimed for

Re: Source control for all dmd source

2009-06-01 Thread hasen
BCS wrote: It seems you don't like GUIs. Obviously, others doesn't agree with you. Actually no, I don't hate guis, but I come from windows, and in the world of windows, you get used to expect programs to work without you having to read manuals. For example, I used to play with the

Re: Source control for all dmd source

2009-06-01 Thread Ary Borenszweig
hasen wrote: BCS wrote: It seems you don't like GUIs. Obviously, others doesn't agree with you. Actually no, I don't hate guis, but I come from windows, and in the world of windows, you get used to expect programs to work without you having to read manuals. For example, I used to play

Re: Source control for all dmd source

2009-06-01 Thread BCS
Reply to hasen, BCS wrote: It seems you don't like GUIs. Obviously, others doesn't agree with you. Now, git comes with its own set of concepts, that are completely different from svn. checkout in git has nothing to do with checkout in svn. What's a branch? what's merging? where/how does

Re: Source control for all dmd source (Git propaganda =)

2009-06-01 Thread Leandro Lucarella
Jérôme M. Berger, el 1 de junio a las 19:55 me escribiste: Daniel Keep wrote: Jérôme M. Berger wrote: Leandro Lucarella wrote: Anyways, my point was, putting DMDFE in a SCM would be great, even when it's svn. For me the ideal would be Git, Mercurial or other distributed SCM would be nice,

Re: Source control for all dmd source (Git propaganda =)

2009-06-01 Thread Vladimir Panteleev
On Mon, 01 Jun 2009 18:20:49 +0300, Jérôme M. Berger jeber...@free.fr wrote: [snip] Since no one posted this link in this thread yet: http://whygitisbetterthanx.com/ -- Best regards, Vladimir mailto:thecybersha...@gmail.com

Re: Why are void[] contents marked as having pointers?

2009-06-01 Thread Christopher Wright
Vladimir Panteleev wrote: On Mon, 01 Jun 2009 14:10:57 +0300, Christopher Wright dhase...@gmail.com wrote: Vladimir Panteleev wrote: On Mon, 01 Jun 2009 05:28:39 +0300, Christopher Wright dhase...@gmail.com wrote: Vladimir Panteleev wrote: std.boxer is actually a valid counter-example

Unique as a transitive type?

2009-06-01 Thread Jason House
Andrei has stated previously that unique was left out of the type system because it added little value to the const system. Now that shared and multithreading are here, unique has more value. I have two basic questions: 1. What would make unique difficult to add? 2. What benefits do you

Re: Operator overloading, structs

2009-06-01 Thread Don
bearophile wrote: This post is mostly about D2 operator overloading in general, but I also talk about problems in the API of Tango BigInts. A small program that use multiprecision integers of Tango: import tango.stdc.stdio: printf; import tango.math.BigInt: bint = BigInt; void main() {

Re: Operator overloading, structs

2009-06-01 Thread bearophile
- In #2 D doesn't have a standard method that returns true/false. In Python2.6 such method is named __nonzero__ and in python3 it's named __bool__. No one has commented about that, but I think that having a way to overload cast(bool)foo is important. I use it in Python and I have shown why

Re: Unique as a transitive type?

2009-06-01 Thread Paul D. Anderson
In the short time I was at the Kahili coffeehouse summit I heard Walter say more than once that he was troubled by the idea of more transitive construction types because he was afraid of the combinatorial explosion that would occur. And that was just adding 'unique'. Bartosz was trying to talk

Re: Unique as a transitive type?

2009-06-01 Thread Robert Jacques
On Mon, 01 Jun 2009 19:16:55 -0400, Jason House jason.james.ho...@gmail.com wrote: Andrei has stated previously that unique was left out of the type system because it added little value to the const system. Now that shared and multithreading are here, unique has more value. I have two

Re: Unique as a transitive type?

2009-06-01 Thread Sean Kelly
Jason House wrote: Andrei has stated previously that unique was left out of the type system because it added little value to the const system. Now that shared and multithreading are here, unique has more value. I have two basic questions: 1. What would make unique difficult to add? Move

Re: Unique as a transitive type?

2009-06-01 Thread Jason House
Sean Kelly Wrote: Jason House wrote: Andrei has stated previously that unique was left out of the type system because it added little value to the const system. Now that shared and multithreading are here, unique has more value. I have two basic questions: 1. What would make

Re: Unique as a transitive type?

2009-06-01 Thread Sean Kelly
Jason House wrote: Sean Kelly Wrote: Jason House wrote: Andrei has stated previously that unique was left out of the type system because it added little value to the const system. Now that shared and multithreading are here, unique has more value. I have two basic questions: 1. What would

Re: Operator overloading, structs

2009-06-01 Thread Don
bearophile wrote: - In #2 D doesn't have a standard method that returns true/false. In Python2.6 such method is named __nonzero__ and in python3 it's named __bool__. No one has commented about that, but I think that having a way to overload cast(bool)foo is important. I use it in Python and

Re: legal identifier check

2009-06-01 Thread Jérôme M. Berger
BCS wrote: Hello Saaa, You have to write it yourself. Here's a good starting point: http://www.digitalmars.com/d/1.0/lex.html#identifier Yes, that was my starting point and it seemed quite complex, thus my question :) I think I'll stay with my simple check for now as it isn't really

Re: legal identifier check

2009-06-01 Thread BCS
Reply to Jérôme, BCS wrote: Hello Saaa, You have to write it yourself. Here's a good starting point: http://www.digitalmars.com/d/1.0/lex.html#identifier Yes, that was my starting point and it seemed quite complex, thus my question :) I think I'll stay with my simple check for now as it

Re: const confusion

2009-06-01 Thread Witold Baryluk
Dnia 2009-05-31, nie o godzinie 15:36 -0400, Jarrett Billingsley pisze: On Sun, May 31, 2009 at 3:26 PM, Witold Baryluk bary...@smp.if.uj.edu.pl wrote: Horrible. How to ensure constness of data, and still have possibility of changing references of local variables? Rebindable.

Re: const confusion

2009-06-01 Thread Jarrett Billingsley
On Mon, Jun 1, 2009 at 4:01 PM, Witold Baryluk bary...@smp.if.uj.edu.pl wrote: Dnia 2009-05-31, nie o godzinie 15:36 -0400, Jarrett Billingsley pisze: On Sun, May 31, 2009 at 3:26 PM, Witold Baryluk bary...@smp.if.uj.edu.pl wrote: Horrible. How to ensure constness of data, and still

Re: const confusion

2009-06-01 Thread Steven Schveighoffer
On Mon, 01 Jun 2009 16:01:04 -0400, Witold Baryluk bary...@smp.if.uj.edu.pl wrote: Dnia 2009-05-31, nie o godzinie 15:36 -0400, Jarrett Billingsley pisze: On Sun, May 31, 2009 at 3:26 PM, Witold Baryluk bary...@smp.if.uj.edu.pl wrote: Horrible. How to ensure constness of data, and still

[Issue 3034] Template instance name wrongly mangled as LName

2009-06-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3034 Shin Fujishiro rsi...@gmail.com changed: What|Removed |Added Attachment #384 is|0 |1 obsolete|

[Issue 3043] New: Template symbol arg cannot be demangled

2009-06-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3043 Summary: Template symbol arg cannot be demangled Product: D Version: 2.030 Platform: All OS/Version: All Status: NEW Keywords: patch, spec Severity: minor

[Issue 3044] New: Bus error compiling the following code

2009-06-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3044 Summary: Bus error compiling the following code Product: D Version: 2.030 Platform: Other OS/Version: Mac OS X Status: NEW Keywords: ice-on-valid-code Severity:

[Issue 3045] New: Can't use ref with foreach on tuple

2009-06-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3045 Summary: Can't use ref with foreach on tuple Product: D Version: 2.030 Platform: Other OS/Version: Mac OS X Status: NEW Keywords: rejects-valid Severity: normal