Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Anders F Björklund
Walter Bright wrote: Jacob Carlborg wrote: It depends on what documentation you read. http://developer.apple.com/documentation/Darwin/index.html In this documentation Darwin is all over the place. Move up a directory, and it's OSX, OSX, OSX. I can only seem to find Mac OS X, not OSX ? But

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Anders F Björklund
Denis Koroskin wrote: I also wonder why it is OSX. Are versions prior to MacOS 10 (which is marketed as MacOS X) officially unsupported by D? All versions before Mac OS X 10.4 are unsupported, even though you can make Mac OS X 10.3 limp along with an older GDC version*. Mac OS 9 is flat out,

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Anders F Björklund
Jarrett Billingsley wrote: Michel Fortin wrote: To me it's clear that Darwin is the core on which Mac OS X and iPhone OS are based on. Mac OS X looks like a marketing name to me; I wouldn't be surprised if in a few years it gets renamed to Mac OS XI, or something else, because Mac OS X 10.10

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Jacob Carlborg
Denis Koroskin wrote: On Wed, 15 Apr 2009 01:48:00 +0400, Jacob Carlborg d...@me.com wrote: Walter Bright wrote: Lars Ivar Igesund wrote: Walter Bright wrote: Now works for FreeBSD 7.1! Nice! But is there a particularly good reason for disregarding version identifiers already

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Jacob Carlborg
Walter Bright wrote: Jacob Carlborg wrote: If you follow what's normally written in the official literature and documentation shouldn't it be MacOSX then? Perhaps. One could argue it either way. I checked the predefined identifiers in gcc for guidance, and found just the unfortunately

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Michel Fortin
On 2009-04-14 20:19:29 -0400, Walter Bright newshou...@digitalmars.com said: __APPLE__ or __MACH__ - OSX Apple has made many operating systems besides OSX, so __APPLE__ is out. I can't even remember which OS Mach is. It's defined(___APPLE__) defined(__MACH__) that is used (not or). Read

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Leandro Lucarella
Tomas Lindquist Olsen, el 15 de abril a las 01:45 me escribiste: On Tue, Apr 14, 2009 at 11:51 PM, Walter Bright newshou...@digitalmars.com wrote: Tomas Lindquist Olsen wrote: On Tue, Apr 14, 2009 at 9:49 PM, Walter Bright newshou...@digitalmars.com wrote: Tomas Lindquist Olsen

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Leandro Lucarella
Tomas Lindquist Olsen, el 15 de abril a las 02:26 me escribiste: Even if you strip underscores, OSX and Win32/64 still don't match C/C++ identifiers. Why should linux be special? Because the gcc macro suits the need perfectly. The others don't. I simply don't agree here. To me, linux

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Walter Bright
Jacob Carlborg wrote: They call it Mac OS, then they add a version like this: Mac OS 9. Then when the tenth versions came it happened to be built on a nix base/core (known as darwin) and they also added the X (probably to reflect the new nix base, X is also ten using roman numerals) making

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Lars Ivar Igesund
Walter Bright wrote: Lars Ivar Igesund wrote: Walter Bright wrote: Now works for FreeBSD 7.1! Nice! But is there a particularly good reason for disregarding version identifiers already established by gdc and ldc? freebsd vs FreeBSD, darwin vs OSX FreeBSD is how it is normally

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Anders F Björklund
Lars Ivar Igesund wrote: FreeBSD breaks existing code, and so will OSX whenever darwin is removed. Now a developer already active on those platform is forced to somehow make sure both identifiers are in place until some unknown point in the future. Since the version identifiers have been

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-15 Thread Jordan Miner
Walter Bright Wrote: Because gcc on linux predefines linux, not Linux. Please change the version identifier from linux to Linux. D is a chance to fix stuff wrong or inconsistent in other languages. C compilers may use inconsistent naming like __APPLE__, __MACH__, __linux, _WIN32, _WIN64,

Re: Navigate from ClassInfo to TypeInfo

2009-04-15 Thread Daniel Keep
davidl wrote: ?? Wed, 15 Apr 2009 10:14:42 +0800??Jarrett Billingsley jarrett.billings...@gmail.com : 2009/4/14 davidl dav...@nospam.org: Send this object to vararg func, and retrieve the TypeInfo there and return? No. The typeinfo passed to vararg functions is also determined at

Re: dmd.1.043.deb is for AMD 64

