01.06.2012 21:43, Walter Bright написал:
On 6/1/2012 1:48 AM, Dmitry Olshansky wrote:
Or better - save game and then crash gracefully.
That can result in saving a corrupted game state, which then will not
load, or worse, load and then cause another crash.
I would suggest instead implementing
Hi
Im experiencing problems with writing a windows program in D
language, it's really good language width C++ speed and C# easy
of use but why there's no critically important for windows
programmers function SetTimer? Is there a reimplementation or
something?
Regards
On Sat, 02 Jun 2012 11:46:39 +0200, Godlike darkan...@windowslive.com
wrote:
Hi
Im experiencing problems with writing a windows program in D language,
it's really good language width C++ speed and C# easy of use but why
there's no critically important for windows programmers function
On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote:
On Sat, 02 Jun 2012 11:46:39 +0200, Godlike
darkan...@windowslive.com wrote:
Hi
Im experiencing problems with writing a windows program in D
language, it's really good language width C++ speed and C#
easy of use but why there's
On Jun 2, 2012 1:54 AM, Jonathan M Davis jmdavisp...@gmx.com wrote:
No. It simply means that all of the letters of an acronym are always the
same
case. So, you'd have
class ASCIIException {}
void funcASCII() {}
int asciiVar;
enum UTFEnum { asciiEnum, utfEnum }
Oh, good solution, I could
On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:
On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote:
On Sat, 02 Jun 2012 11:46:39 +0200, Godlike
darkan...@windowslive.com wrote:
Hi
Im experiencing problems with writing a windows program in D
language, it's really good
On Jun 2, 2012 6:33 AM, John Chapman johnch_a...@hotmail.com wrote:
On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:
On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote:
Just add these declarations to the appropriate module:
extern(Windows) {
alias void function(HWND,
On 02.06.2012 14:35, Kevin Cox wrote:
On Jun 2, 2012 6:33 AM, John Chapman johnch_a...@hotmail.com
mailto:johnch_a...@hotmail.com wrote:
On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:
On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote:
Just add these declarations
On Saturday, 2 June 2012 at 10:47:37 UTC, Dmitry Olshansky wrote:
On 02.06.2012 14:35, Kevin Cox wrote:
On Jun 2, 2012 6:33 AM, John Chapman johnch_a...@hotmail.com
mailto:johnch_a...@hotmail.com wrote:
On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:
On Saturday, 2 June 2012 at
On Saturday, 2 June 2012 at 10:35:17 UTC, Kevin Cox wrote:
On Jun 2, 2012 6:33 AM, John Chapman
johnch_a...@hotmail.com wrote:
On Saturday, 2 June 2012 at 10:11:02 UTC, Godlike wrote:
On Saturday, 2 June 2012 at 10:00:07 UTC, Martin Nowak wrote:
Just add these declarations to the
On 02.06.2012 14:55, John Chapman wrote:
On Saturday, 2 June 2012 at 10:47:37 UTC, Dmitry Olshansky wrote:
On 02.06.2012 14:35, Kevin Cox wrote:
On Jun 2, 2012 6:33 AM, John Chapman johnch_a...@hotmail.com
mailto:johnch_a...@hotmail.com wrote:
On Saturday, 2 June 2012 at 10:11:02 UTC,
On 02.06.2012 15:08, Dmitry Olshansky wrote:
On 02.06.2012 14:55, John Chapman wrote:
On Saturday, 2 June 2012 at 10:47:37 UTC, Dmitry Olshansky wrote:
On 02.06.2012 14:35, Kevin Cox wrote:
On Jun 2, 2012 6:33 AM, John Chapman johnch_a...@hotmail.com
mailto:johnch_a...@hotmail.com wrote:
Hello everybody, i am interesting about D language, and i think
many programmers would like to advance in popularity D language,
can we give donations to D development and how?
On Thursday, 31 May 2012 at 12:29:21 UTC, Steven Schveighoffer
wrote:
On Thu, 31 May 2012 08:27:17 -0400, Sandeep Datta
datta.sand...@gmail.com wrote:
If we removed the requirement for the ampersand, along with
requiring parentheses for non-property functions, code which
expected to call
sorry for my english...
On Saturday, 2 June 2012 at 11:22:16 UTC, Oleg wrote:
Hello everybody, i am interesting about D language, and i think
many programmers would like to advance in popularity D
language, can we give donations to D development and how?
I don't know if kickstarter could be used for D, say for
On Saturday, 2 June 2012 at 11:22:16 UTC, Oleg wrote:
Hello everybody, i am interesting about D language, and i think
many programmers would like to advance in popularity D
language, can we give donations to D development and how?
I think Walter usually prefers one buys a cup, t-shirt or
On 06/01/12 17:47, Gor Gyolchanyan wrote:
Where can I read more about Bartosz's race-free type system and if there
are some specific ideas already, AST macros for D as well?
--
Bye,
Gor Gyolchanyan.
You can check this YouTube's playlist of the last D's convention (2009)
Greetings All
Using DMD 2.059, the following code does not compile. DMD does not allow me
to apply stringof on a function alias of a function that takes one or more
arguments. It compiles and runs fine for functions that do not take any
arguments.
Is it a bug, or am I doing something wrong here?
On Saturday, 2 June 2012 at 11:42:22 UTC, Jacob Carlborg wrote:
On Saturday, 2 June 2012 at 11:22:16 UTC, Oleg wrote:
Hello everybody, i am interesting about D language, and i
think many programmers would like to advance in popularity D
language, can we give donations to D development and how?
how about this? http://www.dsource.org/site/donate
Hi,
I just read some old threads about opDollar and the wish to have
it work for non zero-based arrays, arrays with gaps, associative
arrays with non-numerical indices, and so on. It was suggested to
define opDollar as the end of the array rather than the length
(and perhaps rename opDollar
On Friday, 1 June 2012 at 15:38:44 UTC, Jonathan M Davis wrote:
On Friday, June 01, 2012 17:57:51 d coder wrote:
Greetings
I know there is a plan for D to have AST macros eventually. I
wanted to
know if it is a feature being worked upon at this point of
time.
Approximately how long it would
On Saturday, 2 June 2012 at 11:48:24 UTC, Oleg wrote:
how about this? http://www.dsource.org/site/donate
DSource has mostly become a graveyard for orphaned project these
days, unfortunately. I wouldn't encourage donating at this point
if you want to »invest« in the future of D, although
https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/simpledisplay.d
?
On Saturday, 2 June 2012 at 17:33:04 UTC, Max Samukha wrote:
(of function pointer) type, so you will have to go hacky. It is
easiest to use std.functional.toDelegate (don't ask why it is in
std.functional):
s/of function pointer/or function pointer/
On Sat, 2012-06-02 at 13:44 +0200, Jacob Carlborg wrote:
http://digitalmars.com/gift/index.html
The second one with the 4 Macroscopic Maxwell Equations, perhaps ought
to be replaced with one using the far more sophisticated 4-vector
representation:
∇²A = J
I just love using the proper
02.06.2012 9:53, Jonathan M Davis написал:
No. It simply means that all of the letters of an acronym are always the same
case.
Good!
--
Денис В. Шеломовский
Denis V. Shelomovskij
On 2012-06-02 13:40, d coder wrote:
Greetings All
Using DMD 2.059, the following code does not compile. DMD does not allow
me to apply stringof on a function alias of a function that takes one or
more arguments. It compiles and runs fine for functions that do not take
any arguments.
Is it a
On Friday, 1 June 2012 at 14:33:59 UTC, d coder wrote:
Steve
One small thing. As you said I might declare a delegate in an
alternate
fashion that is by saying void delegate() dg;.
But would it be possible to rewrite the following declaration
in a way that
avoids naming foo explicitly. I
On Friday, 1 June 2012 at 17:07:57 UTC, Sandeep Datta wrote:
I would add that fptr = function; makes it _clear_ what is
going on
there, otherwise I would have to go and find what function
is...
There are two contradictory issues at work here which need to
be balanced with each other...
1.
At the moment, the ref-ness of the return type is not determined
correctly because of a compiler bug. Otherwise, that works mostly
fine.
Thank you Max for showing me toDelegate. But I find that it does not work
even for function arguments with default values. So for the moment I will
trod
On 6/2/2012 4:42 AM, Jacob Carlborg wrote:
On Saturday, 2 June 2012 at 11:22:16 UTC, Oleg wrote:
Hello everybody, i am interesting about D language, and i think many
programmers would like to advance in popularity D language, can we give
donations to D development and how?
I think Walter
On Saturday, 2 June 2012 at 17:37:46 UTC, Russel Winder wrote:
On Sat, 2012-06-02 at 13:44 +0200, Jacob Carlborg wrote:
http://digitalmars.com/gift/index.html
The second one with the 4 Macroscopic Maxwell Equations,
perhaps ought
to be replaced with one using the far more sophisticated
On Friday, 25 May 2012 at 22:30:30 UTC, Nick Sabalausky wrote:
Well, realistically 128MB for XP, and even that was back around
2000 or so.
I'm not really sure what the heck exactly happened (Just web
sites? Or
something more?), but these days, even on XP, 1GB is really
bare minimum.
That's
Roman Ivanov isroman@ete.km.ru wrote in message
news:jqbnii$pgs$1...@digitalmars.com...
On 5/24/2012 4:45 PM, Nick Sabalausky wrote:
Mirko Pilger pil...@cymotec.de wrote in message
news:jpl36q$sta$1...@digitalmars.com...
And Vista doesn't pop-up tons of shit everytime the pointer gets
On Wednesday, 30 May 2012 at 18:53:26 UTC, Alex Rønne Petersen
wrote:
We're moving towards using ASCII rather than Ascii as the
naming style for abbreviations.
I don't agree with this style. Camel case employs capitalization
as a word delineation cue in lieu of spaces. Incorporating
On Tuesday, 22 May 2012 at 11:56:36 UTC, Paulo Pinto wrote:
Make up your fucking mind, MS.
It's called Marketing and Sales department.
Every company that sells commercial products needs to keep
adding the next big thing to their product as a means to sell
the product to existing users.
On Saturday, 2 June 2012 at 21:01:03 UTC, John Belmonte wrote:
On Wednesday, 30 May 2012 at 18:53:26 UTC, Alex Rønne Petersen
wrote:
We're moving towards using ASCII rather than Ascii as the
naming style for abbreviations.
I don't agree with this style. Camel case employs
capitalization as
On 03-06-2012 01:55, q66 wrote:
On Saturday, 2 June 2012 at 21:01:03 UTC, John Belmonte wrote:
On Wednesday, 30 May 2012 at 18:53:26 UTC, Alex Rønne Petersen wrote:
We're moving towards using ASCII rather than Ascii as the naming
style for abbreviations.
I don't agree with this style. Camel
Am 03.06.2012 00:37, schrieb Zardoz:
On Tuesday, 22 May 2012 at 11:56:36 UTC, Paulo Pinto wrote:
Make up your fucking mind, MS.
It's called Marketing and Sales department.
Every company that sells commercial products needs to keep adding the
next big thing to their product as a means to sell
On 02.06.2012 3:28, Era Scarecrow wrote:
On Friday, 1 June 2012 at 23:14:14 UTC, Dmitry Olshansky wrote:
There is also cast() that just cancels out all const/shared/immutable.
Only the first level, transitive const/immutable don't go away in my
experience. Perhaps I'm doing it wrong, or
Дмитрий,не подскажите как я бы мог
проверить не баг ли это?
On 02.06.2012 11:23, Zhenya wrote:
Дмитрий,не подскажите как я бы мог проверить не баг ли это?
Как я и говорил отписать что это баг. Дальше это дело экспертов по
компилятору )
Вот например последние что ты отипсывал, вполне катит для bug-репорта:
(только сократи лишний внешний код)
this
Куда отписать-то?)
On 02.06.2012 11:30, Zhenya wrote:
Куда отписать-то?)
http://d.puremagic.com/issues/
--
Dmitry Olshansky
Is that a joke? :D
This Code throw the error, that a call of Load matches both
functions.
How is that possible? Even in php that works fine. Any
workarounds?
I can not believe that such a simple error still exists in D.
[code]
import std.stdio;
class Foo {
public:
static Foo Load()
On Saturday, 2 June 2012 at 08:06:57 UTC, Namespace wrote:
Is that a joke? :D
This Code throw the error, that a call of Load matches both
functions.
How is that possible? Even in php that works fine. Any
workarounds?
I can not believe that such a simple error still exists in D.
[code]
I'm not sure, but it seems that this is a bug.
On 02.06.2012 12:06, Namespace wrote:
Is that a joke? :D
This Code throw the error, that a call of Load matches both functions.
How is that possible? Even in php that works fine. Any workarounds?
I can not believe that such a simple error still exists in D.
[code]
import std.stdio;
class Foo
On Saturday, June 02, 2012 10:14:51 Zhenya wrote:
I'm not sure, but it seems that this is a bug.
It's not. If nothing else, it's perfectly legal to call a static function with
an instance. e.g.
class C
{
static void func() {}
}
auto c = new C;
c.func();
So, that creates an ambiguity if a
Understand)
On Saturday, 2 June 2012 at 08:24:16 UTC, Jonathan M Davis wrote:
On Saturday, June 02, 2012 10:14:51 Zhenya wrote:
I'm not sure, but it seems that this is a bug.
It's not. If nothing else, it's perfectly legal to call a
static function with
an instance. e.g.
class C
{
static void
Jonathan M Davis:
Personally, I wish that it weren't legal to call a static
function with an
object and that you had to explicitly use the class,
I agree.
Bye,
bearophile
On Jun 2, 2012 6:38 AM, bearophile bearophileh...@lycos.com wrote:
Jonathan M Davis:
Personally, I wish that it weren't legal to call a static function with
an
object and that you had to explicitly use the class,
I agree.
Bye,
bearophile
Same here, D 3.0?
On 02.06.2012 14:39, Kevin Cox wrote:
On Jun 2, 2012 6:38 AM, bearophile bearophileh...@lycos.com
mailto:bearophileh...@lycos.com wrote:
Jonathan M Davis:
Personally, I wish that it weren't legal to call a static function
with an
object and that you had to explicitly use the class,
consider this:
import std.stdio;
import std.string;
alias void delegate() dlgt;
int main()
{
dlgt[] dgs;
string[] lines = [line A, line B, line C];
foreach(line; lines)
{
writeln(line);
dgs ~= { writeln(line); };
Tobias Pankrath:
How can I store the string of the current iteration with a
delegate?
You need to create a closure (D main returns 0 automatically):
import std.stdio, std.string;
void main() {
auto lines = [line A, line B, line C];
void delegate()[] delegates;
foreach (line;
On 06/02/12 14:01, Tobias Pankrath wrote:
consider this:
import std.stdio;
import std.string;
alias void delegate() dlgt;
int main()
{
dlgt[] dgs;
string[] lines = [line A, line B, line C];
foreach(line; lines)
{
On Sat, Jun 02, 2012 at 01:23:50AM -0700, Jonathan M Davis wrote:
[...]
Personally, I wish that it weren't legal to call a static function
with an object and that you had to explicitly use the class, but
that's not the way that it is in D, C++, and Java (and probably the
same for C#, though
Now the similarity to the original quickserver library in java is
so ripped off that I had an email sent over to the author asking
for permission to continue on the api clone or alternatively
change the api. Comments or suggestions? sucks totally or worth a
penny?
Hi,
This following code won't compile :
import std.stdio;
import std.format;
void main()
{
auto f = File(myfile.txt, r);
uint life;
formattedRead(f.readln(), Life %s, life); // Error 1
formattedRead(cast(string)f.readln(), Life %s, life);
// Error 1
On 2012-06-02 10:06, Namespace wrote:
Is that a joke? :D
This Code throw the error, that a call of Load matches both functions.
How is that possible? Even in php that works fine. Any workarounds?
I can not believe that such a simple error still exists in D.
[code]
import std.stdio;
class Foo
Thank you. That works.
On Saturday, June 02, 2012 14:49:39 Dmitry Olshansky wrote:
Generic programming benefits from it in certain scenarios
This is brought up periodically, and I don't really buy it. _Maybe_ there's a
scenario where it would help, but typeof makes it trivial to get the type so
that you can call a
On Saturday, June 02, 2012 18:40:38 Jacob Carlborg wrote:
http://d.puremagic.com/issues/show_bug.cgi?id=3345
Ah, there it is! I was _sure_ that a report for it existed, but I couldn't find
it (probably because I was searching for overload and didn't think to search
for name).
- Jonathan M
On Saturday, June 02, 2012 08:41:17 H. S. Teoh wrote:
On Sat, Jun 02, 2012 at 01:23:50AM -0700, Jonathan M Davis wrote:
[...]
Personally, I wish that it weren't legal to call a static function
with an object and that you had to explicitly use the class, but
that's not the way that it is
On 6/2/12, Jonathan M Davis jmdavisp...@gmx.com wrote:
The trick is getting Walter to agree.
The trick is getting all the people that bought TDPL to burn their
books, because by the time all these new changes are set in place the
book will have as much dead weight to it as dsource.org. It
On 2012-06-02 19:59, Jonathan M Davis wrote:
On Saturday, June 02, 2012 18:40:38 Jacob Carlborg wrote:
http://d.puremagic.com/issues/show_bug.cgi?id=3345
Ah, there it is! I was _sure_ that a report for it existed, but I couldn't find
it (probably because I was searching for overload and
I've seen a few messages asking how to get this to work and the
replies that were functional involved snagging the console input
handle and trolling for keyboard events yourself. Since that
code is inside the standard library (at least for DMD) I figured
out the proper mix to make it work.
http://d.puremagic.com/issues/show_bug.cgi?id=8185
Summary: Pure functions and pointers
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: spec
Severity: major
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=8185
klickverbot c...@klickverbot.at changed:
What|Removed |Added
CC||c...@klickverbot.at
http://d.puremagic.com/issues/show_bug.cgi?id=7899
--- Comment #3 from thelastmamm...@gmail.com 2012-06-02 02:23:01 PDT ---
Actually there seems to be a bug in the tools/update.sh provided which is
supposed to download and build all:
From git://github.com/D-Programming-Language/tools
* branch
http://d.puremagic.com/issues/show_bug.cgi?id=8186
Summary: Formatting class object has an alias this to int*
field is broken.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords:
http://d.puremagic.com/issues/show_bug.cgi?id=8186
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||pull
--- Comment #1
http://d.puremagic.com/issues/show_bug.cgi?id=8185
--- Comment #3 from Denis Shelomovskij verylonglogin@gmail.com 2012-06-02
14:29:01 MSD ---
(In reply to comment #1)
The current behavior is by design, and perfectly fine – note that `pure` in D
just means that a function doesn't access
http://d.puremagic.com/issues/show_bug.cgi?id=8133
d...@dawgfoto.de changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=7995
--- Comment #7 from d...@dawgfoto.de 2012-06-02 03:32:07 PDT ---
*** Issue 8133 has been marked as a duplicate of this issue. ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this
http://d.puremagic.com/issues/show_bug.cgi?id=8186
--- Comment #2 from github-bugzi...@puremagic.com 2012-06-02 05:00:15 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos
http://d.puremagic.com/issues/show_bug.cgi?id=8186
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=8185
klickverbot c...@klickverbot.at changed:
What|Removed |Added
Severity|enhancement |normal
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=8185
art.08...@gmail.com changed:
What|Removed |Added
CC||art.08...@gmail.com
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=8185
--- Comment #6 from Denis Shelomovskij verylonglogin@gmail.com 2012-06-02
19:59:12 MSD ---
(In reply to comment #4)
(In reply to comment #3)
assert(res == f(arr.ptr + 1)); // *p isn't changed
Might fail, f is allowed to return
http://d.puremagic.com/issues/show_bug.cgi?id=8187
Summary: replaceFirst doesn't work for string[] haystack
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=6579
art.08...@gmail.com changed:
What|Removed |Added
CC||art.08...@gmail.com
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=4510
--- Comment #4 from github-bugzi...@puremagic.com 2012-06-02 15:22:04 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd
http://d.puremagic.com/issues/show_bug.cgi?id=5435
--- Comment #5 from github-bugzi...@puremagic.com 2012-06-02 15:22:11 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd
http://d.puremagic.com/issues/show_bug.cgi?id=8185
Steven Schveighoffer schvei...@yahoo.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=4510
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=3290
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=5435
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|REOPENED|RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=8129
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Keywords||rejects-valid
http://d.puremagic.com/issues/show_bug.cgi?id=8185
Jonathan M Davis jmdavisp...@gmx.com changed:
What|Removed |Added
CC|
did it work for you? gdb still gives me mangled symbols on osx
(even gdb 7.3 installed from source)
94 matches
Mail list logo