Andrei Alexandrescu wrote:
Craig Black wrote:
I like very much the direction D2 is going now. Language refactoring
and enhancements driven by the goal of more elegant implementation of
standard libraries. This approach seems very practical and
promising. Thank you very much and keep it up!
Andrei Alexandrescu wrote:
Nick Sabalausky wrote:
"BCS" wrote
Reply to Nick,
"Andrei Alexandrescu" wrote in message
news:gsiqdr$1cs...@digitalmars.com...
BCS wrote:
One option would be to not throw an error if the format string uses
indexing formats (e.i. out of order formatting)
Yah,
Well, there's push (svn commit) and pull (svn up), so he must mean one
or the other...
-[Unknown]
Walter Bright wrote:
BCS wrote:
I think he was asking about the otherway (not that I known why)
I think he'll need to be more specific!
BCS wrote:
I think he was asking about the otherway (not that I known why)
I think he'll need to be more specific!
Michel Fortin Wrote:
> On 2009-04-20 00:38:48 -0400, Steve Teale said:
>
> > Michel Fortin Wrote:
> >
> >> On 2009-04-19 15:19:24 -0400, Steve Teale
> >> said:
> >>
> >>> This is incomplete at this point, but there's a working example. I have
> >>> to break off now and do some building work.
Hello Walter,
Stewart Gordon wrote:
Walter, how often do you update your working copy from the SVN?
Obviously less than once every 2 releases.
As far as I know, it is current. Everything got checked in.
I think he was asking about the otherway (not that I known why)
Stewart Gordon wrote:
Walter, how often do you update your working copy from the SVN?
Obviously less than once every 2 releases.
As far as I know, it is current. Everything got checked in.
Walter, how often do you update your working copy from the SVN?
Obviously less than once every 2 releases.
Stewart.
On Mon, 20 Apr 2009 06:34:11 -0400, Steve Teale
wrote:
Jacob Carlborg Wrote:
Steve Teale wrote:
> Michel Fortin Wrote:
>
>> On 2009-04-19 15:19:24 -0400, Steve Teale
said:
>>
>>> This is incomplete at this point, but there's a working example. I
have
>>> to break off now and do some b
"BCS" wrote in message
news:78ccfa2d3e68b8cb8fe69f8b7...@news.digitalmars.com...
> Reply to Nick,
>
>> "Andrei Alexandrescu" wrote in message
>> news:gsiqdr$1cs...@digitalmars.com...
>>
>>> BCS wrote:
One option would be to not throw an error if the format string uses
indexing for
Nick Sabalausky wrote:
"BCS" wrote in message
news:78ccfa2d3e68b8cb8fe69f8b7...@news.digitalmars.com...
Reply to Nick,
"Andrei Alexandrescu" wrote in message
news:gsiqdr$1cs...@digitalmars.com...
BCS wrote:
One option would be to not throw an error if the format string uses
indexing forma
annoyed Wrote:
> It's in dmd-v2.026/src/phobos/std/stdio.d:void fwritefln(FILE* fp, ...)
>
> but I cannot find it in 2.029.
>
It was removed, use File.writefln() instead. std.stdio has been rewritten so
you might want to take a look at the docs.
Andrew
It's in dmd-v2.026/src/phobos/std/stdio.d:void fwritefln(FILE* fp, ...)
but I cannot find it in 2.029.
Reply to Nick,
"Andrei Alexandrescu" wrote in message
news:gsiqdr$1cs...@digitalmars.com...
BCS wrote:
One option would be to not throw an error if the format string uses
indexing formats (e.i. out of order formatting)
Yah, that's an option I considered. Maybe it's the best way to go.
T
"Andrei Alexandrescu" wrote in message
news:gsiqdr$1cs...@digitalmars.com...
> BCS wrote:
>> Reply to bearophile,
>>
>>> Andrei Alexandrescu:
>>>
If it were an error, I wouldn't let it go.
>>> It's an error. It will lead to troubles.
>>>
>>> Bye,
>>> bearophile
>>
>> Then there need to
"bearophile" wrote in message
news:gsipn1$1bn...@digitalmars.com...
> Andrei Alexandrescu:
>> If it were an error, I wouldn't let it go.
>
> It's an error. It will lead to troubles.
>
Sometimes it is an error, but there are times when it isn't:
Suppose you're writing a reporting module for an e
BCS wrote:
Reply to bearophile,
Andrei Alexandrescu:
If it were an error, I wouldn't let it go.
It's an error. It will lead to troubles.
Bye,
bearophile
Then there need to be a way for the format string to use an argument
without generating output for it because as Andrei is saying, the
bearophile wrote:
Andrei Alexandrescu:
If it were an error, I wouldn't let it go.
It's an error. It will lead to troubles.
Well at most you could say it's error-prone, something that is easier to
argue. The problem is that forcing it into an error makes quite a number
of valid uses impossi
Reply to bearophile,
Andrei Alexandrescu:
If it were an error, I wouldn't let it go.
It's an error. It will lead to troubles.
Bye,
bearophile
Then there need to be a way for the format string to use an argument without
generating output for it because as Andrei is saying, there are real
Andrei Alexandrescu:
> If it were an error, I wouldn't let it go.
It's an error. It will lead to troubles.
Bye,
bearophile
bearophile wrote:
Andrei Alexandrescu:
extraneous arguments passed to writef will be ignored, not printed
with default formatting.
That sounds bad: => "Errors should never pass silently." It's better
to raise a compilation error. (And if that's not possible, then an
exception at run-time. But
Andrei Alexandrescu:
> extraneous arguments passed to writef will
> be ignored, not printed with default formatting.
That sounds bad:
=> "Errors should never pass silently."
It's better to raise a compilation error. (And if that's not possible, then an
exception at run-time. But a compilation er
Russell Lewis wrote:
Walter Bright wrote:
tama wrote:
I tested following code.
writefln(3 * 4);
This code doesn't work in the first place:-<
Yes, that's one of the breaking changes in the new phobos2. writefln
expects its first argument to be a format string.
If it isn't, use writeln inste
Russell Lewis wrote:
Walter Bright wrote:
This is a major revision to Phobos, including Andrei's revolutionary
new range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.029.zip
Was fwritefln() removed intentionally? Or should I write up a Bugzilla
Walter Bright wrote:
This is a major revision to Phobos, including Andrei's revolutionary new
range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.029.zip
Was fwritefln() removed intentionally? Or should I write up a Bugzilla?
I didn't noteice a
Walter Bright wrote:
tama wrote:
I tested following code.
writefln(3 * 4);
This code doesn't work in the first place:-<
Yes, that's one of the breaking changes in the new phobos2. writefln
expects its first argument to be a format string.
If it isn't, use writeln instead.
I just hit the s
Craig Black wrote:
I like very much the direction D2 is going now. Language refactoring
and enhancements driven by the goal of more elegant implementation of
standard libraries. This approach seems very practical and promising.
Thank you very much and keep it up!
-Craig
Thanks. Walter po
Andrei Alexandrescu wrote:
Walter Bright wrote:
I think the right fix for that is for the compiler to not complain
about deprecated symbol usage if the usage is in the same module the
deprecated symbol is defined in.
Reading this, I thought "No chance Walter will ever do this" until I saw
th
superdan wrote:
Craig Black Wrote:
I like very much the direction D2 is going now. Language refactoring and
enhancements driven by the goal of more elegant implementation of standard
libraries. This approach seems very practical and promising. Thank you
very much and keep it up!
-Craig
Walter Bright wrote:
Andrei Alexandrescu wrote:
Ok, I've undeprecated rand_seed, sigh. I was hoping I'd eliminate
rand() entirely from this release, but Walter pointed out it would
break too much code. So I left rand() and rand_seed() as deprecated.
Now I only left rand() deprecated so at leas
http://d.puremagic.com/issues/show_bug.cgi?id=2864
Andrei Alexandrescu wrote:
Ok, I've undeprecated rand_seed, sigh. I was hoping I'd eliminate rand()
entirely from this release, but Walter pointed out it would break too
much code. So I left rand() and rand_seed() as deprecated. Now I only
left rand() deprecated so at least the static construct
tama wrote:
> I tested following code.
>
> writefln(3 * 4);
>
> This code doesn't work in the first place:-<
Yes, that's one of the breaking changes in the new phobos2. writefln
expects its first argument to be a format string.
If it isn't, use writeln instead.
superdan wrote:
> Craig Black Wrote:
>
>> I like very much the direction D2 is going now. Language refactoring and
>> enhancements driven by the goal of more elegant implementation of standard
>> libraries. This approach seems very practical and promising. Thank you
>> very much and keep it
bearophile wrote:
Assertion failure: '0' on line 935 in file 'glue.c'
All assertion failures are compiler bugs and belong in bugzilla:
http://d.puremagic.com/issues/show_bug.cgi?id=2863
bearophile wrote:
I didn't even know that lambda delegates in D2 can now infer the type
of their input argument, so you can use (x, y) instead of (int x, int
y). Can you tell me when this was changed? :-)
That change *is* the template function literals, and they are only valid
as template argu
Walter Bright wrote:
In std.array, the example for back() is the same as for front().
The example for put() seems to be correct (and put() behaves
accordingly), however, the asserted results are not what the reader
would expect.
If we are verbose enough to explain the dot notation here, the
Craig Black Wrote:
> I like very much the direction D2 is going now. Language refactoring and
> enhancements driven by the goal of more elegant implementation of standard
> libraries. This approach seems very practical and promising. Thank you
> very much and keep it up!
>
> -Craig
holy g
I like very much the direction D2 is going now. Language refactoring and
enhancements driven by the goal of more elegant implementation of standard
libraries. This approach seems very practical and promising. Thank you
very much and keep it up!
-Craig
dsimcha wrote:
== Quote from dsimcha (dsim...@yahoo.com)'s article
== Quote from Walter Bright (newshou...@digitalmars.com)'s article
This is a major revision to Phobos, including Andrei's revolutionary new
range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.co
== Quote from dsimcha (dsim...@yahoo.com)'s article
> == Quote from Walter Bright (newshou...@digitalmars.com)'s article
> > This is a major revision to Phobos, including Andrei's revolutionary new
> > range support.
> > http://www.digitalmars.com/d/2.0/changelog.html
> > http://ftp.digitalmars.com
== Quote from Walter Bright (newshou...@digitalmars.com)'s article
> This is a major revision to Phobos, including Andrei's revolutionary new
> range support.
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.029.zip
Two small issues I've just run into that might
bearophile wrote:
In D1 I have written a very hairy (but not too much long) apply() function,
that given a function and some arguments, returns the result of the function
applied to them. (apply() is a basic higher-order thing common in most
functional languages).
So now I'm playing with this
Andrei Alexandrescu wrote:
Georg Wrede wrote:
Walter Bright wrote:
This is a major revision to Phobos, including Andrei's revolutionary
new range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.029.zip
The documentation for completeSort in std.alg
On Mon, Apr 20, 2009 at 2:47 PM, Saaa wrote:
> Using D1 feels especially retarded today :(
>
Why retarded ?
Saaa wrote:
Using D1 feels especially retarded today :(
Don't cry now. :-)
Soon you'll be using D2 for work, and cry when you see the D3 change log...
Georg Wrede wrote:
Walter Bright wrote:
This is a major revision to Phobos, including Andrei's revolutionary
new range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.029.zip
The documentation for completeSort in std.algorithm says:
Performs O(
Walter Bright wrote:
This is a major revision to Phobos, including Andrei's revolutionary new
range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.029.zip
The documentation for completeSort in std.algorithm says:
Performs O(n * log(n)) (best ca
Using D1 feels especially retarded today :(
> This is a major revision to Phobos, including Andrei's revolutionary new
> range support.
>
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.029.zip
Denis Koroskin wrote:
writefln now expects a string as a first argument.
Use writeln() if you need no formattings, it is both faster and safer.
To one's shame, I didn't know detailed writef/writefln spec.
I checked D2 changelog and founded it at version 2.006 and 2.029.
Thanks!
--
tama
http:/
Michel Fortin wrote:
On 2009-04-20 00:38:48 -0400, Steve Teale
said:
Michel Fortin Wrote:
What's the license?
Hmm, forgot about that stuff, BSD maybe - suggest one please.
By looking at the code, I've found a license. Not sure which license it
is (looks a little BSD-like), but at least
On 2009-04-20 00:38:48 -0400, Steve Teale said:
Michel Fortin Wrote:
On 2009-04-19 15:19:24 -0400, Steve Teale said:
This is incomplete at this point, but there's a working example. I have
to break off now and do some building work. You can find documentation
and a zip file (currently it i
On Mon, 20 Apr 2009 14:58:38 +0400, tama wrote:
bearophile wrote:
tama:
void foo(alias f)()
{
writefln(f(3, 4));
}
foo!((x,y){ return x * y; })();
This code doesn't work(compile error).
To me the following works:
import std.stdio: writeln;
void foo(alias f)() {
writeln(f(3, 4));
bearophile wrote:
tama:
void foo(alias f)()
{
writefln(f(3, 4));
}
foo!((x,y){ return x * y; })();
This code doesn't work(compile error).
To me the following works:
import std.stdio: writeln;
void foo(alias f)() {
writeln(f(3, 4));
}
void main() {
foo!((x,y){ return x * y; })()
Jacob Carlborg Wrote:
> Steve Teale wrote:
> > Michel Fortin Wrote:
> >
> >> On 2009-04-19 15:19:24 -0400, Steve Teale
> >> said:
> >>
> >>> This is incomplete at this point, but there's a working example. I have
> >>> to break off now and do some building work. You can find documentation
> >
tama:
> void foo(alias f)()
> {
> writefln(f(3, 4));
> }
> foo!((x,y){ return x * y; })();
>
> This code doesn't work(compile error).
To me the following works:
import std.stdio: writeln;
void foo(alias f)() {
writeln(f(3, 4));
}
void main() {
foo!((x,y){ return x * y; })();
}
Bye
On Mon, 20 Apr 2009 18:12:16 +0900, Walter Bright
wrote:
bearophile wrote:
BCS Wrote:
Cool template function literals sounds interesting
May I have one example of them?
I am looking in the docs, but I am not finding anything...
void foo(alias f)()
{
f(3, 4);
}
foo!((x,y){return x
In D1 I have written a very hairy (but not too much long) apply() function,
that given a function and some arguments, returns the result of the function
applied to them. (apply() is a basic higher-order thing common in most
functional languages).
So now I'm playing with this new toy of D2, not
Walter Bright:
> void foo(alias f)()
> {
> f(3, 4);
> }
> foo!((x,y){return x * y;))();
I have tried:
import std.stdio: writeln;
void foo(alias f)() {
f(3, 4);
}
void main() {
foo!( (x, y) { writeln(x * y); } )();
}
And it works, printing 12 :-) Very cute.
This is able to simplify s
Walter Bright wrote:
This is a major revision to Phobos, including Andrei's revolutionary new
range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.029.zip
Ooohhh, just half way through the change log, and already breathless!!!
Daniel Keep wrote:
>
> bearophile wrote:
>> BCS Wrote:
>>> Cool template function literals sounds interesting
>> May I have one example of them?
>> I am looking in the docs, but I am not finding anything...
>>
>> Bye,
>> bearophile
>
> If I had to guess, I'd say it was something like this:
>
>
bearophile wrote:
BCS Wrote:
Cool template function literals sounds interesting
May I have one example of them?
I am looking in the docs, but I am not finding anything...
void foo(alias f)()
{
f(3, 4);
}
foo!((x,y){return x * y;))();
bearophile wrote:
> BCS Wrote:
>> Cool template function literals sounds interesting
>
> May I have one example of them?
> I am looking in the docs, but I am not finding anything...
>
> Bye,
> bearophile
If I had to guess, I'd say it was something like this:
> alias (T)(T a, T b) { return (a+
BCS Wrote:
> Cool template function literals sounds interesting
May I have one example of them?
I am looking in the docs, but I am not finding anything...
Bye,
bearophile
Steve Teale wrote:
Michel Fortin Wrote:
On 2009-04-19 15:19:24 -0400, Steve Teale said:
This is incomplete at this point, but there's a working example. I have
to break off now and do some building work. You can find documentation
and a zip file (currently it is Windows only, DMD2.026, and
fst tbyte ptr [eax]
Hello Walter,
This is a major revision to Phobos, including Andrei's revolutionary
new range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.029.zip
Cool template function literals sounds interesting
On Mon, 20 Apr 2009 09:09:09 +0200, Walter Bright
wrote:
This is a major revision to Phobos, including Andrei's revolutionary new
range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.029.zip
Butbutbut... I've just barely managed to install 2.02
This is a major revision to Phobos, including Andrei's revolutionary new
range support.
http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.029.zip
69 matches
Mail list logo