Re: dmd platform support - poll

2008-12-26 Thread Yigal Chripun
Sean Kelly wrote: Robert Jacques wrote: I'm perfectly happy with 32 windows linux, but have some minor interest in: Solaris x86 Oh good point. SPARC Solaris would be nice as well. Though that's only if I plan to use D at work. Sean Same for me. I also have solaris at work though I very

Re: dmd platform support - poll

2008-12-26 Thread Victor Tyurin
LLVM!!! Only LLVM!!! Nothing more!! It will be cross-platform out of the box!!! Walter Bright пишет: What platforms for dmd would you be most interested in using? .net jvm mac osx 32 bit intel mac osx 64 bit intel linux 64 bit windows 64 bit freebsd 32 bit netbsd 32 bit other?

Re: dmd platform support - poll

2008-12-26 Thread Jérôme M. Berger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Walter Bright wrote: Chad J wrote: Or, better yet: Cross-platform C code. Get me that and I have a lot less reason to even care about the others. The problem with generating C code is: exception handling Can't you do it with setjmp and

Re: dmd platform support - poll

2008-12-26 Thread Victor Tyurin
Yo, Walter, do you want to beat GCC or LLVM? Why don't you want to work on those front-ends? What platforms for dmd would you be most interested in using? .net jvm mac osx 32 bit intel mac osx 64 bit intel linux 64 bit windows 64 bit freebsd 32 bit netbsd 32 bit other?

Re: dmd platform support - poll

2008-12-26 Thread digited
Walter Bright Wrote: What platforms for dmd would you be most interested in using? .net jvm mac osx 32 bit intel mac osx 64 bit intel linux 64 bit windows 64 bit freebsd 32 bit netbsd 32 bit other? No doubt, linux 64 bit.

compile-time initialization of objects need?

2008-12-26 Thread Weed
In fact, the D is not contain a mechanism for compile-time initialization of objects. Maybe add? For example, that would be very usable for any objects which have mathematical primitives. Example: struct S { float[10] array; this( float f ) { array[0] = f; } } void

pure member functions

2008-12-26 Thread mastrost
Hello, I have searched on the D2 documentation pages and on this forum, but I did not really found any documentation about pure member functions, so please excuse me if a make you repeat. I was very surprised to see this code compile (dmd 2.022): class A{ private: int x;

Re: dmd platform support - poll

2008-12-26 Thread mastrost
Walter Bright Wrote: What platforms for dmd would you be most interested in using? .net jvm mac osx 32 bit intel mac osx 64 bit intel linux 64 bit windows 64 bit freebsd 32 bit netbsd 32 bit other? linux 64 bit

Big integrals, opApply autoindex, safer integrals

2008-12-26 Thread bearophile
Recently we have discussed a lot about the balance of putting things inside the language or outside of it. It's a subtle balance and it's dynamic too, with time it can change (for example the removal of complex numbers from D2?). Surely it will need more discussions in the future too. In the

Re: Big integrals, opApply autoindex, safer integrals

2008-12-26 Thread Weed
bearophile пишет: Recently we have discussed a lot about the balance of putting things inside the language or outside of it. It's a subtle balance and it's dynamic too, with time it can change (for example the removal of complex numbers from D2?). Surely it will need more discussions in the

Re: dmd platform support - poll

2008-12-26 Thread Weed
Nick Sabalausky пишет: Chad J gamerc...@__spam.is.bad__gmail.com wrote in message news:gj1uou$1ct...@digitalmars.com... Walter Bright wrote: Chad J wrote: Or, better yet: Cross-platform C code. Get me that and I have a lot less reason to even care about the others. The problem with

Re: Big integrals, opApply autoindex, safer integrals

2008-12-26 Thread bearophile
Weed: It is not enough to make Bigint the object? I think I have already answered your question (and at the moment BigInt is a struct, I think). Bye, bearophile

Re: dmd platform support - poll

2008-12-26 Thread Don
Victor Tyurin wrote: LLVM!!! Only LLVM!!! Nothing more!! It will be cross-platform out of the box!!! But it doesn't even do win32 yet! Walter Bright пишет: What platforms for dmd would you be most interested in using? .net jvm mac osx 32 bit intel mac osx 64 bit intel linux 64 bit windows

Re: Big integrals, opApply autoindex, safer integrals

2008-12-26 Thread Weed
bearophile пишет: Weed: It is not enough to make Bigint the object? I think I have already answered your question (and at the moment BigInt is a struct, I think). I did not understand the problem. You can make an object Bigint. You can add, deduct the value BigInt. You can declare them

Re: dmd platform support - poll

2008-12-26 Thread KennyTM~
Walter Bright wrote: What platforms for dmd would you be most interested in using? .net jvm mac osx 32 bit intel mac osx 64 bit intel linux 64 bit windows 64 bit freebsd 32 bit netbsd 32 bit other? Mac OS X x86. ARMv7, (UNIX-based). Linux x64. JVM. Probably a D-to-C++/Python translator?

Re: dmd platform support - poll

2008-12-26 Thread Marianne Gagnon
mac osx 32 bit intel mac osx 64 bit intel linux 64 bit windows 64 bit

Re: Big integrals, opApply autoindex, safer integrals

2008-12-26 Thread bearophile
Weed: where else can I use that thing? I was talking about a built-in syntax for multi-precision integral numbers. I presume you can use it only when you want to use multi-precision integral number :-) Do you feel the need to use it in other situations too? Bye, bearophile

