Re: [Issue 10108] Thread local slice to array literal references the same data

2013-05-18 Thread Simen Kjaeraas
On Sat, 18 May 2013 16:59:53 +0200, Sean Kelly s...@invisibleduck.org wrote: This is expected because the global is __gshared and there's therefore no type protection from doing this. If you want safe sharing, make the global shared. [snip] __gshared int[] gArr = [1,2,3]; int[] arr =

Re: Problem with stdlib.d

2012-08-05 Thread Simen Kjaeraas
On Sun, 05 Aug 2012 16:53:24 +0200, constantine kostas...@yahoo.gr wrote: I try to use DSMFL to learn about game programming and I got this error. D:\Programming\DSFML\samples\dsfmldsss build pong\pong.d = bin/pong ../../import\dsfml\system\alloc.d(9): module stdlib cannot read file

Re: A bug with DMD 2.054

2011-07-15 Thread Simen Kjaeraas
On Fri, 15 Jul 2011 12:32:05 +0200, BizarreCake bizarrec...@gmail.com wrote: While coding, I've stumbled upon this weird bug. Apparently, this code snippet right here: module program; import std.stdio; class Foo { void bar() {

Re: Language Reference: Usual Arithmetic Conversions

2011-04-05 Thread Simen kjaeraas
On Tue, 05 Apr 2011 20:10:19 +0200, Morlan h...@valentimex.com wrote: The following section from the Language Reference does not correspond to the current dmd compiler (v2.052, Windows) behaviour: Integer values cannot be implicitly converted to another type that cannot represent the integer

Re: Language Reference

2011-04-05 Thread Simen kjaeraas
On Tue, 05 Apr 2011 20:04:43 +0200, Morlan h...@valentimex.com wrote: After clicking on Template in the left menu of Language Reference on http://d-programming-language.org/ page, the menu collapses to start menu, while for other items it remains visible. Please use bugzilla to file

Re: datetime fails with undefined reference

2011-02-18 Thread Simen kjaeraas
Kai Meyer k...@fiber.net wrote: I can import std.datetime, but when I try to use Ticks, or build the unittest, I get undefined reference issues with the Posix time libraries. Fedora 14, dmd-2.051-0.i386.rpm [kai@worky ~]$ dmd -unittest /usr/include/d/dmd/phobos/std/datetime.d datetime.o: In

Re: GC.collect() and GC.minimize() not releasing memory

2011-01-07 Thread Simen kjaeraas
Stewart Gordon smjg_1...@yahoo.com wrote: On 24/12/2010 06:13, torhu wrote: This newsgroup is just for automated use by Bugzilla. snip Where is the official statement of this? Likely there is no hard official statement. However, http://www.digitalmars.com/NewsGroup.html states that it is

Re: GC.collect() and GC.minimize() not releasing memory

2011-01-07 Thread Simen kjaeraas
Walter Bright newshou...@digitalmars.com wrote: Simen kjaeraas wrote: Stewart Gordon smjg_1...@yahoo.com wrote: On 24/12/2010 06:13, torhu wrote: This newsgroup is just for automated use by Bugzilla. snip Where is the official statement of this? Likely there is no hard official

Re: @safe functions

2011-01-05 Thread Simen kjaeraas
Sean Eskapp eatingstap...@gmail.com wrote: This is either a compiler bug, or outdated language documentation, but I'm having some freedom with @safe functions: * No casting from a pointer type to any type other than void*. * No modification of pointer values. * No taking the

Re: Version (X86_64) for struct_stat64 on Linux x86_64

2010-12-28 Thread Simen kjaeraas
Chuck Blake c...@mit.edu wrote: Hi. I realize that 64-bit phobos is relatively work in progress. I thought I'd contribute. struct_stat64 is broken on Linux x86_64 which further breaks an awful lot of file IO. I have a small patch that fixes it. I tested this with gdc 2.051 within

Re: Interface inheritance

2010-12-12 Thread Simen kjaeraas
Mandeep Singh Brar mand...@brars.co.in wrote: The following code does not compile. import std.stdio; interface A { public void a(int l); } class ACl:A { public void a(int l) { writeln(Hello a); } } interface B: A { public void a(string l, int

Re: DMD1 function template broken or did I f.u.?

2010-08-24 Thread Simen kjaeraas
0ffh fr...@youknow.what.todo.internetz wrote: So, my question is: Huh? The answer to this should for symmetry be: Duh! However, it is not quite that simple. void remove(T)(out T[] array,T element) { This is the line that gives you problems. You are expecting 'out' to work like 'ref',

Re: Bug Of pow in std.math

2010-07-01 Thread Simen kjaeraas
sins666 d-bugm...@puremagic.com wrote: import std.math; import std.stdio; void main() { writeln(pow(5, 2)); // 25 writeln(pow(5, 0)); // 1 writeln(pow(5, -3)); // object.Error: Integer Divide by Zero } And dmd version is 2.047. Was I mistake in my source.or bug? The mistake is

Re: Bug Of pow in std.math

2010-06-30 Thread Simen kjaeraas
sins666 d-bugm...@puremagic.com wrote: I found a Bug.The bug lives in function of pow in std.math. When wake up the bug that, we select value of minus to second argument of pow. And happen the object.Error: Integer Divide by Zero error. I think that is a Bug. Is it? I would recommend

Re: D2 phobos BigInt bug

2009-02-06 Thread Simen Kjaeraas
Don wrote: I don't think that will ever get fixed (unless you make a patch yourself). Phobos BigInt was created by Janice, and she seems to have completely disappeared. I'm working on Tango BigInt, which is completely independent, and will replace Phobos BigInt eventually. ( == as soon as