torhu wrote:
Lars Ivar Igesund wrote:
Walter Bright wrote:
Lars Ivar Igesund wrote:
Walter Bright wrote:
In Sweden!
It is Øredev ;)
When I get a keyboard that does umlauts, I'll stick them in!
There were no umlauts there :D If anything, it shows your lack of a
unicode enabled
Surely more tutorials is a good idea. Writing good tutorials is difficult
though, and a lot of work.
Have you considered contributing to this wikibook instead?
http://en.wikibooks.org/wiki/A_Beginner%27s_Guide_to_D
It states the intended audience includes people new to programming.
On Fri, 21 Nov 2008 12:38:58 -0500, Amaury [EMAIL PROTECTED]
wrote:
My DMD version is : Digital Mars D Compiler v1.030
What do you mean by my build option? the options to build my .d?
I'm just trying the simple example of sieve :
dmd -cov sieve.d
./sieve
no .lst is created.
Works for me, it
While writing code that works on matrices I have found something curious, so I
have written the following little benchmark. As usual keep eyes open for
possible bugs and mistakes of mine:
import std.conv: toInt;
import std.c.stdlib: rand, malloc;
const int RAND_MAX = short.max; // RAND_MAX
Michel Fortin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On 2008-11-21 07:43:47 -0500, bearophile [EMAIL PROTECTED] said:
Just found this cute article on Reddit: GCC hacks in the Linux kernel,
by M. Tim Jones:
Hi,
I'm wondering : why the D compiler can't produce x86_64 code ? All seems to be
ready in the langage for 64 bits. I need to produce a .dll file in both 32 and
64 bits, but I can't. Will we see soon a 64 bits version of the D Compiler or
should I re-write my apps in C++ ?
@+
Vermi
22.11.08 в 15:21 Vermi в своём письме писал(а):
Hi,
I'm wondering : why the D compiler can't produce x86_64 code ? All seems
to be ready in the langage for 64 bits. I need to produce a .dll file in
both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of
the D Compiler or
Vermi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I'm wondering : why the D compiler can't produce x86_64 code ? All seems
to be ready in the langage for 64 bits. I need to produce a .dll file in
both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of
the
Nick Sabalausky [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Vermi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I'm wondering : why the D compiler can't produce x86_64 code ? All seems
to be ready in the langage for 64 bits. I need to produce a .dll file in
On Sat, Nov 22, 2008 at 1:25 PM, Denis Koroskin [EMAIL PROTECTED] wrote:
22.11.08 в 15:21 Vermi в своём письме писал(а):
Hi,
I'm wondering : why the D compiler can't produce x86_64 code ? All seems
to be ready in the langage for 64 bits. I need to produce a .dll file in
both 32 and 64
Lutger Wrote:
Vermi wrote:
Hi,
I'm wondering : why the D compiler can't produce x86_64 code ? All seems
to be ready in the langage for 64 bits. I need to produce a .dll file in
both 32 and 64 bits, but I can't. Will we see soon a 64 bits version of
the D Compiler or should I re-write
Sam S E [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
We already have the notation:
int[] array;
void foo(int[] a, int x);
foo(array, 3);
array.foo(3); // means the same thing
so why not extend this to struct first arguments?
--Sam
A lot of people want that to be
Andrei Alexandrescu:
My guess is that if you turn that off, the differences won't be as large
(or even detectable for certain ranges of N).
The array bounds aren't controlled, the code is compiled with -O -release
-inline.
Do you see array bound controls in the asm code at the bottom of my
Nick Sabalausky Wrote:
Sam S E [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
We already have the notation:
int[] array;
void foo(int[] a, int x);
foo(array, 3);
array.foo(3); // means the same thing
so why not extend this to struct first arguments?
--Sam
Lutger Wrote:
Surely more tutorials is a good idea. Writing good tutorials is difficult
though, and a lot of work.
Have you considered contributing to this wikibook instead?
http://en.wikibooks.org/wiki/A_Beginner%27s_Guide_to_D
It states the intended audience includes people new to
Michael P. wrote:
I would be completely willing to right them, if they would get even a little
bit of usage.
If they're good, I can do some promotion of them.
Does foreach use delegates? Isn't that unnecessary overhead?
--Sam
Jarrett Billingsley [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Thu, Nov 20, 2008 at 1:33 AM, Tony [EMAIL PROTECTED] wrote:
(...lots of stuff...)
I'm not actually going to reply to your post. Not because I feel
you've beaten me or something, but because, well, you're
dsimcha [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
== Quote from bearophile ([EMAIL PROTECTED])'s article
D is a fringe language, and it's not an easy one (system language and all
that),
so there's never shortage of unusual people in this newsgroup :-)
Java groups are so
BCS [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Reply to dsimcha,
== Quote from bearophile ([EMAIL PROTECTED])'s article
D is a fringe language, and it's not an easy one (system language and
all that),
so there's never shortage of unusual people in this newsgroup :-)
Java
Robert Fraser [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Christopher Wright wrote:
On a more serious note, the standard library and available IDEs often
have more to do with ease of use of a language than the language itself
(assuming the language is reasonable).
I
bearophile wrote:
While writing code that works on matrices I have found something curious...
Here's what I think is going on. AFAIK, D hasn't got any special code
for initializing jagged arrays. So
auto A = new double[][](N, N);
involves N+1 memory allocations.
As well as being
On Sat, Nov 22, 2008 at 11:40 PM, Sam S E [EMAIL PROTECTED] wrote:
Does foreach use delegates? Isn't that unnecessary overhead?
--Sam
It does use delegates, for iterating over most types. When iterating
over arrays, the compiler turns it into a sort of for loop instead.
Is it unnecessary
Don wrote:
bearophile wrote:
While writing code that works on matrices I have found something
curious...
Here's what I think is going on. AFAIK, D hasn't got any special code
for initializing jagged arrays. So
auto A = new double[][](N, N);
involves N+1 memory allocations.
As well
Hey all,
How do I get environment variables in a D program? I specifically want
the path to a user's home folder.
Ta muchly.
On Sat, Nov 22, 2008 at 12:55 PM, Christopher Wright [EMAIL PROTECTED] wrote:
Hey all,
How do I get environment variables in a D program? I specifically want the
path to a user's home folder.
Ta muchly.
In Tango, there's tango.sys.Environment
Reply to Christopher,
I thought (perhaps wrongly) C allowed you to declare main as taking a
list of environment variables,
It does.
http://d.puremagic.com/issues/show_bug.cgi?id=1977
[EMAIL PROTECTED] changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=1977
[EMAIL PROTECTED] changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|INVALID
http://d.puremagic.com/issues/show_bug.cgi?id=2093
--- Comment #7 from [EMAIL PROTECTED] 2008-11-22 08:43 ---
(In reply to comment #4)
Currently an 'owner' is anyone who has a pointer to array's beginning:
char[] s = hello.dup;
char[] s1 = s[0..4];
s1 ~= !;
assert(s != s1); //
http://d.puremagic.com/issues/show_bug.cgi?id=1977
--- Comment #11 from [EMAIL PROTECTED] 2008-11-22 12:51 ---
(In reply to comment #9)
(In reply to comment #8)
The plan is to have sensible bitwise operations preserve the size of their
operands. Only arithmetic and shift will
http://d.puremagic.com/issues/show_bug.cgi?id=1977
--- Comment #12 from [EMAIL PROTECTED] 2008-11-22 13:22 ---
(In reply to comment #10)
(In reply to comment #7)
In general, we want to go with the simple rule is to have an operation
return
the tightest type that won't
http://d.puremagic.com/issues/show_bug.cgi?id=2093
--- Comment #13 from [EMAIL PROTECTED] 2008-11-22 16:31 ---
(In reply to comment #12)
It seems to me then that this is a design choice - does the string length
belong to the string or to the reference? For slices it must be the
33 matches
Mail list logo