2009-04-15 Thread Walter Bright
carlos smith wrote: Hi ! Just installed Ubuntu 8.04. Then tried to install dmd.1.043.deb from http://www.digitalmars.com/d/download.html Got the following message Not the correct architecture AMD 64 Is there a 32 bits version (1.043) available somewhere ? Just download the regular zip

Re: Navigate from ClassInfo to TypeInfo

2009-04-15 Thread Frank Benoit
Daniel Keep schrieb: davidl wrote: 在 Wed, 15 Apr 2009 10:14:42 +0800,Jarrett Billingsley jarrett.billings...@gmail.com 写道: 2009/4/14 davidl dav...@nospam.org: Send this object to vararg func, and retrieve the TypeInfo there and return? No. The typeinfo passed to vararg functions is also

Re: Navigate from ClassInfo to TypeInfo

2009-04-15 Thread Daniel Keep
Frank Benoit wrote: Daniel Keep schrieb: davidl wrote: 在 Wed, 15 Apr 2009 10:14:42 +0800,Jarrett Billingsley jarrett.billings...@gmail.com 写道: 2009/4/14 davidl dav...@nospam.org: Send this object to vararg func, and retrieve the TypeInfo there and return? No. The typeinfo passed to

Re: Navigate from ClassInfo to TypeInfo

2009-04-15 Thread Frank Benoit
Daniel Keep schrieb: Ok. What do you propose to do with this TypeInfo? The ONLY thing a given TypeInfo_Class gives you is the ClassInfo, which you already have. The TypeInfo object itself gives you getHash, equals and compare, all of which are in Object and thus redundant, tsize which is

Re: Navigate from ClassInfo to TypeInfo

2009-04-15 Thread Daniel Keep
Frank Benoit wrote: Daniel Keep schrieb: Ok. What do you propose to do with this TypeInfo? The ONLY thing a given TypeInfo_Class gives you is the ClassInfo, which you already have. The TypeInfo object itself gives you getHash, equals and compare, all of which are in Object and thus

Re: Alignment of unions

2009-04-15 Thread Don
Stewart Gordon wrote: Don wrote: Stewart Gordon wrote: snip That's only because you want to be able to attach alignments to individual members of a union. And I still don't know why. I'm not sure why you think unions are so different to structs. They are identical in most respects --

Re: Navigate from ClassInfo to TypeInfo

2009-04-15 Thread Frank Benoit
Daniel Keep schrieb: Frank Benoit wrote: Daniel Keep schrieb: Ok. What do you propose to do with this TypeInfo? The ONLY thing a given TypeInfo_Class gives you is the ClassInfo, which you already have. The TypeInfo object itself gives you getHash, equals and compare, all of which are in

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages Do, Really)

2009-04-15 Thread Don
Walter Bright wrote: My problem with operator overloading stemmed from C++'s endorsement of using and for stream operations. I saw someone who wrote a database library, and used and for stream operations. Then he needed a second form of stream operations, so he overloaded and . db x

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages Do, Really)

2009-04-15 Thread Don
Paul D. Anderson wrote: Sounds like someone needs a strong dose of D!! http://java.dzone.com/articles/why-java-doesnt-need-operator The comments bounce between operator overloading is always bad because you can do idiotic things with it and operator overloading is essential because sometimes

Re: Bug in std.socket

2009-04-15 Thread Unknown W. Brackets
Does waiting for a keypress in the client thread do you any favors? Also, you can get some mileage by doing a select() (see SocketSet) on the socket first. This will tell you if you need to accept(), and also allow you to do timeouts. I'm a big fan of non-blocking sockets, you can improve

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages

2009-04-15 Thread bearophile
Don: **Don't overload arithmetic operators unless you are doing arithmetic.** Are there few non-arithmetic operators (that will support operator overloading too) with a clear semantics that can be added to D? The main problems here are that such operators are very few, they may end being used

Re: Concepts, axioms

2009-04-15 Thread bearophile
I have written a bit more about more or less the same topic, it's mostly about type systems: http://leonardo-m.livejournal.com/81028.html I don't know if axioms can be useful to D2, but a formalized and powerful way to do concepts now seems very useful. Bye, bearophile

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages

2009-04-15 Thread Don
bearophile wrote: Don: **Don't overload arithmetic operators unless you are doing arithmetic.** Are there few non-arithmetic operators (that will support operator overloading too) with a clear semantics that can be added to D? The main problems here are that such operators are very few, they

