[Issue 4091] Small docs page about dynamic array implementation
http://d.puremagic.com/issues/show_bug.cgi?id=4091 --- Comment #1 from Sobirari Muhomori 2010-04-16 13:19:15 PDT --- To understand a system programming language "abstraction", OOP and Grady Booch are not the right way to go :3 Implementation is not abstract, it's concrete. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3971] Syntax & semantics for array assigns
http://d.puremagic.com/issues/show_bug.cgi?id=3971 --- Comment #4 from Sobirari Muhomori 2010-04-16 13:08:07 PDT --- a = b; static dynamic static Err2Err dynamic Err OK2 ^ As I understand, this disallows assignment of a static array to the dynamic one? Is this related to bug 3395? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4097] New: Error: can only declare type aliases within static if conditionals
http://d.puremagic.com/issues/show_bug.cgi?id=4097 Summary: Error: can only declare type aliases within static if conditionals Product: D Version: future Platform: Other OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: nfx...@gmail.com --- Comment #0 from nfx...@gmail.com 2010-04-16 09:03:52 PDT --- Look at this code: void foo() { } alias typeof(&foo) T; // works static if (is(T X : X*) && is(X == function)) {} else { static assert(false); } // doesn't work // Error: can only declare type aliases within static if conditionals static assert(is(T X : X*) && is(X == function)); This looks really silly. Couldn't that restriction be lifted? The alias would be only valid within the expression and wouldn't require a static if. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4096] New: nonzero timezone offset in UTC timestamp; wrong local time.
http://d.puremagic.com/issues/show_bug.cgi?id=4096 Summary: nonzero timezone offset in UTC timestamp; wrong local time. Product: D Version: future Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: graham.fawc...@gmail.com --- Comment #0 from Graham Fawcett 2010-04-16 06:16:57 PDT --- In DMD Version 2.043, the following code should print a timestamp both in UTC and local time. The local tzoffset is correct, but the UTC tzoffset should not be nonzero. Furthermore, what claims to be the UTC time is actually the localtime, and the so-called localtime is just wrong. The code imports std.datebase to hack around the initialization issue reported in #2965. #!/usr/bin/dmd -run import std.datebase; import std.stdio; import std.date; void main() { writefln("UTC: %s", toString(getUTCtime())); writefln("Local: %s", toString(UTCtoLocalTime(getUTCtime(; } $ TZ=EST5EDT date Fri Apr 16 09:14:35 EDT 2010 $ TZ=EST5EDT ./timedemo.d UTC: Fri Apr 16 09:14:37 GMT-0400 2010 Local: Fri Apr 16 05:14:37 GMT-0400 2010 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---