zsxxsz zhengshu...@hexun.com wrote:
== Quote from digited (digi...@yandex.ru)'s article
Walter Bright Wrote:
The main purpose of this is to correct a couple of regressions that were
blocking QtD and Tango.
http://www.digitalmars.com/d/1.0/changelog.html
Walter Bright newshou...@digitalmars.com wrote:
digited wrote:
So you don't mind that Tango is still uncompilable with 1.050 because of
hurrying,
I didn't know that. The bugzilla number which was posted as the reason
it wouldn't compile was fixed.
Hi Walter,
could you not just put
Bill Baxter wrote:
case 1:
case 3:
break;
should still be allowed.
--bb
Or replace with:
case 1, 3:
break;
-- Chris Nicholson-Sauls
Andrei Alexandrescu wrote:
Adam D. Ruppe wrote:
If not, it seems kinda weird that assert() is just a lib function, but if
you put static before it, it becomes a completely different thing.
That kinda takes the wind out of the sails of the remove assert ship.
It randomly occurred to me
Frank Fuente wrote:
Justin Johansson Wrote:
Frank Fuente Wrote:
Justin Johansson Wrote:
Where is it?
[Ed, remembering of course that ..
The most important thing is remembering that black text on a white screen
carries absolutely no emotional information whatsoever, in either
direction,
BLS wrote:
Sorry OT,
I would like to rent a dedicated (root) server in the United States
Linux Ubuntu 8, min 4GB. so nothing special...
Do you have any recommendations ?
TIA, Björn
http://www.linode.com/
-- Chris Nicholson-Sauls
Andrei Alexandrescu wrote:
One cool thing is combining sshfs with autofs.
A cool thing I'd seriously never thought of. Time to autofs half my /mnt...
-- Chris Nicholson-Sauls
Just to understand it:
int[new] a;
int[new] b;
a = [1,2,3];
b = a;
In your book, the last statement would copy contents of a into b and b.ptr
!= a.ptr while according to walter, b would rebind to a?
bearophile Wrote:
Justin Johansson:
this turns out to be
a clear demonstration of the performance-enhancing power of D delegates
over an
otherwise ingrained C++ thinking approach.
I have changed your benchmark a little, you may want to look at its timings
too (I have taken
Andrei Alexandrescu wrote:
I talked to Walter about T[new] today and it seems we are having a
disagreement.
The problem is that I believe T[new] is a container, whereas Walter
believes T[new] is nothing but a slice with a couple of extra operations.
Paradoxically this seems to be conducive
Justin Johansson:
Also added -O switch this time though have no idea what level of optimization
that does.
(btw. In this test code, the -release switch doesn't do anything does it
as that's just for conditional compilation?)
In DMD:
-O means full optimizations minus the inlining (and
Chris Nicholson-Sauls ibisbase...@gmail.com wrote in message
news:hb94d1$ho...@digitalmars.com...
I still use that mode in my terminals, though... somehow black-on-white
never suited me in that one case. Even less so than green-on-black
(always felt so hollywood, shiver).
I think I'm
language_fan írta:
Thu, 15 Oct 2009 02:04:09 -0400, Chad J thusly wrote:
I'm reminded of how annoying it is when there are different libraries
for a language that all define their mathematical types differently and
in incompatible ways (all of the Vec2D, Vec3D, etc ever). Also
aggravating is
Max Samukha wrote:
On Thu, 15 Oct 2009 21:55:07 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I talked to Walter about T[new] today and it seems we are having a
disagreement.
I'd prefer Walter's way with a provision that array literals are
immutable and allocated
Don wrote:
There are two sensible options:
I see the question as, is T[new] a value type or a reference type? I see
it as a reference type, and so assignment should act like a reference
assignment, not a value assignment.
Don wrote:
Max Samukha wrote:
// arrays are true reference types
int[new] a = [1, 2, 3];
b = a;
a.length = 22;
assert (a.length == b.length);
This makes perfect sense to me. The rule would be:
If 'x' is T[new], then:
x = y; _always_ copies y into a {length, capacity-specified block},
unless
Rainer Deyke wrote:
Andrei Alexandrescu wrote:
Eiffel offers the old keyword that refers to the old object in a
postcondition. But it seems quite wasteful to clone the object just to
have a contract look at a little portion of the old object.
You don't need to clone the whole object. You
Here is my thoughts and what I think is needed to build a really good
IDE and maybe get some attention from the enterprise. It's really not
enough for the compiler to output some json for an IDE to use, the whole
tool chain needs to be revised.
Compiler:
* Written in D
* Supports all major
Walter Bright:
Rainer Deyke:
You don't need to clone the whole object. You just need to cache the
properties that are used with 'old'.
That's a good idea.
Once in a time I want to improve Walter's mood. This is a list of the top 25
requests for improvements to the Java language (some
Jacob Carlborg Wrote:
IDE: Descent
Poseidon + xfBuild may do the job (but Poseidon needs work to run on linux and
mac). Eclipse itself is too heavy and too java's.
On Fri, Oct 16, 2009 at 12:06 PM, Jacob Carlborg d...@me.com wrote:
Here is my thoughts and what I think is needed to build a really good IDE
and maybe get some attention from the enterprise. It's really not enough for
the compiler to output some json for an IDE to use, the whole tool chain
On Fri, 16 Oct 2009 02:53:20 -0700, Walter Bright
newshou...@digitalmars.com wrote:
Don wrote:
Max Samukha wrote:
// arrays are true reference types
int[new] a = [1, 2, 3];
b = a;
a.length = 22;
assert (a.length == b.length);
This makes perfect sense to me. The rule would be:
If 'x' is
On 2009-10-16 11:49:12 +0200, Walter Bright newshou...@digitalmars.com said:
Don wrote:
There are two sensible options:
I see the question as, is T[new] a value type or a reference type? I
see it as a reference type, and so assignment should act like a
reference assignment, not a value
On 2009-10-16 13:54:03 +0200, Max Samukha spam...@d-coding.com said:
On Fri, 16 Oct 2009 02:53:20 -0700, Walter Bright
newshou...@digitalmars.com wrote:
Don wrote:
Max Samukha wrote:
// arrays are true reference types
int[new] a = [1, 2, 3];
b = a;
a.length = 22;
assert (a.length ==
Denis Koroskin wrote:
On Fri, 16 Oct 2009 14:06:59 +0400, Jacob Carlborg d...@me.com wrote:
Here is my thoughts and what I think is needed to build a really good
IDE and maybe get some attention from the enterprise. It's really not
enough for the compiler to output some json for an IDE to
Fawzi Mohamed wrote:
On 2009-10-16 13:54:03 +0200, Max Samukha spam...@d-coding.com said:
On Fri, 16 Oct 2009 02:53:20 -0700, Walter Bright
newshou...@digitalmars.com wrote:
Don wrote:
Max Samukha wrote:
// arrays are true reference types
int[new] a = [1, 2, 3];
b = a;
a.length = 22;
On Fri, 16 Oct 2009 16:20:31 +0400, Ary Borenszweig a...@esperanto.org.ar
wrote:
Denis Koroskin wrote:
On Fri, 16 Oct 2009 14:06:59 +0400, Jacob Carlborg d...@me.com wrote:
Here is my thoughts and what I think is needed to build a really good
IDE and maybe get some attention from the
On 10/16/09 12:58, Tomas Lindquist Olsen wrote:
On Fri, Oct 16, 2009 at 12:06 PM, Jacob Carlborgd...@me.com wrote:
Here is my thoughts and what I think is needed to build a really good IDE
and maybe get some attention from the enterprise. It's really not enough for
the compiler to output some
On 10/16/09 13:03, digited wrote:
Jacob Carlborg Wrote:
IDE: Descent
Poseidon + xfBuild may do the job (but Poseidon needs work to run on linux and
mac). Eclipse itself is too heavy and too java's.
I totally forgot about Poseidon. It has already been ported to the new
DWT library, I
On 10/16/09 14:27, Denis Koroskin wrote:
On Fri, 16 Oct 2009 16:20:31 +0400, Ary Borenszweig
a...@esperanto.org.ar wrote:
Denis Koroskin wrote:
On Fri, 16 Oct 2009 14:06:59 +0400, Jacob Carlborg d...@me.com wrote:
Here is my thoughts and what I think is needed to build a really
good IDE and
On Fri, 16 Oct 2009 14:25:44 +0200, Don nos...@nospam.com wrote:
Yes, but you could allocate the data immediately after the Array
structure, so you only have one allocation. And in the common case,
where it never exceeds the original capacity, they stay together and
preserve cache locality.
Don wrote:
Max Samukha wrote:
On Thu, 15 Oct 2009 21:55:07 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I talked to Walter about T[new] today and it seems we are having a
disagreement.
I'd prefer Walter's way with a provision that array literals are
immutable and
Walter Bright wrote:
Don wrote:
There are two sensible options:
I see the question as, is T[new] a value type or a reference type? I see
it as a reference type, and so assignment should act like a reference
assignment, not a value assignment.
I understand that, but to me that's an example
Walter Bright wrote:
Rainer Deyke wrote:
Andrei Alexandrescu wrote:
Eiffel offers the old keyword that refers to the old object in a
postcondition. But it seems quite wasteful to clone the object just to
have a contract look at a little portion of the old object.
You don't need to clone the
Walter Bright wrote:
I think it would be very strange to have T[] behave like a reference
type (which it does now) and T[new] to behave like a value type.
T[] is not a reference type.
Andrei
Max Samukha wrote:
On Fri, 16 Oct 2009 14:25:44 +0200, Don nos...@nospam.com wrote:
Yes, but you could allocate the data immediately after the Array
structure, so you only have one allocation. And in the common case,
where it never exceeds the original capacity, they stay together and
Don wrote:
Andrei Alexandrescu wrote:
Don wrote:
Max Samukha wrote:
On Thu, 15 Oct 2009 21:55:07 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I talked to Walter about T[new] today and it seems we are having a
disagreement.
I'd prefer Walter's way with a provision that
Don wrote:
In case this isn't clear:
real [] sinsTable = [ sin(1.0), sin(2.0), sin(3.0), sin(4.0) ];
How do you do this so that the entries in the table are calculated at
compile time?
static?
Andrei
Lutger wrote:
Just to understand it:
int[new] a;
int[new] b;
a = [1,2,3];
b = a;
In your book, the last statement would copy contents of a into b and b.ptr
!= a.ptr while according to walter, b would rebind to a?
Well no.
In the case above b would rebind to a, which is consistent with:
Andrei Alexandrescu wrote:
Don wrote:
In case this isn't clear:
real [] sinsTable = [ sin(1.0), sin(2.0), sin(3.0), sin(4.0) ];
How do you do this so that the entries in the table are calculated at
compile time?
static?
Andrei
That's still not compile time. They're initialized in the
On Fri, 16 Oct 2009 09:00:27 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Don wrote:
Max Samukha wrote:
On Thu, 15 Oct 2009 21:55:07 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I talked to Walter about T[new] today and it seems we are having a
Jacob Carlborg schrieb:
On 10/16/09 13:03, digited wrote:
Jacob Carlborg Wrote:
IDE: Descent
Poseidon + xfBuild may do the job (but Poseidon needs work to run on
linux and mac). Eclipse itself is too heavy and too java's.
I totally forgot about Poseidon. It has already been ported to the
On Fri, 16 Oct 2009 18:30:24 +0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Lutger wrote:
Just to understand it:
int[new] a;
int[new] b;
a = [1,2,3];
b = a;
In your book, the last statement would copy contents of a into b and
b.ptr != a.ptr while according to walter, b
Andrei Alexandrescu, el 16 de octubre a las 09:12 me escribiste:
Max Samukha wrote:
On Fri, 16 Oct 2009 14:25:44 +0200, Don nos...@nospam.com wrote:
Yes, but you could allocate the data immediately after the Array
structure, so you only have one allocation. And in the common
case, where it
Ary Borenszweig, el 16 de octubre a las 14:20 me escribiste:
I can't agree more. Everything you wrote is in my TODO list,
starting with a compiler, which already compiles most of the
druntime (and hopefully will compile it fully by the end of this
week). I'll release it to public as soon as
On Fri, 16 Oct 2009 20:11:25 +0400, Leandro Lucarella llu...@gmail.com
wrote:
Ary Borenszweig, el 16 de octubre a las 14:20 me escribiste:
I can't agree more. Everything you wrote is in my TODO list,
starting with a compiler, which already compiles most of the
druntime (and hopefully will
Jacob Carlborg wrote:
Here is my thoughts and what I think is needed to build a really good
IDE and maybe get some attention from the enterprise. It's really not
enough for the compiler to output some json for an IDE to use, the whole
tool chain needs to be revised.
I think this list is what
Andrei Alexandrescu Wrote:
Walter Bright wrote:
I think it would be very strange to have T[] behave like a reference
type (which it does now) and T[new] to behave like a value type.
T[] is not a reference type.
Andrei
While true, normal use will be the same as if it was a reference
bearophile Wrote:
Justin Johansson:
The results are not clear cut at all this time. So what's going on?
I don't know. I have a certain experience of benchmarks now, and I know they
are tricky.
I usually like to help people understand they don't understand what's going
on in their
Denis Koroskin 2kor...@gmail.com wrote in message
news:op.u1v7jdgco7c...@korden-pc...
Yes, it's a DMD port. Unfortunately, there is no other mature D front-end
at present. Other folks are working on D compilers (dil, dang, ...) but
the progress is very slow.
FWIW, I've been meaning to try
Andrei Alexandrescu Wrote:
Walter Bright wrote:
Rainer Deyke wrote:
Andrei Alexandrescu wrote:
Eiffel offers the old keyword that refers to the old object in a
postcondition. But it seems quite wasteful to clone the object just to
have a contract look at a little portion of the old
Nick Sabalausky wrote:
Denis Koroskin 2kor...@gmail.com wrote in message
news:op.u1v7jdgco7c...@korden-pc...
Yes, it's a DMD port. Unfortunately, there is no other mature D front-end
at present. Other folks are working on D compilers (dil, dang, ...) but
the progress is very slow.
FWIW,
Jason House wrote:
if fun or gun is impure, then they should not be callable by the
contracts. Because of that, order is irrelevant.
1. Restricting calls to pure functions is sensible, but was deemed too
restrictive.
2. Even so, there's difficulty on what to cache. The amount cached may
On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Jason House wrote:
if fun or gun is impure, then they should not be callable by the
contracts. Because of that, order is irrelevant.
1. Restricting calls to pure functions is sensible, but was
Ellery Newcomer ellery-newco...@utulsa.edu wrote in message
news:hbak0n$q5...@digitalmars.com...
Nick Sabalausky wrote:
Denis Koroskin 2kor...@gmail.com wrote in message
news:op.u1v7jdgco7c...@korden-pc...
Yes, it's a DMD port. Unfortunately, there is no other mature D
front-end
at
On Sat, 17 Oct 2009 00:28:55 +0400, Denis Koroskin 2kor...@gmail.com
wrote:
On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Jason House wrote:
if fun or gun is impure, then they should not be callable by the
contracts. Because of that, order
Nick Sabalausky Wrote:
Ellery Newcomer ellery-newco...@utulsa.edu wrote in message
news:hbak0n$q5...@digitalmars.com...
Nick Sabalausky wrote:
Denis Koroskin 2kor...@gmail.com wrote in message
news:op.u1v7jdgco7c...@korden-pc...
Yes, it's a DMD port. Unfortunately, there is no other
Andrei Alexandrescu wrote:
class A {
int fun() { ... }
int gun(int) { ... }
int foo()
in {
}
out(result) {
if (old.fun())
assert(old.gun(5));
else
assert(old.fun() + old.gun(6));
foreach (i; 1 .. old.fun())
Rainer Deyke wrote:
Andrei Alexandrescu wrote:
class A {
int fun() { ... }
int gun(int) { ... }
int foo()
in {
}
out(result) {
if (old.fun())
assert(old.gun(5));
else
assert(old.fun() + old.gun(6));
foreach (i; 1 ..
On Sat, 17 Oct 2009 00:54:51 +0400, Denis Koroskin 2kor...@gmail.com
wrote:
On Sat, 17 Oct 2009 00:28:55 +0400, Denis Koroskin 2kor...@gmail.com
wrote:
On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Jason House wrote:
if fun or gun is
Justin Johansson n...@spam.com wrote in message
news:hbamfa$v3...@digitalmars.com...
Nick Sabalausky Wrote:
Ellery Newcomer ellery-newco...@utulsa.edu wrote in message
news:hbak0n$q5...@digitalmars.com...
Nick Sabalausky wrote:
Denis Koroskin 2kor...@gmail.com wrote in message
Denis Koroskin wrote:
On Sat, 17 Oct 2009 00:54:51 +0400, Denis Koroskin 2kor...@gmail.com
wrote:
On Sat, 17 Oct 2009 00:28:55 +0400, Denis Koroskin 2kor...@gmail.com
wrote:
On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Jason House wrote:
On Fri, Oct 16, 2009 at 2:57 AM, Fawzi Mohamed fmoha...@mac.com wrote:
On 2009-10-16 11:13:59 +0200, gzp ga...@freemail.hu said:
language_fan írta:
Thu, 15 Oct 2009 02:04:09 -0400, Chad J thusly wrote:
I'm reminded of how annoying it is when there are different libraries
for a language
Nick Sabalausky wrote:
Ellery Newcomer ellery-newco...@utulsa.edu wrote in message
news:hbak0n$q5...@digitalmars.com...
Nick Sabalausky wrote:
Denis Koroskin 2kor...@gmail.com wrote in message
news:op.u1v7jdgco7c...@korden-pc...
Yes, it's a DMD port. Unfortunately, there is no other mature
Nick Sabalausky wrote:
Justin Johansson n...@spam.com wrote in message
news:hbamfa$v3...@digitalmars.com...
Nick Sabalausky Wrote:
Ellery Newcomer ellery-newco...@utulsa.edu wrote in message
news:hbak0n$q5...@digitalmars.com...
Nick Sabalausky wrote:
Denis Koroskin 2kor...@gmail.com wrote
Andrei Alexandrescu Wrote:
Jason House wrote:
if fun or gun is impure, then they should not be callable by the
contracts. Because of that, order is irrelevant.
1. Restricting calls to pure functions is sensible, but was deemed too
restrictive.
I don't know about others, but my use of
Jacob Carlborg wrote:
On 10/16/09 12:58, Tomas Lindquist Olsen wrote:
GtkD supports Glade.
Yes, but GtkD doesn't use native controls.
A minor point, I think. Eclipse doesn't look very native and has
widespread acceptance.
There's been talk here before about deprecating and replacing std.stream.
I've found some annoying corner case bugs in it and also find it rather
annoying that it doesn't work right with things like ranges and immutable
strings. Should I file bug reports and patches for some of this stuff, or is
Denis Koroskin wrote:
On Sat, 17 Oct 2009 00:54:51 +0400, Denis Koroskin 2kor...@gmail.com
wrote:
On Sat, 17 Oct 2009 00:28:55 +0400, Denis Koroskin 2kor...@gmail.com
wrote:
On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Jason House wrote:
Lutger wrote:
Denis Koroskin wrote:
On Sat, 17 Oct 2009 00:54:51 +0400, Denis Koroskin 2kor...@gmail.com
wrote:
On Sat, 17 Oct 2009 00:28:55 +0400, Denis Koroskin 2kor...@gmail.com
wrote:
On Sat, 17 Oct 2009 00:22:54 +0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Jason
Lutger wrote
Jacob Carlborg wrote:
Here is my thoughts and what I think is needed to build a really good
IDE and maybe get some attention from the enterprise. It's really not
enough for the compiler to output some json for an IDE to use, the whole
tool chain needs to be revised.
I think
Andrei Alexandrescu wrote:
Rats, I meant assert(old.gun(i * i)). That's what compounds the
difficulty of the example.
That wouldn't be allowed. More specifically 'old(gun(i * i))' wouldn't
be allowed. 'old(this).gun(i * i)' would be allowed, but probably
wouldn't do what you want it to do.
Frank Fuente wrote:
Justin Johansson Wrote:
Frank Fuente Wrote:
Justin Johansson Wrote:
Where is it?
[Ed, remembering of course that ..
The most important thing is remembering that black text on a
white screen carries absolutely no emotional information
whatsoever, in either
bearophile wrote:
Iamgottingcrazy:
Should I bear this??
With D1 it seems to work:
http://codepad.org/hpslrHHs
Bye,
bearophile
He had a technical problem and worded his subject line that way?
Walter Bright wrote:
Nick Sabalausky wrote:
Bios usually are self-written (how would the publisher know the
author's strengths better and be able to write about it better than
the author themself?), and the whole point of them is to make the
person look good to help sell a book (or whatever
Does anyone know how to work with huge (2GB+) files in D2? std.stream has
overflow bugs (I haven't isolated them yet) and can't return their size
correctly, std.stdio.File throws a ConvOverflowError in seek() because fseek()
apparently takes an int when it should take a long, and std.file only
Chris Nicholson-Sauls wrote:
The most important thing is remembering that black text on a white
screen carries absolutely no emotional information whatsoever, in
either direction, in any case.
1
-- panic! THAT DOES NOT COMPUTE! DANGER, DANGER, Will Robinson!
Yigal Chripun wrote:
not all men are born equal
AJ wrote:
Frank Fuente wrote:
Justin Johansson Wrote:
Frank Fuente Wrote:
Justin Johansson Wrote:
Where is it?
[Ed, remembering of course that ..
The most important thing is remembering that black text on a
white screen carries absolutely no emotional information
whatsoever, in either
Andrei Alexandrescu wrote:
Jarrett Billingsley wrote:
I'm done. After seeing how Andrei is behaving, I really am done. Bye.
Relax. Walter and I are in touch and always agree in advance about the
features that need to be present in the language by the time the book
is in print. It's not like
Jeremie Pelletier wrote:
dsimcha wrote:
Does anyone know how to work with huge (2GB+) files in D2? std.stream
has
overflow bugs (I haven't isolated them yet) and can't return their size
correctly, std.stdio.File throws a ConvOverflowError in seek() because
fseek()
apparently takes an int
dsimcha wrote:
Does anyone know how to work with huge (2GB+) files in D2? std.stream has
overflow bugs (I haven't isolated them yet) and can't return their size
correctly, std.stdio.File throws a ConvOverflowError in seek() because fseek()
apparently takes an int when it should take a long, and
bearophile wrote:
Walter Bright Wrote:
Is this something needed?
At the moment I don't see a lot of business D-related.
At the moment? If the boat has a hole in it, tell them immediately.
== Quote from Jeremie Pelletier (jerem...@gmail.com)'s article
dsimcha wrote:
Does anyone know how to work with huge (2GB+) files in D2? std.stream has
overflow bugs (I haven't isolated them yet) and can't return their size
correctly, std.stdio.File throws a ConvOverflowError in seek()
Who is Walter Bright?
Jeremie Pelletier jerem...@gmail.com wrote in message
news:hbbh3e$2bs...@digitalmars.com...
AJ wrote:
Frank Fuente wrote:
white text on a black screen - its like The Heart of Darkness :-)
Well, whatever that means. But, call me stupid, but white backgrounds are
hard on they eyes! So, all
AJ a...@nospam.net wrote in message news:hbbiin$2f2...@digitalmars.com...
Who is Walter Bright?
I really, *really*, hate to be one of these people, but...
http://www.google.com/search?q=Walter+Bright
If that's not quite what you're asking, maybe you could be more specific?
Christopher Wright dhase...@gmail.com wrote in message
news:hbarno$188...@digitalmars.com...
Jacob Carlborg wrote:
On 10/16/09 12:58, Tomas Lindquist Olsen wrote:
GtkD supports Glade.
Yes, but GtkD doesn't use native controls.
A minor point, I think. Eclipse doesn't look very native and
dsimcha schrieb:
== Quote from Jeremie Pelletier (jerem...@gmail.com)'s article
dsimcha wrote:
Does anyone know how to work with huge (2GB+) files in D2? std.stream has
overflow bugs (I haven't isolated them yet) and can't return their size
correctly, std.stdio.File throws a
Ellery Newcomer ellery-newco...@utulsa.edu wrote in message
news:hbaom1$138...@digitalmars.com...
Nick Sabalausky wrote:
Ellery Newcomer ellery-newco...@utulsa.edu wrote in message
news:hbak0n$q5...@digitalmars.com...
I could count the number of places that are ambiguous syntactically or
I have the problem with the following code in D2:
CreateWindowEx returns NULL but I haven't got idea why?
module test;
import base;
static import user32;
static import kernel32;
void MsgBox(immutable char [] o_str){
user32.messageBox(null, cast(str)o_str, cast(str)msg, 0x0);
}
struct
What's wrong with this simple symbol table class?
class Symbol
{
private char[] id;
private static Symbol[char[]] symtab;
private this( string id) {
this.id = id;
}
static Symbol opCall( char[] id) {
Symbol sym = symtab[id]; // *** ArrayBoundsError here
if
You query presence of a key in an AA using 'in'
if (id in symtab) {
Symbol sym = symtab[id];
...
} else {
..
}
Or this avoids a double lookup if the symbol is present:
Symbol* pSym = id in symtab;
if (pSym !is null) {
Symbol sym = *pSym;
...
} else
Bill Baxter Wrote:
You query presence of a key in an AA using 'in'
Thank you Bill .. esp. the tip to avoid double lookup.
JJ
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Zarathustra wrote:
I have the problem with the following code in D2:
CreateWindowEx returns NULL but I haven't got idea why?
snip
That's because your are not properly processing all of the messages that
are involved in window creation.
See:
On Fri, Oct 16, 2009 at 4:11 PM, Manfred_Nowak svv1...@hotmail.com wrote:
Bill Baxter wrote:
Symbol* pSym = id in symtab;
shouldn't the compiler sort this out?
I'm not really sure what you mean, but I think the answer is that
there's a difference between an unset entry and one that's set
public void addToAA(char[] var_name, KT, ET)(KT key, ET element)
{
mixin(ET.stringof~`[]* elements = key in `~var_name~`;`);
if( elements == null )
{
ET[] temp;
temp.length = 1;
temp[0] = element;
mixin(var_name~`[key] = temp;`);
}
else
{
(*elements).length =
Bill Baxter:
Or this avoids a double lookup if the symbol is present:
In LDC both forms (and several other ones, if the usage of the pointer is
local, and it doesn't get passed away) get simplified to the same single lookup
code :-) (but not in DMD).
So much that you may even think of in to
http://d.puremagic.com/issues/show_bug.cgi?id=3379
Don clugd...@yahoo.com.au changed:
What|Removed |Added
CC||clugd...@yahoo.com.au
http://d.puremagic.com/issues/show_bug.cgi?id=3376
Rainer Schuetze r.sagita...@gmx.de changed:
What|Removed |Added
CC||r.sagita...@gmx.de
1 - 100 of 104 matches
Mail list logo