Re: Navigate from ClassInfo to TypeInfo

2009-04-15 Thread Frank Benoit
Frank Benoit schrieb: I need to retrieve an instance of TypeInfo from an object instance at runtime. TypeInfo info = typeid(obj) // does not work, only compile time TypeInfo info = obj.classinfo.; // how to navigate to TypeInfo? Is that possible? If not, why? And can it be added

Re: Why does readln include the line terminator?

2009-04-15 Thread Kagamin
Stewart Gordon Wrote: Take these four cases: (a) you want to process only files with a specific line ending style (b) you want to know what line endings are used (c) you don't care about what line endings are used, but still want to know whether or not the file ends with one (d) you just

Re: Bug in std.socket

2009-04-15 Thread Graham St Jack
On Wed, 15 Apr 2009 00:38:33 -0700, Unknown W. Brackets wrote: Does waiting for a keypress in the client thread do you any favors? Also, you can get some mileage by doing a select() (see SocketSet) on the socket first. This will tell you if you need to accept(), and also allow you to do

Re: Why does readln include the line terminator?

2009-04-15 Thread Georg Wrede
Andrei Alexandrescu wrote: I plan to implement a little API around these considerations, but haven't gotten around to it. Particularly the regex thing is rather thorny because std.regex does not distinguish classic regular expressions from those needing backtracking, and does not have an

D2 weak references

2009-04-15 Thread Jason House
Does anyone have a weak reference library for D2? Without that, hash tables and search trees don't mix. I'm hoping that a weak reference library can be merged into druntime.

D2 CAS, atomic increment

2009-04-15 Thread Jason House
I'm currently using part of the Tango D2 branch to get basic lock free methods. I know there's license issues with just copying Tango into Phobos, so does anyone have (or be able to write) these basic building blocks? I'm planning on porting the lock-free (and mostly fence free) hash table from

Re: (Semi) precise GC [was: Re: Std Phobos 2 and logging library?]

2009-04-15 Thread Fawzi Mohamed
On 2009-04-13 20:33:53 +0200, Frits van Bommel fvbom...@remwovexcapss.nl said: Leandro Lucarella wrote: Frits van Bommel, el 13 de abril a las 19:36 me escribiste: Leandro Lucarella wrote: Frits van Bommel, el 13 de abril a las 13:30 me escribiste: Or you can pin anything that's referenced

Re: D2 CAS, atomic increment

2009-04-15 Thread Oliver Dathe
Jason House wrote: I'm currently using part of the Tango D2 branch to get basic lock free methods. I know there's license issues with just copying Tango into Phobos, so does anyone have (or be able to write) these basic building blocks? When I used Tango for atomic ops I ran into a couple of

Re: D2 CAS, atomic increment

2009-04-15 Thread Don
Jason House wrote: I'm currently using part of the Tango D2 branch to get basic lock free methods. I know there's license issues with just copying Tango into Phobos, so does anyone have (or be able to write) these basic building blocks? There are no license issues with using anything written

Re: D2 CAS, atomic increment

2009-04-15 Thread Denis Koroskin
On Wed, 15 Apr 2009 17:23:51 +0400, Don nos...@nospam.com wrote: Jason House wrote: I'm currently using part of the Tango D2 branch to get basic lock free methods. I know there's license issues with just copying Tango into Phobos, so does anyone have (or be able to write) these basic

Vectors and matrices

2009-04-15 Thread Lars Kyllingstad
I am writing a D library based some of the stuff in SLATEC, and I've come to a point where I need to decide on a way to manipulate vectors and matrices. To that end, I have some ideas and questions I would like comments on from the community. Ideally, I want to restrict the user as little as

Re: Navigate from ClassInfo to TypeInfo

2009-04-15 Thread grauzone
Frank Benoit wrote: I need to retrieve an instance of TypeInfo from an object instance at runtime. TypeInfo info = typeid(obj) // does not work, only compile time TypeInfo info = obj.classinfo.; // how to navigate to TypeInfo? Is that possible? If not, why? And can it be added (D1)? I

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages

2009-04-15 Thread Robert Fraser
bearophile wrote: Are there few non-arithmetic operators (that will support operator overloading too) with a clear semantics that can be added to D? a ♥ b

