Re: core.exception.InvalidMemoryOperationError@(0)

2015-01-25 Thread Bayan Rafeh via Digitalmars-d-learn
On Sunday, 25 January 2015 at 08:39:42 UTC, Bayan Rafeh wrote: On Sunday, 25 January 2015 at 00:43:43 UTC, Vladimir Panteleev wrote: On Saturday, 24 January 2015 at 12:16:38 UTC, Bayan Rafeh wrote: This problem is a tough one. I've been getting this error when I run my unittests, and

Re: core.exception.InvalidMemoryOperationError@(0)

2015-01-25 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 25 January 2015 at 08:41:25 UTC, Bayan Rafeh wrote: The solution was just to remove the delete a from the destructor if someone comes across this later. Could someone tell me why though? The non-reentrant bit applies to all GC operations, really - not just allocations. Explicit

[Issue 13858] Wrong warning about unreachable code with break/goto case

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13858 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

Re: dlang.org redesign -- the state of documentation and learning resources [part 2]

2015-01-25 Thread Andrej Mitrovic via Digitalmars-d
On 1/23/15, aldanor via Digitalmars-d digitalmars-d@puremagic.com wrote: In continuing the series of rant posts about the website, this one will be about the documentation. Excellent points. In fact this kind of feedback is exactly what we need, to learn what it's like for someone new who just

Re: std.experimental.logger formal review round 3

2015-01-25 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-24 18:45, Robert burner Schadek wrote: I will fix the bug this weekend and rebase to upstream/master. The alias doc has seen some updates this week (please check the rebuild gh-pages, links are in the PR description) Is the generated documentation for package module available

Re: Calypso and the future of D

2015-01-25 Thread Kelly via Digitalmars-d
On Sunday, 25 January 2015 at 10:18:34 UTC, Walter Bright wrote: I'm sorry, but it still far from clear just what Calypso does. Suppose I have a C++ file, test.cpp, that contains: int foo(unsigned *p); How do I use Calypso to interface with that from D: ... what happens here ? ...

[Issue 13858] Wrong warning about unreachable code with break/goto case

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13858 --- Comment #5 from github-bugzi...@puremagic.com --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7ba6bac8d7f3433610b8a9cc9e0dfa8d887628c0 fix Issue 13858 - Wrong

Re: London D Programmers MeetUp

2015-01-25 Thread Russel Winder via Digitalmars-d-announce
On Thu, 2015-01-22 at 22:12 +, Kingsley via Digitalmars-d-announce wrote: We now have a venue for the London D meetup. Skills Matter have kindly offered us their support. The first meetup will be Tuesday 3rd February - see details here: http://www.meetup.com/London-D-Programmers/

Re: Calypso and the future of D

