Re: Down the VisualD0.3.38-1.exe ,found virus!

2014-05-12 Thread FrankLike via Digitalmars-d-learn
There are some quotes missing when building the Debug configuration. I have committed a fix and also added the missing file reported in your other message (IIRC it is not needed by every VS SDK). Sorry,Rainer Schuetze, Here is some error when compile the VisualD: --ERROR

Re: Down the VisualD0.3.38-1.exe ,found virus!

2014-05-12 Thread FrankLike via Digitalmars-d-learn
On Monday, 12 May 2014 at 06:36:10 UTC, FrankLike wrote: There are some quotes missing when building the Debug configuration. I have committed a fix and also added the missing file reported in your other message (IIRC it is not needed by every VS SDK). Sorry,Rainer Schuetze, And there is a

Re: Down the VisualD0.3.38-1.exe ,found virus!

2014-05-12 Thread Rainer Schuetze via Digitalmars-d-learn
On 12.05.2014 08:36, FrankLike wrote: There are some quotes missing when building the Debug configuration. I have committed a fix and also added the missing file reported in your other message (IIRC it is not needed by every VS SDK). Sorry,Rainer Schuetze, Here is some error when compile the

Re: Down the VisualD0.3.38-1.exe ,found virus!

2014-05-12 Thread Rainer Schuetze via Digitalmars-d-learn
On 12.05.2014 08:38, FrankLike wrote: On Monday, 12 May 2014 at 06:36:10 UTC, FrankLike wrote: There are some quotes missing when building the Debug configuration. I have committed a fix and also added the missing file reported in your other message (IIRC it is not needed by every VS SDK).

Re: Down the VisualD0.3.38-1.exe ,found virus!

2014-05-12 Thread FrankLike via Digitalmars-d-learn
ctc.exe is not distributed with the SDKs starting from VS2010, so mapping to a more recent version does not work. That's why there is a precompiled pkgcmd.cto file in the repository. You'll have to update its modification time to avoid the build process trying to generate it from pkgcmd.ctc

Templating everything? One module per function/struct/class/etc, grouped by package?

2014-05-12 Thread JR via Digitalmars-d-learn
Given that... 1. importing a module makes it compile the entirety of it, as well as whatever it may be importing in turn 2. templates are only compiled if instantiated 3. the new package.d functionality ...is there a reason *not* to make every single function/struct/class separate submodules

Re: Templating everything? One module per function/struct/class/etc, grouped by package?

2014-05-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Mon, 12 May 2014 08:37:42 + JR via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: Given that... 1. importing a module makes it compile the entirety of it, as well as whatever it may be importing in turn 2. templates are only compiled if instantiated 3. the new package.d

Why std.algorithm.sort can't be applied to char[]?