Re: OPTLINK and LARGEADDRESSAWARE

2009-04-15 Thread Robert Fraser
Vladimir Panteleev wrote: Hi, It seems that OPTLINK doesn't support the IMAGE_FILE_LARGE_ADDRESS_AWARE flag (enabled with /LARGEADDRESSAWARE when using Microsoft Link), even though the D runtime seems to support it. Consider this simple program: - import

Re: (Semi) precise GC [was: Re: Std Phobos 2 and logging library?]

2009-04-15 Thread Leandro Lucarella
Fawzi Mohamed, el 15 de abril a las 14:57 me escribiste: Well, if it turns out to be a win, I'm sure we could put it into LDC. DMD would be up to Walter. and tango will also for sure welcome a new gc implementation. Well, right now I'm working on a minimal, naive, fully documented GC

Re: Navigate from ClassInfo to TypeInfo

2009-04-15 Thread Steven Schveighoffer
On Wed, 15 Apr 2009 02:41:50 -0400, Frank Benoit keinfarb...@googlemail.com wrote: Daniel Keep schrieb: Ok. What do you propose to do with this TypeInfo? The ONLY thing a given TypeInfo_Class gives you is the ClassInfo, which you already have. The TypeInfo object itself gives you getHash,

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages

2009-04-15 Thread Jarrett Billingsley
On Wed, Apr 15, 2009 at 10:31 AM, Robert Fraser fraseroftheni...@gmail.com wrote: bearophile wrote: Are there few non-arithmetic operators (that will support operator overloading too) with a clear semantics that can be added to D? a ♥ b opLove.

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages

2009-04-15 Thread Yigal Chripun
On 15/04/2009 18:25, Jarrett Billingsley wrote: On Wed, Apr 15, 2009 at 10:31 AM, Robert Fraser fraseroftheni...@gmail.com wrote: bearophile wrote: Are there few non-arithmetic operators (that will support operator overloading too) with a clear semantics that can be added to D? a ♥ b

Re: D2 CAS, atomic increment

2009-04-15 Thread Sean Kelly
Denis Koroskin wrote: On Wed, 15 Apr 2009 17:23:51 +0400, Don nos...@nospam.com wrote: Jason House wrote: I'm currently using part of the Tango D2 branch to get basic lock free methods. I know there's license issues with just copying Tango into Phobos, so does anyone have (or be able to

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages

2009-04-15 Thread BCS
Hello Yigal, sounds silly to me. Why not simply generalize and allow defining in-fix functions like in functional languages? that also includes allowing any unicode character[s]. lexing and (more importantly) parsing become a major problem if you allow that

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages

2009-04-15 Thread Yigal Chripun
On 15/04/2009 18:50, BCS wrote: Hello Yigal, sounds silly to me. Why not simply generalize and allow defining in-fix functions like in functional languages? that also includes allowing any unicode character[s]. lexing and (more importantly) parsing become a major problem if you allow that

Java Factories Article

2009-04-15 Thread Yigal Chripun
http://tal.forum2.org/static/cv/Factories.pdf This article is about object construction in Java.

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages Do, Really)

2009-04-15 Thread Paul D. Anderson
bearophile Wrote: Paul D. Anderson: Having some operator overload is good if you write some numerical/scientific code. Try working with bignumbers or vectors in Java, and you will see how quickly some otherwise simple expressions become an unreadable mess. Bye, bearophile I agree --

Re: Bug in std.socket

2009-04-15 Thread Brad Roberts
Graham St Jack wrote: On Wed, 15 Apr 2009 00:38:33 -0700, Unknown W. Brackets wrote: Does waiting for a keypress in the client thread do you any favors? Also, you can get some mileage by doing a select() (see SocketSet) on the socket first. This will tell you if you need to accept(), and

Re: Why does readln include the line terminator?

2009-04-15 Thread Stewart Gordon
Kagamin wrote: Stewart Gordon Wrote: Take these four cases: (a) you want to process only files with a specific line ending style (b) you want to know what line endings are used (c) you don't care about what line endings are used, but still want to know whether or not the file ends with one

Re: D2 weak references