Re: dmd platform support - poll

2008-12-26 Thread Nick Sabalausky
dsimcha dsim...@yahoo.com wrote in message news:gj34uf$9f...@digitalmars.com... == Quote from Weed (resume...@mail.ru)'s article I am still worried about 16bit :) would like to D has been a universal language Pardon my ignorance, but who still uses 16-bit? I thought even most embedded

Re: dmd platform support - poll

2008-12-26 Thread Adam D. Ruppe
On Fri, Dec 26, 2008 at 05:40:31PM +, dsimcha wrote: Pardon my ignorance, but who still uses 16-bit? I thought even most embedded systems in this day and age are at least 32-bit. I sometimes still work on old point of sale systems that run MS-DOS. -- Adam D. Ruppe http://arsdnet.net

Re: dmd platform support - poll

2008-12-26 Thread Nick Sabalausky
Michael P. baseball@gmail.com wrote in message news:gj39a7$gb...@digitalmars.com... Nick Sabalausky Wrote: Chad J gamerc...@__spam.is.bad__gmail.com wrote in message news:gj1uou$1ct...@digitalmars.com... Walter Bright wrote: Chad J wrote: Or, better yet: Cross-platform C code.

Re: dmd platform support - poll

2008-12-26 Thread Johan Granberg
Walter Bright wrote: What platforms for dmd would you be most interested in using? .net jvm mac osx 32 bit intel mac osx 64 bit intel linux 64 bit windows 64 bit freebsd 32 bit netbsd 32 bit other? linux 64 bit

Re: A plea for pattern matching

2008-12-26 Thread KlausO
bearophile wrote: KlausO, I like limited forms of pattern matching, I have asked for them in D in the past; they also fit with the growing functional nature of D2. But I've seen the pattern matching you can see for example in Scala adds lot of complexity to the compiler (and some to the

Re: Operator overloading

2008-12-26 Thread The Anh Tran
aarti_pl wrote: Andrei Alexandrescu pisze: We're trying to make that work. D is due for an operator overhaul. Andrei Is there any chance that we get possibility to overload raw operators, like in C++? I think that they may coexist with currently defined operator overloads with simple

Re: dmd platform support - poll

2008-12-26 Thread Alan Knowles
freebsd 32 bit - This is the target platform for our live servers as the networking guy is a freebsd fanatic (drives me up the wall) - dmd should be a relatively easy port? Walter Bright wrote: What platforms for dmd would you be most interested in using? .net jvm mac osx 32 bit intel mac

Re: dmd platform support - poll

2008-12-26 Thread Yigal Chripun
Tim Keating wrote: Yigal Chripun Wrote: personally I don't see a point in JVM/.NET - One of the best things about D is that you get the ease of use of Ruby/python/etc with the benefits of native compiling like in c/c++. Why throw that away and make yet another version of Java/C# ? Supporting