2014-05-12 Thread hane via Digitalmars-d-learn
and is there any way to sort char array with algorithm.sort? --- import std.algorithm; import std.range; void main() { int[] arr = [5, 3, 7]; sort(arr); // OK char[] arr2 = ['z', 'g', 'c']; sort(arr2); // error sort!q{ a[0] b[0] }(zip(arr, arr2)); // error } --- I don't know what's

Re: Why std.algorithm.sort can't be applied to char[]?

2014-05-12 Thread John Colvin via Digitalmars-d-learn
On Monday, 12 May 2014 at 14:49:53 UTC, hane wrote: and is there any way to sort char array with algorithm.sort? --- import std.algorithm; import std.range; void main() { int[] arr = [5, 3, 7]; sort(arr); // OK char[] arr2 = ['z', 'g', 'c']; sort(arr2); // error sort!q{ a[0] b[0]

Re: Why std.algorithm.sort can't be applied to char[]?

2014-05-12 Thread John Colvin via Digitalmars-d-learn
On Monday, 12 May 2014 at 14:56:46 UTC, John Colvin wrote: On Monday, 12 May 2014 at 14:49:53 UTC, hane wrote: and is there any way to sort char array with algorithm.sort? --- import std.algorithm; import std.range; void main() { int[] arr = [5, 3, 7]; sort(arr); // OK char[] arr2 = ['z',

Re: Configuring Phobos from the 1-click installer

2014-05-12 Thread Moses via Digitalmars-d-learn
PATH environment variable is not related at all with phobos2 sources paths. All Linux packages (Ubuntu too) includes -I/usr/include/dmd/phobos on /etc/dmd.conf configuration file. If you need to explicit pass this argument to dmd compiler, may be due to several reasons. - You've edited your

Re: Configuring Phobos from the 1-click installer

2014-05-12 Thread Kapps via Digitalmars-d-learn
On Monday, 12 May 2014 at 15:02:54 UTC, Moses wrote: PATH environment variable is not related at all with phobos2 sources paths. All Linux packages (Ubuntu too) includes -I/usr/include/dmd/phobos on /etc/dmd.conf configuration file. If you need to explicit pass this argument to dmd compiler,

Re: Templating everything? One module per function/struct/class/etc, grouped by package?

2014-05-12 Thread Ary Borenszweig via Digitalmars-d-learn
On 5/12/14, 5:37 AM, JR wrote: Given that... 1. importing a module makes it compile the entirety of it, as well as whatever it may be importing in turn 2. templates are only compiled if instantiated 3. the new package.d functionality ...is there a reason *not* to make every single

Re: Templating everything? One module per function/struct/class/etc, grouped by package?

2014-05-12 Thread JR via Digitalmars-d-learn
On Monday, 12 May 2014 at 09:16:53 UTC, Jonathan M Davis via Digitalmars-d-learn wrote: Well, that would be a lot of extraneous files, which would be very messy IMHO. It also makes it much harder to share private functionality, because everything is scattered across modules - you'd be force to

Re: Why std.algorithm.sort can't be applied to char[]?

2014-05-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Mon, 12 May 2014 14:49:52 + hane via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: and is there any way to sort char array with algorithm.sort? --- import std.algorithm; import std.range; void main() { int[] arr = [5, 3, 7]; sort(arr); // OK char[] arr2 =

How to make sure GC allocated resources stay around when used in C functions?

2014-05-12 Thread Gary Willoughby via Digitalmars-d-learn
Based on this conversation in another thread: http://forum.dlang.org/thread/wdddgiowaidcojbrk...@forum.dlang.org?page=5#post-yjmrqgesjtadecutvkye:40forum.dlang.org I've realised i may have a nasty bug lurking in the code. Now i want to completely understand what is happening. Take the

Re: core.sync.rwmutex example

2014-05-12 Thread Charles Hixson via Digitalmars-d-learn
On 05/10/2014 06:28 PM, TheFlyingFiddle via Digitalmars-d-learn wrote: On Friday, 9 May 2014 at 23:12:44 UTC, Charles Hixson via Digitalmars-d-learn wrote: But I'm worried about the receiving end. It needs, somehow, to ensure that the message it receives is the appropriate message, and that

Re: Why std.algorithm.sort can't be applied to char[]?

2014-05-12 Thread Charles Hixson via Digitalmars-d-learn
On 05/12/2014 09:29 AM, Jonathan M Davis via Digitalmars-d-learn wrote: On Mon, 12 May 2014 14:49:52 + hane via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: and is there any way to sort char array with algorithm.sort? --- import std.algorithm; import std.range; void main()

Re: Why std.algorithm.sort can't be applied to char[]?

2014-05-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Mon, 12 May 2014 11:08:47 -0700 Charles Hixson via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On 05/12/2014 09:29 AM, Jonathan M Davis via Digitalmars-d-learn wrote: On Mon, 12 May 2014 14:49:52 + hane via Digitalmars-d-learn digitalmars-d-learn@puremagic.com

Re: Templating everything? One module per function/struct/class/etc, grouped by package?

2014-05-12 Thread Francesco Cattoglio via Digitalmars-d-learn
On Monday, 12 May 2014 at 08:37:43 UTC, JR wrote: What am I missing? Error messages! If your code is not compiled, you can't know whether it is valid or not. I must say that since we have unittests, this is somewhat less relevant, but still... One nice thing would be stripping the

Re: How to make sure GC allocated resources stay around when used in C functions?

2014-05-12 Thread Kagamin via Digitalmars-d-learn
AFAIK, addRoot is for memory allocated in GC heap, and addRange is for other types of memory, so you can't add non-gc memory as root (just a guess, see docs). I would allocate whole Args in GC heap and add is as root, yes, it would prevent collection until the root is removed. A better way

Re: How to make sure GC allocated resources stay around when used in C functions?

2014-05-12 Thread Gary Willoughby via Digitalmars-d-learn
On Monday, 12 May 2014 at 19:13:28 UTC, Kagamin wrote: AFAIK, addRoot is for memory allocated in GC heap, and addRange is for other types of memory, so you can't add non-gc memory as root (just a guess, see docs). I would allocate whole Args in GC heap and add is as root, yes, it would prevent

Re: Templating everything? One module per function/struct/class/etc, grouped by package?

2014-05-12 Thread Kagamin via Digitalmars-d-learn
You can write a tool, which will construct an amalgamation build of your code.

Re: How to make sure GC allocated resources stay around when used in C functions?

2014-05-12 Thread Kagamin via Digitalmars-d-learn
Why many? I'd say, you typically have 0 subscriptions (label, textbox) per widget, seldom - 1 (button, combobox, checkbox).

Re: How to make sure GC allocated resources stay around when used in C functions?

2014-05-12 Thread Kagamin via Digitalmars-d-learn
combobox and checkbox usually don't require a subscription either. Only button requires a reaction from your code, everything else usually works on its own.

newbie question about variables in slices..

2014-05-12 Thread Kai via Digitalmars-d-learn
Hi I am trying to iterate over a mmfile (ubyte[]) and convert it to uint void main(){ MmFile inn = new MmFile(mmData.dat); ubyte[] arr = cast(ubyte[])inn[]; for(ulong index = 0; indexarr.length; index+=4){ ulong stop = index+4; uint num

Re: newbie question about variables in slices..

2014-05-12 Thread Jonathan M Davis via Digitalmars-d-learn
On Mon, 12 May 2014 20:12:41 + Kai via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: Hi I am trying to iterate over a mmfile (ubyte[]) and convert it to uint void main(){ MmFile inn = new MmFile(mmData.dat); ubyte[] arr = cast(ubyte[])inn[]; for(ulong index = 0;

Re: Recommendation on option parsing

2014-05-12 Thread Chris Piker via Digitalmars-d-learn
On Saturday, 10 May 2014 at 11:59:03 UTC, Robert Schadek via Digitalmars-d-learn wrote: On 05/10/2014 01:09 AM, Chris Piker via Digitalmars-d-learn wrote: Phobos' std.getopt is a bit spare for my taste, as there is no builtin general help facility with word-wrapping. ... -- Chris please help

Re: Recommendation on option parsing

2014-05-12 Thread Chris Piker via Digitalmars-d-learn
On Saturday, 10 May 2014 at 09:50:04 UTC, Jacob Carlborg wrote: On 2014-05-10 01:09, Chris Piker wrote: Phobos' std.getopt is a bit spare for my taste, as there is no builtin general help facility with word-wrapping. ... I'm using the one in Tango [1] with some additions [2]. It's a bit

Re: How to make sure GC allocated resources stay around when used in C functions?

2014-05-12 Thread Gary Willoughby via Digitalmars-d-learn
On Monday, 12 May 2014 at 20:03:46 UTC, Kagamin wrote: Why many? I'd say, you typically have 0 subscriptions (label, textbox) per widget, seldom - 1 (button, combobox, checkbox). There are many events that can be bound to on any widget.

Decoding HTML escape sequences

2014-05-12 Thread Hugo Florentino via Digitalmars-d-learn
Hi, I have some documents where some strings appears in HTML escape sequences in one of these forms: \x3C\x53\x43\x52\x49\x50\x54\x20\x4C\x41\x4E\x47\x55\x41\x47\x45\x3D\x22\x4A\x61\x76\x61\x53\x63\x72\x69\x70\x74\x22\x3e

Re: Recommendation on option parsing

2014-05-12 Thread Robert Schadek via Digitalmars-d-learn
On 05/12/2014 10:44 PM, Chris Piker via Digitalmars-d-learn wrote: On Saturday, 10 May 2014 at 11:59:03 UTC, Robert Schadek via Digitalmars-d-learn wrote: On 05/10/2014 01:09 AM, Chris Piker via Digitalmars-d-learn wrote: Phobos' std.getopt is a bit spare for my taste, as there is no builtin

DFL is the best UIcontrols for D,compare it to dwt, tkd,dtk,dlangui,anchovy......

2014-05-12 Thread FrankLike via Digitalmars-d-learn
1.DFL's Memory Usage is the least than other. winsamp.exe is 2.1M,DFL's example's exe is 2.7M. 2.The size of DFL's example's exe files is the least than other, and only a single file. 3.DFL's source code is the most easy to understand. Although DFL not use on Linux or Mac os X,it's easy to do

Re: Decoding HTML escape sequences

2014-05-12 Thread Adam D. Ruppe via Digitalmars-d-learn
You should use decodeComponent instead of decode in your matchAll loop. IMO encodeComponent and decodeComponent are the only two useful uri encode functions (btw same in JS, use decodeURIComponent instead of the other functions). The other ones have weird rules.

Re: why can't I call const methods on shared objects?

2014-05-12 Thread Vlad Levenfeld via Digitalmars-d-learn
@FreeSlave John Colvin Yes, I see your point. I could still get tearing on a read. So, in the case of methods that I believe are safe (e.g. 1-line @property getters) I'll just write a shared variadic function template that uses (cast()this).foo(args) to forward to the non-shared method...

Re: Recommendation on option parsing

2014-05-12 Thread Chris Piker via Digitalmars-d-learn
On Monday, 12 May 2014 at 23:11:57 UTC, Robert Schadek via Digitalmars-d-learn wrote: Chris please help to make this happen https://github.com/D-Programming-Language/phobos/pull/2072 I'm not sure what you are asking for. Would you like me to tryout getoptEx? yes please test it Okay, I

naming a variable at runtime

2014-05-12 Thread InfinityPlusB via Digitalmars-d-learn
Hi clever people I'm trying to do something which I thought would be easy. Read a file in, and for every row, create a array. I want to be able to name the rows, as they are built. So when row 1 is read in I get int[] bob_1 = new int[0]; when the second row is read in, I get int[] bob_2 = new

Re: naming a variable at runtime

2014-05-12 Thread safety0ff via Digitalmars-d-learn
You should look into associative arrays ( http://dlang.org/hash-map .) Example: import std.stdio; void main() { int[][string] mybobs; mybobs[bob_1] = [-1, -1, 1, -1, -1]; mybobs[bob_2] = [-1, 1, 1, 1, -1]; mybobs[bob_3] = [-1, 1, 1, 1, -1];

Re: naming a variable at runtime

2014-05-12 Thread InfinityPlusB via Digitalmars-d-learn
On Tuesday, 13 May 2014 at 03:54:33 UTC, safety0ff wrote: You should look into associative arrays ( http://dlang.org/hash-map .) Example: import std.stdio; void main() { int[][string] mybobs; mybobs[bob_1] = [-1, -1, 1, -1, -1]; mybobs[bob_2] = [-1, 1, 1, 1, -1];

Re: naming a variable at runtime

2014-05-12 Thread Ali Çehreli via Digitalmars-d-learn
On 05/12/2014 08:47 PM, InfinityPlusB wrote: I want to be able to name the rows, as they are built. First, no, you cannot name variables at run time because variables are concepts of source code; they don't exist in the compiled program. So when row 1 is read in I get int[] bob_1 = new

Re: naming a variable at runtime

2014-05-12 Thread InfinityPlusB via Digitalmars-d-learn
On Tuesday, 13 May 2014 at 04:26:04 UTC, Ali Çehreli wrote: On 05/12/2014 08:47 PM, InfinityPlusB wrote: I want to be able to name the rows, as they are built. First, no, you cannot name variables at run time because variables are concepts of source code; they don't exist in the compiled

Re: Messy code in console

2014-05-12 Thread IceNature via Digitalmars-d-learn
I've just thought of a problem. Others who uses my program on their computers needs to change their setting. It is a bit troublesome. On 2014年5月11日 格林尼治标准时间+0800下午3时43分41秒, FrankLike via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On Sunday, 11 May 2014 at 06:35:26 UTC,

[Issue 10326] Disallow 'invariant' for immutable, allow class/struct invariants without (), and later disallow usage of ()

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10326 --- Comment #6 from bearophile_h...@eml.cc --- I'd like to reopen this issue because it's not done yet. The last missing step is to (in future) give an error in line 2 of program, disallowing the () after invariant: struct Foo { invariant() {

[Issue 12736] New: @nogc std.algorithm.all

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12736 Issue ID: 12736 Summary: @nogc std.algorithm.all Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: enhancement Priority: P1

[Issue 10326] Disallow 'invariant' for immutable, allow class/struct invariants without (), and later disallow usage of ()

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10326 bearophile_h...@eml.cc changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Issue 10326] Disallow 'invariant' for immutable, allow class/struct invariants without (), and later disallow usage of ()

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10326 --- Comment #8 from Temtaime temta...@gmail.com --- I agree () should give deprecation for now and error in future. --

[Issue 12735] imports via mixin template become public imports

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12735 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Keywords||accepts-invalid

[Issue 12015] std.digest.sha256 too

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12015 bearophile_h...@eml.cc changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 12719] struct.c:705: virtual void StructDeclaration::semantic(Scope*): Assertion `parent parent == sc-parent' failed.

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12719 --- Comment #4 from Kenji Hara k.hara...@gmail.com --- (In reply to monarchdodra from comment #3) I still ice with this, and it passed in 2.065: // enum canDoIt(R) = is(typeof(Wrapper!R)); struct Wrapper(R) { R r; static if

[Issue 12691] std.regex.bmatch bug in empty OR operator inside of ()*

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12691 Dmitry Olshansky dmitry.o...@gmail.com changed: What|Removed |Added Keywords||pull

[Issue 12737] New: static constructor requires call of super constructor

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12737 Issue ID: 12737 Summary: static constructor requires call of super constructor Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

[Issue 12660] Wrong non-@nogc function invariant error

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12660 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||yebbl...@gmail.com

[Issue 12713] [REG 2.066A] std.regex.regex crashes with SEGV, illegal instruction resp. assertion failure with certain bad input

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12713 Dmitry Olshansky dmitry.o...@gmail.com changed: What|Removed |Added CC|

[Issue 12666] @nogc std.array.front, popFront, and more

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12666 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||yebbl...@gmail.com --- Comment

[Issue 12727] [REG2.066a] DMD hangs up on recursive alias declaration

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12727 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||ice, pull

[Issue 12713] [REG 2.066A] std.regex.regex crashes with SEGV, illegal instruction resp. assertion failure with certain bad input

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12713 Dmitry Olshansky dmitry.o...@gmail.com changed: What|Removed |Added Keywords||pull

[Issue 12738] New: core.sys.posix.signal sigaction_t handler type mismatch

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12738 Issue ID: 12738 Summary: core.sys.posix.signal sigaction_t handler type mismatch Product: D Version: D2 Hardware: x86 OS: Linux Status: NEW

[Issue 12738] core.sys.posix.signal sigaction_t handler type mismatch

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12738 --- Comment #1 from hst...@quickfur.ath.cx --- extern(C) functions are nothrow by definition, so this code should not be rejected. --

[Issue 12738] core.sys.posix.signal sigaction_t handler type mismatch

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12738 hst...@quickfur.ath.cx changed: What|Removed |Added Component|DMD |druntime --- Comment #2 from

[Issue 12660] Wrong non-@nogc function invariant error

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12660 --- Comment #2 from bearophile_h...@eml.cc --- (In reply to yebblies from comment #1) I vaguely recall this being about attributes on the LHS of invariants being ignored. If I put @nogc on the right: class Foo { this() @nogc {}

[Issue 12738] core.sys.posix.signal sigaction_t handler type mismatch

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12738 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 12660] Wrong non-@nogc function invariant error

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12660 --- Comment #3 from yebblies yebbl...@gmail.com --- Different problem. --

[Issue 12738] core.sys.posix.signal sigaction_t handler type mismatch

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12738 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added CC|

[Issue 12724] Error: return statements cannot be in contracts

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12724 --- Comment #10 from monarchdo...@gmail.com --- (In reply to bearophile_hugs from comment #9) (In reply to monarchdodra from comment #8) It means you've tested what needs to be tested, and the input given need to proceed with the rest of the

[Issue 12737] static constructor requires call of super constructor

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12737 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12737] static constructor requires call of super constructor

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12737 --- Comment #2 from Robert Schadek rburn...@gmail.com --- But it is the static ctor and A has no static member!? --

[Issue 4274] Better array of inner structs error message

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4274 --- Comment #7 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/b754fbe2883bd182e7a2e6e23e7cbad97bedcd64 Update container.d

[Issue 12737] static constructor requires call of super constructor

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12737 --- Comment #3 from Jonathan M Davis jmdavisp...@gmx.com --- The static constructor has nothing to do with the error. Look at my counter-example. It's exactly the same except for the fact that it has not static constructor. The problem is that a

[Issue 9881] Indirect cyclic imports are not forbidden

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9881 Martin Nowak c...@dawg.eu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 12739] New: Foreach delegate to opApply does not have infered nothrow

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12739 Issue ID: 12739 Summary: Foreach delegate to opApply does not have infered nothrow Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 12740] New: DMD accepts invalid version syntax

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12740 Issue ID: 12740 Summary: DMD accepts invalid version syntax Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1

[Issue 12740] DMD accepts invalid version syntax

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12740 briancsch...@gmail.com changed: What|Removed |Added Keywords||accepts-invalid Blocks|

[Issue 10233] [Tracker] Grammar issues

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233 briancsch...@gmail.com changed: What|Removed |Added Depends on||12740 --

[Issue 12741] New: DMD accepts functions with contracts and no body

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12741 Issue ID: 12741 Summary: DMD accepts functions with contracts and no body Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

[Issue 10233] [Tracker] Grammar issues

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10233 briancsch...@gmail.com changed: What|Removed |Added Depends on||12741 --

[Issue 12741] DMD accepts functions with contracts and no body

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12741 briancsch...@gmail.com changed: What|Removed |Added Keywords||accepts-invalid, spec

[Issue 12727] [REG2.066a] DMD hangs up on recursive alias declaration

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12727 --- 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/fbd78c3db2c2c03ec098c1b433431d7f3f144ef7 fix Issue 12727 - DMD hangs

[Issue 12727] [REG2.066a] DMD hangs up on recursive alias declaration

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12727 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12691] std.regex.bmatch bug in empty OR operator inside of ()*

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12691 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/520438d9ef3f80af3e6c790798cfab4158e3402f Fix issue 12691

[Issue 12691] std.regex.bmatch bug in empty OR operator inside of ()*

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12691 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12741] DMD accepts functions with contracts and no body

2014-05-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12741 j...@red.email.ne.jp changed: What|Removed |Added Keywords|accepts-invalid | CC|

Re: Livestreaming DConf?

2014-05-12 Thread simendsjo via Digitalmars-d-announce
On 05/11/2014 11:15 PM, John Carter via Digitalmars-d-announce wrote: The timezones being so different, I'm not sure livestreaming will help me... But I do plan to watch any videos of it as soon as they are up. It's the same problem for all Europeans (and many other), including me. I'm also

Re: Livestreaming DConf?

2014-05-12 Thread Dicebot via Digitalmars-d-announce
On Friday, 9 May 2014 at 19:48:20 UTC, Andrei Alexandrescu wrote: Hi folks, We at Facebook are very excited about the upcoming DConf 2014. In fact, so excited we're considering livestreaming the event for the benefit of the many of us who can't make it to Menlo Park, CA. Livestreaming

Re: Livestreaming DConf?

2014-05-12 Thread Rory McGuire via Digitalmars-d-announce
If you use a Google hangout on air with a laptop that is pointing at the presenter, I don't see much extra cost, except perhaps the cost of the bandwidth(free?). You probably even put a link on the dlang website that opens the hangout, with a different hangout for each session. If you are wanting

Re: Livestreaming DConf?

2014-05-12 Thread JR via Digitalmars-d-announce
On Monday, 12 May 2014 at 07:21:39 UTC, Dicebot wrote: Will that also mean that we won't need to wait several months for all videos to be published? :) This is an interesting point. If memory serves last time one video was released per week, meaning that reddit/hn readers could properly

Re: Livestreaming DConf?

2014-05-12 Thread Andrej Mitrovic via Digitalmars-d-announce
On 5/12/14, Dicebot via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Will that also mean that we won't need to wait several months for all videos to be published? :) Better record the livestream then!

Re: More radical ideas about gc and reference counting

2014-05-12 Thread Manu via Digitalmars-d
On 12 May 2014 10:50, Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: They are using Rust to write a safe and performant web browser while developing the language. Sure. But that browser hasn't been released yet. Consider that I've written safe and performant code in D,

Re: More radical ideas about gc and reference counting

2014-05-12 Thread Rainer Schuetze via Digitalmars-d
On 12.05.2014 06:57, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Sunday, 11 May 2014 at 20:45:08 UTC, Rainer Schuetze wrote: On 11.05.2014 22:33, Walter Bright wrote: The Boehm collector cannot move objects around, the D one can. Oh it can? Really? Yes. D, for

Re: More radical ideas about gc and reference counting

2014-05-12 Thread ponce via Digitalmars-d
On Monday, 12 May 2014 at 00:44:54 UTC, Andrei Alexandrescu wrote: On 5/11/14, 2:49 PM, ponce wrote: On Sunday, 11 May 2014 at 21:43:06 UTC, sclytrack wrote: There is very little use of @, it's mostly and ~. Heck I didn't find any @ while casually browsing the code. It's like they are

Re: [OT] Go officially won't get generics

2014-05-12 Thread Bienlein via Digitalmars-d
On Wednesday, 7 May 2014 at 15:54:42 UTC, Paulo Pinto wrote: So the videos of the Gophercon 2014 are being made available. Rob Pike did the keynote. At the expected question about generics, his answer was There are no plans for generics. I said we're going to leave the language; we're done..

Re: More radical ideas about gc and reference counting

2014-05-12 Thread Dicebot via Digitalmars-d
On Monday, 12 May 2014 at 07:12:29 UTC, Manu via Digitalmars-d wrote: You haven't told me how I can use the GC (or whatever memory management scheme, I really don't care) in the low frequency code (again, read: almost all code ever), and not have it interfere with the high frequency code.

Re: More radical ideas about gc and reference counting

2014-05-12 Thread ponce via Digitalmars-d
On Monday, 12 May 2014 at 00:44:54 UTC, Andrei Alexandrescu wrote: On 5/11/14, 2:49 PM, ponce wrote: On Sunday, 11 May 2014 at 21:43:06 UTC, sclytrack wrote: There is very little use of @, it's mostly and ~. Heck I didn't find any @ while casually browsing the code. It's like they are

Re: More radical ideas about gc and reference counting

2014-05-12 Thread Manu via Digitalmars-d
On 12 May 2014 17:24, Dicebot via Digitalmars-d digitalmars-d@puremagic.com wrote: On Monday, 12 May 2014 at 07:12:29 UTC, Manu via Digitalmars-d wrote: You haven't told me how I can use the GC (or whatever memory management scheme, I really don't care) in the low frequency code (again, read:

Re: More radical ideas about gc and reference counting

2014-05-12 Thread Tommi via Digitalmars-d
On Monday, 12 May 2014 at 00:50:24 UTC, Walter Bright wrote: On 5/11/2014 1:59 PM, Timon Gehr wrote: Borrowed pointers are not even superficially similar to near*. They are compatible with everything else, because they can store data that was borrowed from anywhere else. As long as those

Re: More radical ideas about gc and reference counting

2014-05-12 Thread Tommi via Digitalmars-d
On Monday, 12 May 2014 at 08:10:43 UTC, Tommi wrote: Perhaps: [..] Somewhat surprisingly to me, you can later on change the borrowed pointer in the mutable static 'Test' to point at a mutable static int: struct Test { n: 'static int } static old: int = 111; static mut new: int = 222;

Re: radical ideas about GC and ARC : need to be time driven?

2014-05-12 Thread via Digitalmars-d
On Monday, 12 May 2014 at 04:22:21 UTC, Marco Leise wrote: On the positive side the talk about Rust, in particular how reference counted pointers decay to borrowed pointers made me think the same could be done for our scope args. A reference counted slice with 3 machine words could decay to a 2

Re: More radical ideas about gc and reference counting

2014-05-12 Thread Walter Bright via Digitalmars-d
On 5/12/2014 12:12 AM, Manu via Digitalmars-d wrote: What? You've never offered me a practical solution. I have, you've just rejected them. What do I do? 1. you can simply do C++ style memory management. shared_ptr, etc. 2. you can have the non-pausible code running in a thread that is

Re: More radical ideas about gc and reference counting

2014-05-12 Thread Walter Bright via Digitalmars-d
On 5/11/2014 10:57 PM, Marco Leise wrote: Am Sun, 11 May 2014 17:50:25 -0700 schrieb Walter Bright newshou...@digitalmars.com: As long as those pointers don't escape. Am I right in that one cannot store a borrowed pointer into a global data structure? Right, and that's the point and entirely

Re: More radical ideas about gc and reference counting

2014-05-12 Thread bearophile via Digitalmars-d
Walter Bright: But I don't see how this could work in Rust. Ask it to competent Rust developers/programmers. Bye, bearophile

Re: More radical ideas about gc and reference counting

2014-05-12 Thread John Colvin via Digitalmars-d
On Monday, 12 May 2014 at 08:45:56 UTC, Walter Bright wrote: On 5/12/2014 12:12 AM, Manu via Digitalmars-d wrote: What? You've never offered me a practical solution. I have, you've just rejected them. What do I do? 1. you can simply do C++ style memory management. shared_ptr, etc. 2.

  1   2   >