Re: const member function

2015-02-23 Thread ketmar via Digitalmars-d-learn
On Mon, 23 Feb 2015 09:12:33 +, rumbu wrote: On Saturday, 21 February 2015 at 15:26:28 UTC, ketmar wrote: On Sat, 21 Feb 2015 08:27:13 +, rumbu wrote: My question was not how I do this, I know already. My question was if there is another way to safely call a non-const instance

one problem at dlang.org site

2015-02-23 Thread novice2 via Digitalmars-d-learn
sorry - i cant find where i can post this. bugtracker have no dlang.org product. when i click to left menu Standart Library - std - windows - charset then i have error The requested URL /phobos/std_windows_charset.html was not found on this server.

Re: one problem at dlang.org site

2015-02-23 Thread Rikki Cattermole via Digitalmars-d-learn
On 24/02/2015 1:58 a.m., novice2 wrote: sorry - i cant find where i can post this. bugtracker have no dlang.org product. when i click to left menu Standart Library - std - windows - charset then i have error The requested URL /phobos/std_windows_charset.html was not found on this server.

curl password issue

2015-02-23 Thread Andre via Digitalmars-d-learn
Hi, Curl has some issues with passwords containing special characters like the hash key (#). The password will not be accepted although it is correctly set with the method setAuthencication(user, pass1234#); I know this is more a Curl issue than a DLang issue but it is very frustrating and for

Re: To GC or Not To GC in std.container.*

2015-02-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/23/15 3:16 PM, Nordlöw wrote: On Monday, 23 February 2015 at 19:24:32 UTC, Steven Schveighoffer wrote: In answer to your question, RBNode should not be accessible direction outside of RedBlackTree. But we don't have allocators inside of Phobos, so I used the easiest thing I could for

Re: curl password issue

2015-02-23 Thread CraigDillabaugh via Digitalmars-d-learn
On Monday, 23 February 2015 at 17:47:54 UTC, Andre wrote: Until now I didn't found out how to solve the issue excepting changing the password;) In case I find the solution I will make a pull request. Kind regards André On Monday, 23 February 2015 at 16:58:16 UTC, Marc Schütz wrote: On

Re: curl password issue

2015-02-23 Thread Ali Çehreli via Digitalmars-d-learn
On 02/23/2015 09:47 AM, Andre wrote: In case I find the solution I will make a pull request. I think Marc Schütz meant a pull request improving or fixing the documentation. Ali

Re: To GC or Not To GC in std.container.*

2015-02-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/20/15 4:26 PM, Nordlöw wrote: What's the policy on using GC or not in std.container.* ? - std.container.Array uses malloc for its allocation but - RedBlackTree.allocate() returns a: new RBNode!Elem* Is this because RBNode* should be reachable outside of RedBlackTree or is this a todo?

Re: To GC or Not To GC in std.container.*

2015-02-23 Thread Nordlöw
On Monday, 23 February 2015 at 19:24:32 UTC, Steven Schveighoffer wrote: In answer to your question, RBNode should not be accessible direction outside of RedBlackTree. But we don't have allocators inside of Phobos, so I used the easiest thing I could for portability. -Steve Does this mean

Re: const member function

2015-02-23 Thread rumbu via Digitalmars-d-learn
On Saturday, 21 February 2015 at 15:26:28 UTC, ketmar wrote: On Sat, 21 Feb 2015 08:27:13 +, rumbu wrote: My question was not how I do this, I know already. My question was if there is another way to safely call a non-const instance function on a const object. is there a way to been

Re: curl password issue

2015-02-23 Thread Charles via Digitalmars-d-learn
On Tuesday, 24 February 2015 at 00:20:45 UTC, Martin Nowak wrote: On Monday, 23 February 2015 at 16:10:42 UTC, Andre wrote: Curl has some issues with passwords containing special characters like the hash key (#). I don't found any reference for this issue in curl and the D wrapper hardly

Re: how to stop a variable from being optimized out

2015-02-23 Thread ketmar via Digitalmars-d-learn
On Tue, 24 Feb 2015 06:29:33 +, Rory wrote: Is there a way I can stop current from being optimized out without using volatile? but why do you need this? just use `atomicLoad` to get shared variable value, it will do the right caching. signature.asc Description: PGP signature

Re: curl password issue

2015-02-23 Thread Martin Nowak via Digitalmars-d-learn
On Monday, 23 February 2015 at 16:10:42 UTC, Andre wrote: Curl has some issues with passwords containing special characters like the hash key (#). I don't found any reference for this issue in curl and the D wrapper hardly adds anything. You're sure it isn't an issue with your program or

how to stop a variable from being optimized out

2015-02-23 Thread Rory via Digitalmars-d-learn
Hi, Is there a way I can stop current from being optimized out without using volatile? The compiler is suggesting I replace volatile with synchronized but I don't want it synchronized? Would a memory barrier work? shared n = new int(value); for (;;) { volatile auto current = payload; //

Re: const member function

2015-02-23 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, February 23, 2015 09:12:33 rumbu via Digitalmars-d-learn wrote: On Saturday, 21 February 2015 at 15:26:28 UTC, ketmar wrote: On Sat, 21 Feb 2015 08:27:13 +, rumbu wrote: My question was not how I do this, I know already. My question was if there is another way to safely

Deprecation process documented?

2015-02-23 Thread Jacob Carlborg via Digitalmars-d-learn
Is the deprecation process used for Phobos and druntime code documented somewhere? I.e. how long after a deprecation is a symbols removed and so on. -- /Jacob Carlborg

Re: Is this a bug in dmd 2.067 for struct initializers?

2015-02-23 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, February 22, 2015 17:45:48 Ali Çehreli via Digitalmars-d-learn wrote: On 02/22/2015 03:17 PM, Martin Nowak wrote: On Thursday, 19 February 2015 at 22:07:55 UTC, stewarth wrote: I've gone with static this() approach and it works. You should use shared static this to initialize