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
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,
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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 --
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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,
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.
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
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
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
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
http://tal.forum2.org/static/cv/Factories.pdf
This article is about object construction in Java.
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 --
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
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=2837
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
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);
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
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
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
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
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
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++)
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
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
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
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
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);
may be you can raplace string with char[] ?
Hi All,
is there any (easy) way to clone an object or any other classes?
--Qian
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
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
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 ];
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
{
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
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
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=2789
s...@iname.com changed:
What|Removed |Added
CC||s...@iname.com
Keywords|
http://d.puremagic.com/issues/show_bug.cgi?id=2835
unkn...@simplemachines.org changed:
What|Removed |Added
CC||unkn...@simplemachines.org
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
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
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,
http://d.puremagic.com/issues/show_bug.cgi?id=2838
unkn...@simplemachines.org changed:
What|Removed |Added
CC||unkn...@simplemachines.org
82 matches
Mail list logo