Re: Big integrals, opApply autoindex, safer integrals

2008-12-26 Thread Yigal Chripun
Weed wrote: Yigal Chripun пишет: Weed wrote: bearophile пишет: Weed: where else can I use that thing? I was talking about a built-in syntax for multi-precision integral numbers. I presume you can use it only when you want to use multi-precision integral number :-) Do you feel the need to

Pure and Structs

2008-12-26 Thread dsimcha
I'm trying to annotate some code with pure and nothrow (mostly just to test it out and give feedback at this point), and I've noticed one very irritating thing. If I use a struct as follows: struct LameStruct { uint foo; uint bar; void doStuff() { foo++; bar++; }

Re: Operator overloading

2008-12-26 Thread Jarrett Billingsley
On Fri, Dec 26, 2008 at 11:20 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I think that argument is rather weak and ought to be revisited. It's weak to start with as if writing + in a D program hardly evokes anything else but plus. What the notation effectively achieved was put

Re: Big integrals, opApply autoindex, safer integrals

2008-12-26 Thread Weed
Yigal Chripun пишет: Weed wrote: Yigal Chripun пишет: Weed wrote: bearophile пишет: Weed: where else can I use that thing? I was talking about a built-in syntax for multi-precision integral numbers. I presume you can use it only when you want to use multi-precision integral number :-) Do

Re: dmd platform support - poll

2008-12-26 Thread John Reimer
Hello Nick, Nick Sabalausky a...@a.a wrote in message news:gj1olu$139...@digitalmars.com... Walter Bright newshou...@digitalmars.com wrote in message news:gj0qht$2lc...@digitalmars.com... What platforms for dmd would you be most interested in using? .net jvm mac osx 32 bit intel mac osx 64

Re: Operator overloading

2008-12-26 Thread Andrei Alexandrescu
Jarrett Billingsley wrote: On Fri, Dec 26, 2008 at 11:20 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I think that argument is rather weak and ought to be revisited. It's weak to start with as if writing + in a D program hardly evokes anything else but plus. What the notation

compile time method check

2008-12-26 Thread Weed
Can I at compile time check whether there is a facility method (toString(), for example)? Today I wrote: static if ( __traits(isArithmetic, Element) ) { ret ~= toString(this[i,j]) ~ \t; } else { ret ~= this[i,j].toString ~

Re: compile time method check

2008-12-26 Thread Simen Kjaeraas
On Fri, 26 Dec 2008 20:15:30 +0100, Weed resume...@mail.ru wrote: Can I at compile time check whether there is a facility method (toString(), for example)? Today I wrote: static if ( __traits(isArithmetic, Element) ) { ret ~= toString(this[i,j]) ~ \t;

Running dmd with older glibc

2008-12-26 Thread Johan Granberg
I'm running into a problem installing dmd in the computer labs at my department. I don't have root access so I'm installing into my home directory and I had a working dmd 0.150 but I was in need of features introduced after that so I tried to install 1.038 instead. Now I'm getting dmd:

Re: Running dmd with older glibc

2008-12-26 Thread Jarrett Billingsley
On Fri, Dec 26, 2008 at 6:34 PM, Johan Granberg lijat.me...@ovegmail.com wrote: I'm running into a problem installing dmd in the computer labs at my department. I don't have root access so I'm installing into my home directory and I had a working dmd 0.150 but I was in need of features

Re: compile time method check

2008-12-26 Thread Weed
Simen Kjaeraas пишет: On Fri, 26 Dec 2008 20:15:30 +0100, Weed resume...@mail.ru wrote: Can I at compile time check whether there is a facility method (toString(), for example)? Today I wrote: static if ( __traits(isArithmetic, Element) ) { ret ~=

How I can determine this is class or struct at compile time?

2008-12-26 Thread Weed
subj

Re: How I can determine this is class or struct at compile time?

2008-12-26 Thread BCS
Reply to Weed, subj is(typeof(*this))?struct:class; // untested

[Issue 2542] New: array casts behave differently at compile and runtime

2008-12-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2542 Summary: array casts behave differently at compile and runtime Product: D Version: 1.037 Platform: PC OS/Version: Linux Status: NEW Keywords: spec Severity: normal