2015-01-25 Thread Walter Bright via Digitalmars-d
On 1/24/2015 5:26 PM, Elie Morisse wrote: The README should be clearer now about what Calypso is supposed to do, links to the showcase example which I improved and expanded with a template partial and explicit spec example, and explains how to build it and link it to a C++ library. (thanks to

Re: crash on args.getopt

2015-01-25 Thread Tobias Pankrath via Digitalmars-d-learn
On Sunday, 25 January 2015 at 10:21:34 UTC, Suliman wrote: But is it good practice to fail with exception during passing unknown parameters? Maybe std.getopt.config.passThrough should be as default? I really can't remember Apps that crush if pass to in unknown parameters. Almost all

DMD compiler platform documentation AWOL

2015-01-25 Thread John Chapman via Digitalmars-d
Looks like the documentation for DMD's command line switches and platform-specific information has disappeared from the site. It used to live under Downloads Tools in menus labelled Linux notes, Windows notes etc.

Re: using the full range of ubyte with iota

2015-01-25 Thread bearophile via Digitalmars-d-learn
Vlad Levenfeld: What's this about !`[]` and std.range.uniform?? It's not in the documentation. It's an enhancement I have proposed. Bye, bearophile

Re: DMD compiler platform documentation AWOL

2015-01-25 Thread Joakim via Digitalmars-d
On Sunday, 25 January 2015 at 10:41:10 UTC, John Chapman wrote: Looks like the documentation for DMD's command line switches and platform-specific information has disappeared from the site. It used to live under Downloads Tools in menus labelled Linux notes, Windows notes etc. I noticed

[Issue 9889] Incorrect rounding on floating value formatting

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9889 --- Comment #5 from Denis Shelomovskij verylonglogin@gmail.com --- (In reply to Andrei Alexandrescu from comment #2) Closing preemptively according to http://forum.dlang.org/thread/fsmjexsfxtqveqffi...@forum.dlang.org#post-

[Issue 13963] BigInt modulo ulong is rejected

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13963 mfx mar...@oberhumer.com changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

Re: core.exception.InvalidMemoryOperationError@(0)

2015-01-25 Thread Bayan Rafeh via Digitalmars-d-learn
On Sunday, 25 January 2015 at 00:43:43 UTC, Vladimir Panteleev wrote: On Saturday, 24 January 2015 at 12:16:38 UTC, Bayan Rafeh wrote: This problem is a tough one. I've been getting this error when I run my unittests, and apparently it is caused by attempting an allocation in the destructor

[Issue 13963] BigInt modulo ulong is rejected

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13963 --- Comment #4 from mfx mar...@oberhumer.com --- This patch seems to fix the issue for me. The unittest will still have to get updated. --- dmd-phobos.git/std/bigint.d 2015-01-25 06:45:36.0 +0100 +++ bigint.d2015-01-25 10:34:57.0

Re: crash on args.getopt

2015-01-25 Thread Suliman via Digitalmars-d-learn
But is it good practice to fail with exception during passing unknown parameters? Maybe std.getopt.config.passThrough should be as default? I really can't remember Apps that crush if pass to in unknown parameters.

[Issue 12620] Compiler picks lesser template specialization match for float array alias value parameters

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12620 mfx mar...@oberhumer.com changed: What|Removed |Added CC||mar...@oberhumer.com --- Comment

std.zip

2015-01-25 Thread AndyC via Digitalmars-d
I was looking at this bug report: https://issues.dlang.org/show_bug.cgi?id=2138 and sure enough it doesn't handle zipfiles with more than 65K files. and I checked the code and its pretty limited on what it will even read. Which got me to wondering, why reinvent the wheel? Can std.zip

Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe

2015-01-25 Thread AndyC via Digitalmars-d
On Sunday, 25 January 2015 at 16:09:59 UTC, FrankLike wrote: Many people want to display their string(ANSI),but always to convert string by 'toMBSz',and it can't convert to immutable char[],it's difficult to display their ANSI string in CMD.EXE. What do you think? But .. some people

Re: DlangUI project update

2015-01-25 Thread John Colvin via Digitalmars-d-announce
On Sunday, 25 January 2015 at 13:37:33 UTC, Suliman wrote: I removed all dub cash by hand and now I have got error: C:\Users\Dima\AppData\Roaming\dub\packages\derelict-sdl2-1.9.1\source\derelict\s dl2\sdl.d(62): Error: undefined identifier SharedLibVersion Don't know why you're getting that,

Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe

2015-01-25 Thread FrankLike via Digitalmars-d
On Sunday, 25 January 2015 at 16:22:20 UTC, AndyC wrote: http://superuser.com/questions/269818/change-default-code-page-of-windows-console-to-utf-8 We can use 'chcp 65001',but for exe'consumer,it's difficult to use. Exe'Consumer! they are difficult to use!

Re: London D Programmers MeetUp

2015-01-25 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/25/15 1:22 AM, Russel Winder via Digitalmars-d-announce wrote: On Thu, 2015-01-22 at 22:12 +, Kingsley via Digitalmars-d-announce wrote: We now have a venue for the London D meetup. Skills Matter have kindly offered us their support. The first meetup will be Tuesday 3rd February - see

[Issue 12572] pragma(lib, curl) and -Lcurl broken

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12572 AndyC a...@squeakycode.net changed: What|Removed |Added CC||a...@squeakycode.net ---

[Issue 14043] New: Undefined reference error when compiling some functions with -inline

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14043 Issue ID: 14043 Summary: Undefined reference error when compiling some functions with -inline Product: D Version: D2 Hardware: x86_64 OS: Linux

Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe

2015-01-25 Thread FrankLike via Digitalmars-d
Many people want to display their string(ANSI),but always to convert string by 'toMBSz',and it can't convert to immutable char[],it's difficult to display their ANSI string in CMD.EXE. We can use 'chcp 65001',but for exe'consumer,it's difficult to use. Now,I find a function,if add it in

Re: What to do with InvalidMemoryOperationError

2015-01-25 Thread Nordlöw
On Sunday, 25 January 2015 at 00:44:07 UTC, Vladimir Panteleev wrote: I created a wiki page which I hope will help you solve this problem: http://wiki.dlang.org/InvalidMemoryOperationError Hope this helps. Great! Thanks!

Re: Bugzilla

2015-01-25 Thread Daniel Murphy via Digitalmars-d
AndyC wrote in message news:dfqsgnkuimlxvsotp...@forum.dlang.org... I mean the really old reports, that are obviously no longer an issue (depricated units, fixed, bad report, etc) like these: https://issues.dlang.org/show_bug.cgi?id=4718 https://issues.dlang.org/show_bug.cgi?id=4310

Re: crash on args.getopt

2015-01-25 Thread FG via Digitalmars-d-learn
On 2015-01-25 at 11:42, Tobias Pankrath wrote: On Sunday, 25 January 2015 at 10:21:34 UTC, Suliman wrote: But is it good practice to fail with exception during passing unknown parameters? Maybe std.getopt.config.passThrough should be as default? I really can't remember Apps that crush if pass

Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe

2015-01-25 Thread FrankLike via Digitalmars-d
On Sunday, 25 January 2015 at 16:33:51 UTC, FrankLike wrote: Perhaps: import std.windows.charset; import std.conv; then: writeln(to!(string)(toMBSz(utf8))); Why not switch by Version: version(Windows) { writeln(to!(string)(toMBSz(utf8))); } else version(linux) { ... }

[Issue 14044] dmd generates spurious functions in object file created from empty module

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14044 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added OS|Mac OS X|All --

[Issue 14044] New: dmd generates spurious functions in object file created from empty module

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14044 Issue ID: 14044 Summary: dmd generates spurious functions in object file created from empty module Product: D Version: D2 Hardware: x86 OS: Mac OS X

2.067 should modify writeln function, make it display correctly unicode characters in CMD. Exe

2015-01-25 Thread FrankLike via Digitalmars-d
Many people want to display their string(unicode),but always to convert string by 'toMBSz',and it can't convert to immutable char[],it's difficult to display their unicode string in CMD.EXE. Now,I find a function,if add it in 'writeln' function,D will very be popular! string toMBS(string s,

[Issue 13858] Wrong warning about unreachable code with break/goto case

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13858 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/49c12da0d1bb308597ab7ba67161ff0d7041207a fix Issue 13858 - Wrong

[Issue 13858] Wrong warning about unreachable code with break/goto case

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13858 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4310] variadic templates article example code uses std.stdarg incorrectly

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4310 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx

Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe

2015-01-25 Thread FrankLike via Digitalmars-d
On Sunday, 25 January 2015 at 16:22:20 UTC, AndyC wrote: On Sunday, 25 January 2015 at 16:09:59 UTC, FrankLike wrote: Many people want to display their string(ANSI),but always to convert string by 'toMBSz',and it can't convert to immutable char[],it's difficult to display their ANSI string

[Issue 13963] BigInt modulo ulong is rejected

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13963 --- Comment #5 from e10s electrolysis.j...@gmail.com --- Thank you for your report! However, it's beyond the range of this issue. I hope you will report it as a different one ;) Furthermore, I think the -0 problem and the uint problem should be

[Issue 9731] Ddoc should output per-paragraph macro instead of $(DDOC_BLANKLINE)

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9731 hst...@quickfur.ath.cx changed: What|Removed |Added Keywords||pull --- Comment #2 from

[Issue 9495] Win64 vararg issue when first argument is 8 byte

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9495 github-bugzi...@puremagic.com changed: What|Removed |Added Status|REOPENED|RESOLVED

[Issue 9495] Win64 vararg issue when first argument is 8 byte

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9495 --- Comment #9 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/153a0de0d89d36ae54d497d38fc9ea2f19969ea6 Merge pull request

[Issue 9495] Win64 vararg issue when first argument is 8 byte

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9495 --- Comment #10 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/185b0ab5fdef3592b0a9bdd2d0fef32dfb59c1e7 Fix Issue 9495 - Win64

Re: using the full range of ubyte with iota

2015-01-25 Thread Dominikus Dittes Scherkl via Digitalmars-d-learn
On Sunday, 25 January 2015 at 10:42:51 UTC, bearophile wrote: Vlad Levenfeld: What's this about !`[]` and std.range.uniform?? It's not in the documentation. It's an enhancement I have proposed. Hm. I had more something in mind like paramCast - a kind of big scissors that cut everything a

Re: using the full range of ubyte with iota

2015-01-25 Thread Tobias Pankrath via Digitalmars-d-learn
On Sunday, 25 January 2015 at 12:25:35 UTC, Dominikus Dittes Scherkl wrote: map!(x = fn(cast(ParameterTypeTuple!fn[0])x) but instead with map!(paramCast!fn) Because this is useful in more situations, e.g. in every place where you know the values would fit into the parameter (and for a

Re: DlangUI project update

2015-01-25 Thread Suliman via Digitalmars-d-announce
$ dub clean $ dub build --force Some inconsistency in build caches I bet. Not help :(

Re: DlangUI project update

2015-01-25 Thread Suliman via Digitalmars-d-announce
I removed all dub cash by hand and now I have got error: C:\Users\Dima\AppData\Roaming\dub\packages\derelict-sdl2-1.9.1\source\derelict\s dl2\sdl.d(62): Error: undefined identifier SharedLibVersion

Re: using the full range of ubyte with iota

2015-01-25 Thread Dominikus Dittes Scherkl via Digitalmars-d-learn
On Sunday, 25 January 2015 at 13:03:16 UTC, bearophile wrote: Dominikus Dittes Scherkl: Because this is useful in more situations, Right, but it's still a cast. And in D you want to minimize the number of usages of casts. The proposed syntax iota![] is cast-safe. I don't case too much,

Re: Link errors with curl, libevent, OpenSSL

2015-01-25 Thread AndyC via Digitalmars-d-learn
On Sunday, 25 January 2015 at 15:11:33 UTC, AndyC wrote: On Sunday, 25 January 2015 at 05:48:26 UTC, Vladimir Panteleev wrote: On my Ubuntu Server, I can't link any D program which uses libraries other than Phobos. Example: // import std.net.curl; import

defunct / stale forums on front page

2015-01-25 Thread Laeeth Isharc via Digitalmars-d
When one checks out the D community / forums, one is confronted with a long list of forums, most of which fall into the categories: not relating to D, defunct, very low activity. This is initially a bit confusing, and is not very crisp. Is it worth having only the active ones displayed with a

Re: Conflicts with Import error - New to D, trying to build a new project

2015-01-25 Thread Gan via Digitalmars-d-learn
Thanks. I didn't realize that could conflict. On Sunday, 25 January 2015 at 21:22:50 UTC, Ali Çehreli wrote: On 01/25/2015 11:30 AM, Gan wrote: Here's a screenshot: http://cl.ly/image/2n282v0B1X2M The error is: /Users/Matt/Projects/spacecraft/source/Game/Game.d(0,0): Error: class

Re: Calypso and the future of D

2015-01-25 Thread Walter Bright via Digitalmars-d
On 1/25/2015 1:36 PM, John Colvin wrote: On Sunday, 25 January 2015 at 20:45:26 UTC, Walter Bright wrote: Calypso registers itself as a language plugin, and when parse.c encounters parse.c is not part of my project. Where is parse.c? here?

Re: defunct / stale forums on front page

2015-01-25 Thread Rikki Cattermole via Digitalmars-d
On 26/01/2015 11:41 a.m., Laeeth Isharc wrote: When one checks out the D community / forums, one is confronted with a long list of forums, most of which fall into the categories: not relating to D, defunct, very low activity. This is initially a bit confusing, and is not very crisp. Is it

Re: core.exception.InvalidMemoryOperationError@(0)

2015-01-25 Thread Ali Çehreli via Digitalmars-d-learn
On 01/25/2015 02:06 PM, Bayan Rafeh wrote: is invariant() called during the destruction phase? Something is fishy. import std.stdio; void main(){ writeln(entered main); auto a = new A(); writeln(leaving main); } class A { File file; this() { writeln(this);

Re: Calypso and the future of D

2015-01-25 Thread Elie Morisse via Digitalmars-d
On Sunday, 25 January 2015 at 22:45:31 UTC, Walter Bright wrote: Not what I meant. What does parse.c have to do with the user of Calypso? How does the user use Calypso? Where is Calypso? How do I run Calypso? A user of Calypso will be baffled when encountering user documentation of Calypso

Re: core.exception.InvalidMemoryOperationError@(0)

2015-01-25 Thread Bayan Rafeh via Digitalmars-d-learn
On Sunday, 25 January 2015 at 22:46:56 UTC, Ali Çehreli wrote: On 01/25/2015 02:06 PM, Bayan Rafeh wrote: is invariant() called during the destruction phase? Something is fishy. import std.stdio; void main(){ writeln(entered main); auto a = new A(); writeln(leaving main); }

Re: std.zip

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 02:33:26 +, Laeeth Isharc wrote: On Monday, 26 January 2015 at 02:17:29 UTC, ketmar wrote: On Mon, 26 Jan 2015 02:09:17 +, Laeeth Isharc wrote: Is it worth creating a higher tier within code.dlang.org of libraries considered to be of high quality that may have a

Re: defunct / stale forums on front page

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 03:17:54 +, Vladimir Panteleev wrote: On Monday, 26 January 2015 at 03:14:00 UTC, ketmar wrote: On Mon, 26 Jan 2015 02:36:29 +, Vladimir Panteleev wrote: On Monday, 26 January 2015 at 02:13:44 UTC, ketmar wrote: On Mon, 26 Jan 2015 02:00:01 +, Laeeth Isharc

Re: defunct / stale forums on front page

2015-01-25 Thread Kiith-Sa via Digitalmars-d
On Monday, 26 January 2015 at 03:17:55 UTC, Vladimir Panteleev wrote: On Monday, 26 January 2015 at 03:14:00 UTC, ketmar wrote: On Mon, 26 Jan 2015 02:36:29 +, Vladimir Panteleev wrote: On Monday, 26 January 2015 at 02:13:44 UTC, ketmar wrote: On Mon, 26 Jan 2015 02:00:01 +, Laeeth

Re: std.zip

2015-01-25 Thread weaselcat via Digitalmars-d
On Monday, 26 January 2015 at 02:09:18 UTC, Laeeth Isharc wrote: On Sunday, 25 January 2015 at 21:19:59 UTC, ketmar wrote: On Sun, 25 Jan 2015 20:56:04 +, AndyC wrote: Its handy, yes, until you hit one of its many limitations, then what will you do? i didn't come into any limitations

Re: Turning Executable into Application?

2015-01-25 Thread Laeeth Isharc via Digitalmars-d-learn
On Monday, 26 January 2015 at 03:36:32 UTC, Gan wrote: With Xamarin Studio I create a D project and run it. It runs an Executable Unix file through the terminal. How can I turn that into an Application that doesn't open the Terminal? Thanks. Have you tried running your executable from the

Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe

2015-01-25 Thread Dmitry via Digitalmars-d
On Sunday, 25 January 2015 at 21:59:41 UTC, FrankLike wrote: If you don't modify the font,display will be bad. Indeed. Although in my case it is not necessary (it shows the localized texts in the localized os - so, default fonts supports it language).

Re: This Week in D, Issue 3

2015-01-25 Thread Adam D. Ruppe via Digitalmars-d-announce
On Monday, 26 January 2015 at 05:26:23 UTC, Ali Çehreli wrote: There is an exposed $P tag on the page: Ooops, fixed. Thanks! (remember to refresh to skip your browser cache)

[Issue 11981] unittest 'host' deadlock

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11981 --- Comment #23 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/e8f6550709c42ef5f62d56bd92a36466fc3c3e3a don't suspend

[Issue 9731] Ddoc should output per-paragraph macro instead of $(DDOC_BLANKLINE)

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9731 --- Comment #3 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0f97ab5a73241782cc7e621ddca22b6b35909d6b Merge pull request #4338 from

Re: This Week in D, Issue 3

2015-01-25 Thread weaselcat via Digitalmars-d-announce
On Monday, 26 January 2015 at 05:15:51 UTC, Adam D. Ruppe wrote: I've been out of town this week and also dealing with trying to remotely find my lost dog (she got away from the sitter... and no luck yet :( ) so I haven't been as active as I often am in the D community, but I still made time

Question about Allocating

2015-01-25 Thread Gan via Digitalmars-d-learn
I've been working on my game and am getting some pretty gnarly memory problems. I think it's how I'm allocating. Sometimes when I use variables I can do Color(255, 255, 255). But why is that different than new Color(255, 255, 255)? Same when I'm making arrays. new int[](0) vs []. What's the

vibe.d error

2015-01-25 Thread Phil via Digitalmars-d-learn
dub init name vibe.d cd name dub Results in Fetching libevent 2.0.1+2.0.16... Error executing command upgrade: Failed to download http://code.dlang.org/packages/libevent/2.0.1%252B2.0.16.zip: 404 Not Found I'm not sure if the error is the file not being there or dub looking there. Is there

[Issue 6880] Heisenbug: deferred crash when writing to stdout on Windows without console.

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6880 AndyC a...@squeakycode.net changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe

2015-01-25 Thread Suliman via Digitalmars-d
Why we can not simply automatically switch CMD to UTF-8 before app start? I do not see any minuses in this solution.

Czech D community

2015-01-25 Thread Daniel Kozak via Digitalmars-d
Cus, je tady nekdo z ceska? Vlastnim domenu dlang.cz a mam v planu tam rozchodit stranky tykajici se jazyka D (navody, dokumetaci, forum, mozna i neco jako knihu o Decku). Pokud ano a mate zajem se na tom jakkoliv podilet pripadne mate namety na to co by tam melo byt budu rad za jakekoliv

Re: std.zip

2015-01-25 Thread ketmar via Digitalmars-d
On Sun, 25 Jan 2015 16:02:33 +, AndyC wrote: I was looking at this bug report: https://issues.dlang.org/show_bug.cgi?id=2138 and sure enough it doesn't handle zipfiles with more than 65K files. and I checked the code and its pretty limited on what it will even read. Which got me

Re: using the full range of ubyte with iota

2015-01-25 Thread ketmar via Digitalmars-d-learn
On Sun, 25 Jan 2015 14:11:09 +, Dominikus Dittes Scherkl wrote: On Sunday, 25 January 2015 at 13:03:16 UTC, bearophile wrote: Dominikus Dittes Scherkl: Because this is useful in more situations, Right, but it's still a cast. And in D you want to minimize the number of usages of casts.

[Issue 7729] fileno conflict

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7729 AndyC a...@squeakycode.net changed: What|Removed |Added CC||a...@squeakycode.net --- Comment

Re: Czech D community

2015-01-25 Thread Kiith-Sa via Digitalmars-d
Nie som Cech, ale som zo Slovenska (vychod), robim kod pre diplomivku v D (https://github.com/kiith-sa/tharsis-core) a zatial som robil 2 kratke prednasky/workshopy v Kosiciach na propagaciu. Mam podozrenie ze kym sa drasticky nezvysi popularita D, akekolvek ceske/slovenske forum bude mat

[Issue 6880] Heisenbug: deferred crash when writing to stdout on Windows without console.

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6880 --- Comment #7 from Vladimir Panteleev thecybersha...@gmail.com --- You can detect if your program is running in a console with: GetConsoleWindow() != NULL However, this is probably not what you want - instead you want to check if standard output is

[Issue 6880] Heisenbug: deferred crash when writing to stdout on Windows without console.

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6880 --- Comment #6 from Denis Shelomovskij verylonglogin@gmail.com --- (In reply to AndyC from comment #5) Confirmed. Breaks for me to. Do you know if there is a way to detect if a console exists? This information alone doesn't give you much as

Re: Sqlite

2015-01-25 Thread Paul via Digitalmars-d-learn
I'd like to vary the query based on input but if I try to move the string out of the sqlite3_exec call like this: string sqlStatement = CREATE TABLE people(id INT PRIMARY KEY NOT NULL, surname TEXT NOT NULL);; result = sqlite3_exec(db, sqlStatement, aCallback, null, msg); ...it won't

Re: Sqlite

2015-01-25 Thread Tobias Pankrath via Digitalmars-d-learn
On Sunday, 25 January 2015 at 18:15:21 UTC, Paul wrote: I'd like to vary the query based on input but if I try to move the string out of the sqlite3_exec call like this: string sqlStatement = CREATE TABLE people(id INT PRIMARY KEY NOT NULL, surname TEXT NOT NULL);; result = sqlite3_exec(db,

Re: Czech D community

2015-01-25 Thread Daniel Kozak via Digitalmars-d
On Sunday, 25 January 2015 at 18:23:29 UTC, Daniel Kozak wrote: ... make some ... have some :)

Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe

2015-01-25 Thread ketmar via Digitalmars-d
On Sun, 25 Jan 2015 16:55:29 +, FrankLike wrote: On Sunday, 25 January 2015 at 16:22:20 UTC, AndyC wrote: http://superuser.com/questions/269818/change-default-code-page-of- windows-console-to-utf-8 We can use 'chcp 65001',but for exe'consumer,it's difficult to use. Exe'Consumer!

[Issue 7471] Improve performance of std.regex

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7471 AndyC a...@squeakycode.net changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: Czech D community

2015-01-25 Thread Martin Drašar via Digitalmars-d
Dne 25.1.2015 v 19:23 Daniel Kozak via Digitalmars-d napsal(a): Cus, je tady nekdo z ceska? Vlastnim domenu dlang.cz a mam v planu tam rozchodit stranky tykajici se jazyka D (navody, dokumetaci, forum, mozna i neco jako knihu o Decku). Pokud ano a mate zajem se na tom jakkoliv podilet

Re: core.exception.InvalidMemoryOperationError@(0)

2015-01-25 Thread ketmar via Digitalmars-d-learn
On Sun, 25 Jan 2015 08:41:24 +, Bayan Rafeh wrote: I tried what you said and I think I see the problem. I managed to create an example program that duplicates the problem: import std.stdio; class A { string path; this(string p) { path = p; } ~this() {

[Issue 6147] file scheme uri from file path and vice versa

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6147 AndyC a...@squeakycode.net changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 6880] Heisenbug: deferred crash when writing to stdout on Windows without console.

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6880 AndyC a...@squeakycode.net changed: What|Removed |Added CC||a...@squeakycode.net --- Comment

[Issue 6880] Heisenbug: deferred crash when writing to stdout on Windows without console.

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6880 Denis Shelomovskij verylonglogin@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Sqlite

2015-01-25 Thread Paul via Digitalmars-d-learn
On Sunday, 25 January 2015 at 18:19:47 UTC, Tobias Pankrath wrote: Only string literals convert to const(char)*, because only for them it is guaranteed that they are null terminated. For everything else use toStringz. So, as a trivial example, is this how it's done?: string semiC = ;; const

Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe

2015-01-25 Thread Martin Krejcirik via Digitalmars-d
Windows console is broken, I recommend using API functions (WriteConsole) instead.

[Issue 6880] Heisenbug: deferred crash when writing to stdout on Windows without console.

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6880 --- Comment #5 from AndyC a...@squeakycode.net --- Confirmed. Breaks for me to. Do you know if there is a way to detect if a console exists? --

Re: defunct / stale forums on front page

2015-01-25 Thread ketmar via Digitalmars-d
On Sun, 25 Jan 2015 19:37:00 -0800, H. S. Teoh via Digitalmars-d wrote: Shouldn't it be expanded by default and collapsed if JS is available? my uneducated guess is that collapser is not using jquery, so it was able to successfully collaspe the whole thing. and then expander is using jquery,

Re: defunct / stale forums on front page

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 03:35:02 +, Vladimir Panteleev wrote: I see. Your issue is not that JS is disabled, it is that you are selectively blocking components of the webpage. As with any system, it is not unusual that it stops working as designed when you rip out arbitrary parts of it. I

Re: defunct / stale forums on front page

2015-01-25 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 26 January 2015 at 03:43:53 UTC, ketmar wrote: On Sun, 25 Jan 2015 19:37:00 -0800, H. S. Teoh via Digitalmars-d wrote: Shouldn't it be expanded by default and collapsed if JS is available? my uneducated guess is that collapser is not using jquery, so it was able to successfully

Re: defunct / stale forums on front page

2015-01-25 Thread ketmar via Digitalmars-d
On Mon, 26 Jan 2015 03:56:36 +, Vladimir Panteleev wrote: On Monday, 26 January 2015 at 03:43:53 UTC, ketmar wrote: On Sun, 25 Jan 2015 19:37:00 -0800, H. S. Teoh via Digitalmars-d wrote: Shouldn't it be expanded by default and collapsed if JS is available? my uneducated guess is that

[Issue 11467] [CTFE] Overlapping array copy is allowed in CT

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11467 --- Comment #2 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a83ed2534f51c720f2298f68e10b998250a3ecf9 fix Issue 11467 - [CTFE]

[Issue 11467] [CTFE] Overlapping array copy is allowed in CT

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11467 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14024] [CTFE] unstable postblit/destructor call order on static array assignment

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14024 github-bugzi...@puremagic.com changed: What|Removed |Added Status|REOPENED|RESOLVED

[Issue 14024] [CTFE] unstable postblit/destructor call order on static array assignment

2015-01-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14024 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d853be97b1a84d04361ff23e014364bf32b7c7b8 fix Issue 14024 - [CTFE]

Re: DlangUI project update

2015-01-25 Thread Vadim Lopatin via Digitalmars-d-announce
On Sunday, 25 January 2015 at 13:37:33 UTC, Suliman wrote: I removed all dub cash by hand and now I have got error: C:\Users\Dima\AppData\Roaming\dub\packages\derelict-sdl2-1.9.1\source\derelict\s dl2\sdl.d(62): Error: undefined identifier SharedLibVersion Did you try dub upgrade

Re: core.exception.InvalidMemoryOperationError@(0)

2015-01-25 Thread ketmar via Digitalmars-d-learn
On Mon, 26 Jan 2015 05:25:48 +, Bayan Rafeh wrote: There are 2 problems here: 1. By definition, after the destructor is called the object state is destroyed. It makes no sense to check the invariant after the destructor is called because there is no state for us to check. i agree that

  1   2   >