2009-04-15 Thread Stewart Gordon
Jason House wrote: Does anyone have a weak reference library for D2? Without that, hash tables and search trees don't mix. I'm hoping that a weak reference library can be merged into druntime. Weak references don't fit well into D at the moment. It's been talked about before (albeit not in

Re: OPTLINK and LARGEADDRESSAWARE

2009-04-15 Thread Walter Bright
http://d.puremagic.com/issues/show_bug.cgi?id=2837

Re: Bug in std.socket

2009-04-15 Thread Graham St Jack
On Wed, 15 Apr 2009 09:35:45 -0700, Brad Roberts wrote: Graham St Jack wrote: On Wed, 15 Apr 2009 00:38:33 -0700, Unknown W. Brackets wrote: Does waiting for a keypress in the client thread do you any favors? Also, you can get some mileage by doing a select() (see SocketSet) on the socket

Re: Why does readln include the line terminator?

2009-04-15 Thread Christopher Wright
Steven Schveighoffer wrote: auto reader = file.byLine!(/[.,]/)(); Why specify anything at compile time when a user could reasonably generate the value at runtime? auto reader = file.byLine(readConfig().separator);

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages Do, Really)

2009-04-15 Thread Christopher Wright
Don wrote: Paul D. Anderson wrote: Sounds like someone needs a strong dose of D!! http://java.dzone.com/articles/why-java-doesnt-need-operator The comments bounce between operator overloading is always bad because you can do idiotic things with it and operator overloading is essential

Re: Vectors and matrices

2009-04-15 Thread Robert Jacques
On Wed, 15 Apr 2009 10:07:38 -0400, Lars Kyllingstad pub...@kyllingen.nospamnet wrote: I am writing a D library based some of the stuff in SLATEC, and I've come to a point where I need to decide on a way to manipulate vectors and matrices. To that end, I have some ideas and questions I

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages Do, Really)

2009-04-15 Thread Walter Bright
Don wrote: Walter Bright wrote: My problem with operator overloading stemmed from C++'s endorsement of using and for stream operations. I saw someone who wrote a database library, and used and for stream operations. Then he needed a second form of stream operations, so he overloaded

Re: Why Java Doesn't Need Operator Overloading (and Very Few Languages Do, Really)

2009-04-15 Thread Walter Bright
Don wrote: The number of operators that you can overload is very small and each of them is attached to very specific semantics that makes little sense outside the realm of scalars and of a few other specialized mathematical concepts (e.g. matrices). Exactly right. Bingo! That's what

Re: Why does readln include the line terminator?

2009-04-15 Thread Robert Fraser
Christopher Wright wrote: Steven Schveighoffer wrote: auto reader = file.byLine!(/[.,]/)(); Why specify anything at compile time when a user could reasonably generate the value at runtime? auto reader = file.byLine(readConfig().separator); Yes, and for maximum abstraction, the config

Re: Vectors and matrices

2009-04-15 Thread Robert Jacques
On Wed, 15 Apr 2009 19:59:45 -0400, Robert Jacques sandf...@jhu.edu wrote: Also, my lab maintains a vector/numerics/robotics package that might be of interest https://trac.lcsr.jhu.edu/cisst) Opps, forgot to mention its not D (templated C++)

Re: Ternary Search Trees

2009-04-15 Thread Robert Fraser
bearophile wrote: Does someone has some need for Ternary Search Trees into Phobos (for D1. And eventually later for D2 too)? TSTs allow to find keys, key prefixes, or even keys with holes. Keys are arrays of T, where T is the template type. They can be designed to store the keys alone, or as

OT: please give us the Freedommmmmmmmmmmmm !!!!!!!!!!!!

2009-04-15 Thread The Anh Tran
Begging/crying inside Dear Mr Bright, iostream is BAD; but for something else, it is not very terrible. So, please give us the operator Freedom as in C++ ! The compiler could throw scary error: operator abuser spotted!!! Need -opAbuser to compile this file /end ;-D

Re: Ternary Search Trees

2009-04-15 Thread Andrei Alexandrescu
Robert Fraser wrote: bearophile wrote: Does someone has some need for Ternary Search Trees into Phobos (for D1. And eventually later for D2 too)? TSTs allow to find keys, key prefixes, or even keys with holes. Keys are arrays of T, where T is the template type. They can be designed to store

static initialization of associative arrays

2009-04-15 Thread Tyro[a.c.edwards]
Is it yet possible to statically initialize an associative array? If so, please point me to the documentation. I am using DMD v2.028. Thanks, Andrew

static initialization of associative arrays

2009-04-15 Thread Tyro[a.c.edwards]
Is it yet possible to statically initialize an associative array? If so, please point me to the documentation. I am using DMD v2.028. Currently I'm able to do this: import std.stdio; string[string] types; static this(){ types = [ void:void, bool:bool ]; } void main(){ writeln(types);

Re: static initialization of associative arrays

2009-04-15 Thread novice2
may be you can raplace string with char[] ?

clone method of Object

2009-04-15 Thread Qian Xu
Hi All, is there any (easy) way to clone an object or any other classes? --Qian

Re: clone method of Object

2009-04-15 Thread grauzone
Qian Xu wrote: Hi All, is there any (easy) way to clone an object or any other classes? --Qian Simple answer: No. Complicated answer: Yes, but you have to write it yourself. Here's a nice starting point. You can use tupleof to get all members of a class. Note that this doesn't deal with

Re: clone method of Object

2009-04-15 Thread grauzone
grauzone wrote: Qian Xu wrote: Hi All, is there any (easy) way to clone an object or any other classes? --Qian Simple answer: No. Complicated answer: Yes, but you have to write it yourself. Here's a nice starting point. You can use tupleof to get all members of a class. Note that this

Re: static initialization of associative arrays

2009-04-15 Thread Daniel Keep
Tyro[a.c.edwards] wrote: Is it yet possible to statically initialize an associative array? If so, please point me to the documentation. I am using DMD v2.028. Currently I'm able to do this: import std.stdio; string[string] types; static this(){ types = [ void:void, bool:bool ];

Re: clone method of Object

2009-04-15 Thread Qian Xu
grauzone wrote: newobject.tupleof[i] = old.tupleof[i]; If the current value of tupleof[i] is an object, the object will be referenced, won't it? Shall I write: auto elem = old.tupleof[i]; static if (is(typeof(elem) == class)) { newobject.tupleof[i] = clone(elem); } else {

Re: Template classes

2009-04-15 Thread Arild Boes
bearophile skrev: Andrew Spott: yes, however there are going to be a few new classes that will be implemented in this (dot products, cross products, etc) You mean a few new methods. Take a look at the 'this' of D2, it allows to create wrapper structs, so you can just add methods to the

Re: Template classes

2009-04-15 Thread Jarrett Billingsley
On Wed, Apr 15, 2009 at 12:13 PM, Arild Boes abo...@gmail.com wrote: Take a look at the 'this' of D2, it allows to create wrapper structs, so you can just add methods to the built-in arrays. Bye, bearophile Please elaborate on this. How does one do that? With the new, delicious alias

Re: clone method of Object

2009-04-15 Thread grauzone
bearophile wrote: grauzone: the clone method will only copy member b, but not a or c. A *good* implementation of this function seems fit to be added to Phobos. And serialization, and a complete reflection API. Bye, bearophile

Re: static initialization of associative arrays

2009-04-15 Thread bearophile
Daniel Keep: I think Walter said something a while back to the effect that making it possible to statically initialise AAs isn't feasible because it requires setting up a complex structure on the heap. At the moment you can't statically initialize a built-in AA in D. But with a small change in

[Issue 2789] Compiler allows for method with the same signature

2009-04-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2789 s...@iname.com changed: What|Removed |Added CC||s...@iname.com Keywords|

[Issue 2835] std.socket.TcpSocket.connect doesn't actually connect

2009-04-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2835 unkn...@simplemachines.org changed: What|Removed |Added CC||unkn...@simplemachines.org

[Issue 2837] New: OPTLINK and LARGEADDRESSAWARE

2009-04-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2837 Summary: OPTLINK and LARGEADDRESSAWARE Product: D Version: unspecified Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2

[Issue 2838] New: std.file.rmdirRecurse fails

2009-04-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2838 Summary: std.file.rmdirRecurse fails Product: D Version: 2.027 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Phobos

[Issue 2835] std.socket.TcpSocket.connect doesn't actually connect

2009-04-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2835 --- Comment #3 from unkn...@simplemachines.org 2009-04-15 21:03 --- Created an attachment (id=324) -- (http://d.puremagic.com/issues/attachment.cgi?id=324action=view) Set sin_family properly. Pruning down some C-style socket code,

[Issue 2838] std.file.rmdirRecurse fails

2009-04-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2838 unkn...@simplemachines.org changed: What|Removed |Added CC||unkn...@simplemachines.org