Re: std.datetime questions

2011-03-12 Thread Jonathan M Davis
On Friday 11 March 2011 19:34:26 Jonathan M Davis wrote: On Friday, March 11, 2011 19:18:21 Nicholas wrote: Thanks for the information. I'll play with it when I'm at work again and then report my findings. In the interim, my timezone is EST. I used TimeZone America/New_York on

SpanMode.breadth -- misnomer?

2011-03-12 Thread %u
It seems to me that the SpanMode.breadth option when enumerating a directory does not actually do breadth-first search, but rather performs a kind of depth-first preorder traversal. In other words, to me, this is depth-first postorder traversal: \A \A\1 \A\1\x \A\1\y \A\2 \B \B\1 whereas this

Re: SpanMode.breadth -- misnomer?

2011-03-12 Thread spir
On 03/12/2011 10:22 AM, %u wrote: It seems to me that the SpanMode.breadth option when enumerating a directory does not actually do breadth-first search, but rather performs a kind of depth-first preorder traversal. In other words, to me, this is depth-first postorder traversal: \A \A\1 \A\1\x

Re: SpanMode.breadth -- misnomer?

2011-03-12 Thread %u
So apparently, it's incredibly hard (if not impossible) to have a true breadth-first search that scales up reasonably well to, say, an entire volume of data: stackoverflow.com/questions/5281626/breadth-first-directory-traversal- is-it-possible-with-olog-n-memory I suggest we rename the option to

Error message issue

2011-03-12 Thread Russel Winder
Coming from Java, C++, etc. where + is used for string concatenation I initially wrote: assert ( iterative ( item[0] ) == item[1] , iterative ( + to ! string ( item[0] ) + ) = + to ! string ( item[1] ) ) ; which results in: factorial_d2.d(45): Error: Array operation

Re: std.datetime questions

2011-03-12 Thread Andrei Alexandrescu
On 3/12/11 2:32 AM, Jonathan M Davis wrote: I'll try and get it fixed this weekend. I should have caught that before, but apparently I forgot to create all of the appropriate tests for WindowsTimeZone. Oh noes! :o) Andrei

LDC2: Where do bug reports go?

2011-03-12 Thread dsimcha
I've noticed that the issue tracker tab on the LDC2 project (https://bitbucket.org/prokhin_alexey/ldc2/overview) is missing. First, why is it missing? Second, if it's missing on purpose, then where is the correct place to file bug reports?

Re: Curl support RFC

2011-03-12 Thread Jonas Drewsen
Thank you. Regarding scalability: In my experience the fastest network handling for multiple concurrent request is done asyncronously using select or epoll. The current wrapper would probably use threading and messages to handle multiple concurrent requests which is not as efficient.

Re: Curl support RFC

2011-03-12 Thread Jonas Drewsen
On 11/03/11 19.31, Jacob Carlborg wrote: On 2011-03-11 16:20, Jonas Drewsen wrote: Hi, So I've spent some time trying to wrap libcurl for D. There is a lot of things that you can do with libcurl which I did not know so I'm starting out small. For now I've created all the declarations for the

Re: LDC2: Where do bug reports go?

2011-03-12 Thread Trass3r
I guess he just missed to set up a public issue tracking.

Re: Google Summer of Code 2011 application

2011-03-12 Thread Nebster
On 11/03/2011 20:03, Gary Whatmore wrote: Nebster Wrote: On 10/03/2011 19:36, Trass3r wrote: How about adding more stuff to CTFE, esp. pointers and classes? Or get Algebraic data types to typecheck in the compiler :) Stop trolling. We should really ban these Tango fanboys here. Nobody

Re: Google Summer of Code 2011 application

2011-03-12 Thread Daniel Gibson
Am 12.03.2011 18:16, schrieb Nebster: On 11/03/2011 20:03, Gary Whatmore wrote: Nebster Wrote: On 10/03/2011 19:36, Trass3r wrote: How about adding more stuff to CTFE, esp. pointers and classes? Or get Algebraic data types to typecheck in the compiler :) Stop trolling. We should really

Re: Curl support RFC

2011-03-12 Thread Jonas Drewsen
On 11/03/11 22.21, Jesse Phillips wrote: I'll make some comments on the API. Do we have to choose Http/Ftp...? The URI already contains this, I could see being able to specifically request one or the other for performance or so www.google.com works. That is a good question. The problem with

Re: Curl support RFC

2011-03-12 Thread Jonas Drewsen
On 12/03/11 05.30, Ary Manzana wrote: On 3/11/11 12:20 PM, Jonas Drewsen wrote: Hi, So I've spent some time trying to wrap libcurl for D. There is a lot of things that you can do with libcurl which I did not know so I'm starting out small. For now I've created all the declarations for the

Re: Curl support RFC

2011-03-12 Thread Jonas Drewsen
On 11/03/11 17.33, Vladimir Panteleev wrote: On Fri, 11 Mar 2011 17:20:38 +0200, Jonas Drewsen jdrew...@nospam.com wrote: writeln( Http.get(http://www.google.com;).content ); Does this return a string? What if the page's encoding isn't UTF-8? Data should probably be returned as void[],

Re: LDC2: Where do bug reports go?

2011-03-12 Thread Moritz Warning
On Sat, 12 Mar 2011 11:58:55 -0500, dsimcha wrote: I've noticed that the issue tracker tab on the LDC2 project (https://bitbucket.org/prokhin_alexey/ldc2/overview) is missing. First, why is it missing? Second, if it's missing on purpose, then where is the correct place to file bug reports?

Re: Stream Proposal

2011-03-12 Thread Jonas Drewsen
On 12/03/11 04.54, Daniel Gibson wrote: Am 12.03.2011 04:40, schrieb dsimcha: On 3/11/2011 10:14 PM, Jonathan M Davis wrote: On Friday, March 11, 2011 18:29:42 dsimcha wrote: 3. std.stdio.File should be moved to the new stream module but publicly imported by std.stdio. It should also grow

Re: Curl support RFC

2011-03-12 Thread Lutger Blijdestijn
Jonas Drewsen wrote: On 11/03/11 22.21, Jesse Phillips wrote: I'll make some comments on the API. Do we have to choose Http/Ftp...? The URI already contains this, I could see being able to specifically request one or the other for performance or so www.google.com works. That is a good

Re: Error message issue

2011-03-12 Thread spir
On 03/12/2011 01:45 PM, Russel Winder wrote: Coming from Java, C++, etc. where + is used for string concatenation I initially wrote: assert ( iterative ( item[0] ) == item[1] , iterative ( + to ! string ( item[0] ) + ) = + to ! string ( item[1] ) ) ; which results in:

Re: Curl support RFC

2011-03-12 Thread Jesse Phillips
Jonas Drewsen Wrote: On 11/03/11 22.21, Jesse Phillips wrote: I'll make some comments on the API. Do we have to choose Http/Ftp...? The URI already contains this, I could see being able to specifically request one or the other for performance or so www.google.com works. That is a good

Re: Is DMD 2.052 32-bit?

2011-03-12 Thread Don
lurker wrote: Jonathan M Davis Wrote: On Wednesday 09 March 2011 17:56:13 Walter Bright wrote: On 3/9/2011 4:30 PM, Jonathan M Davis wrote: Much as I'd love to have a 64-bit binary of dmd, I don't think that the gain is even vaguely worth the risk at this point. What is the gain? The only

Re: Uh... destructors?

2011-03-12 Thread Don
Bruno Medeiros wrote: On 23/02/2011 17:47, Steven Schveighoffer wrote: On Wed, 23 Feb 2011 12:28:33 -0500, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 2/23/11 11:16 AM, Steven Schveighoffer wrote: Just because a function is not marked @safe does not mean it is unsafe. It

Re: Code Sandwiches

2011-03-12 Thread Nick Sabalausky
David Nadlinger s...@klickverbot.at wrote in message news:ilgjnj$1oui$1...@digitalmars.com... On 3/11/11 11:17 PM, Jonathan M Davis wrote: On Friday, March 11, 2011 11:18:59 David Nadlinger wrote: My question from above still remains: Is there any scientific data to back this assumption? I

Re: Curl support RFC

2011-03-12 Thread Jonas Drewsen
On 12/03/11 20.44, Jesse Phillips wrote: Jonas Drewsen Wrote: On 11/03/11 22.21, Jesse Phillips wrote: I'll make some comments on the API. Do we have to choose Http/Ftp...? The URI already contains this, I could see being able to specifically request one or the other for performance or so

Re: Code Sandwiches

2011-03-12 Thread spir
On 03/12/2011 10:16 PM, Nick Sabalausky wrote: Even with a brightness setting matching the ambient light (many people I know have turned the backlight up way too high), longer blocks of white text on a dark background have the nasty habit of leaving an after-image in my eyes, as

Re: Code Sandwiches

2011-03-12 Thread David Nadlinger
On 3/12/11 11:34 PM, Nick Sabalausky wrote: spirdenis.s...@gmail.com wrote in message news:mailman.2474.1299967680.4748.digitalmar...@puremagic.com... On 03/12/2011 10:16 PM, Nick Sabalausky wrote: Even with a brightness setting matching the ambient light (many people I know have turned

Re: Code Sandwiches

2011-03-12 Thread Nick Sabalausky
David Nadlinger s...@klickverbot.at wrote in message news:ilgs4q$27rk$1...@digitalmars.com... On 3/12/11 11:07 PM, spir wrote: Another obvious remark (not from me, read on the web) is that what is good for paper is not good for screens; because they are light sources. Reading text on white

Re: Code Sandwiches

2011-03-12 Thread Nick Sabalausky
David Nadlinger s...@klickverbot.at wrote in message news:ilgt04$298s$1...@digitalmars.com... On 3/12/11 11:34 PM, Nick Sabalausky wrote: spirdenis.s...@gmail.com wrote in message news:mailman.2474.1299967680.4748.digitalmar...@puremagic.com... On 03/12/2011 10:16 PM, Nick Sabalausky wrote:

Re: GZip File Reading (std.file)

2011-03-12 Thread dsimcha
Since it seems like the consensus is that streaming gzip support belongs in a stream API, I guess we have yet another reason to get busy with the stream API. However, I'm wondering if std.file should support gzip and, if license issues can be overcome, bzip2. I'd love to be able to write

Re: Code Sandwiches

2011-03-12 Thread David Nadlinger
On 3/13/11 12:14 AM, Nick Sabalausky wrote: Doesn't matter, he's still constructed a blatant strawman. Those three things I mentioned, plus the fact that he's using maximum contrast, all make text harder to read *regardless* of positive/negative contrast. And *despite* that, he's still using

Re: Curl support RFC

2011-03-12 Thread Jonathan M Davis
On Saturday 12 March 2011 13:51:37 Jonas Drewsen wrote: On 12/03/11 20.44, Jesse Phillips wrote: Jonas Drewsen Wrote: On 11/03/11 22.21, Jesse Phillips wrote: I'll make some comments on the API. Do we have to choose Http/Ftp...? The URI already contains this, I could see being able to

Re: Code Sandwiches

2011-03-12 Thread David Nadlinger
On 3/12/11 11:49 PM, Nick Sabalausky wrote: David Nadlingers...@klickverbot.at wrote in message news:ilgs4q$27rk$1...@digitalmars.com... On 3/12/11 11:07 PM, spir wrote: Another obvious remark (not from me, read on the web) is that what is good for paper is not good for screens; because they

Re: Code Sandwiches

2011-03-12 Thread Nick Sabalausky
David Nadlinger s...@klickverbot.at wrote in message news:ilgvk8$2dmt$2...@digitalmars.com... On 3/12/11 11:49 PM, Nick Sabalausky wrote: David Nadlingers...@klickverbot.at wrote in message news:ilgs4q$27rk$1...@digitalmars.com... On 3/12/11 11:07 PM, spir wrote: Another obvious remark (not

Re: Code Sandwiches

2011-03-12 Thread Nick Sabalausky
David Nadlinger s...@klickverbot.at wrote in message news:ilgvf0$2dmt$1...@digitalmars.com... On 3/13/11 12:14 AM, Nick Sabalausky wrote: Doesn't matter, he's still constructed a blatant strawman. Those three things I mentioned, plus the fact that he's using maximum contrast, all make text

Re: Code Sandwiches

2011-03-12 Thread Andrej Mitrovic
I wish all apps followed a defined standard and allowed us to set all applications to use dark backgrounds at once. On Linux you can't even set the cursor blinking to be the same for all apps. Either it's a GTK/KDE/XF/Whatever-specific setting, or you have to hunt down some configuration file

Derailed (Was: Code Sandwiches)

2011-03-12 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.2479.1299981498.4748.digitalmar...@puremagic.com... I wish all apps followed a defined standard and allowed us to set all applications to use dark backgrounds at once. On Linux you can't even set the cursor blinking to be

Re: Derailed (Was: Code Sandwiches)

2011-03-12 Thread linux user
Nick Sabalausky Wrote: Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.2479.1299981498.4748.digitalmar...@puremagic.com... I wish all apps followed a defined standard and allowed us to set all applications to use dark backgrounds at once. On Linux you can't even

Re: Derailed (Was: Code Sandwiches)

2011-03-12 Thread Andrej Mitrovic
On 3/13/11, Nick Sabalausky a@a.a wrote: snip OSX is a nice OS. I gave it a try once or twice. The OS is nice, but man, when I started looking for software on the web I almost got sick. Top 10 software for Your Mac, 5 Apps that will make your Mac Experience Awesome!, This app will make you feel

std.xml: Why is it so slow? Is there anything else wrong with it?

2011-03-12 Thread dsimcha
There seems to be a consensus around here that Phobos needs a good XML module, and that std.xml doesn't cut it, at least partly due to performance issues. I have no clue how to write a good XML module from scratch. It seems like noone else is taking up the project either. This leads me to

Re: std.xml: Why is it so slow? Is there anything else wrong with it?

2011-03-12 Thread Daniel Gibson
Am 13.03.2011 05:34, schrieb dsimcha: There seems to be a consensus around here that Phobos needs a good XML module, and that std.xml doesn't cut it, at least partly due to performance issues. I have no clue how to write a good XML module from scratch. It seems like noone else is taking up the

Re: Derailed (Was: Code Sandwiches)

2011-03-12 Thread Nick Sabalausky
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message news:mailman.2483.1299989460.4748.digitalmar...@puremagic.com... On 3/13/11, Nick Sabalausky a@a.a wrote: snip OSX is a nice OS. I gave it a try once or twice. The OS is nice, but man, when I started looking for software on the web

Re: std.xml: Why is it so slow? Is there anything else wrong with it?

2011-03-12 Thread Bekenn
Do we want to take a look at libxml, or are there legal issues with that?

Re: std.xml: Why is it so slow? Is there anything else wrong with it?

2011-03-12 Thread Jonathan M Davis
On Saturday 12 March 2011 20:39:31 Daniel Gibson wrote: Am 13.03.2011 05:34, schrieb dsimcha: There seems to be a consensus around here that Phobos needs a good XML module, and that std.xml doesn't cut it, at least partly due to performance issues. I have no clue how to write a good XML

Re: LDC2: Where do bug reports go?

2011-03-12 Thread Alexey Prokhin
I've noticed that the issue tracker tab on the LDC2 project (https://bitbucket.org/prokhin_alexey/ldc2/overview) is missing. First, why is it missing? I disabled it on purpose, because I am going to delete my branch soon and work directly with ldc main repository. Second, if it's missing

Re: Curl support RFC

2011-03-12 Thread Jonas Drewsen
On 13/03/11 00.28, Jonathan M Davis wrote: On Saturday 12 March 2011 13:51:37 Jonas Drewsen wrote: On 12/03/11 20.44, Jesse Phillips wrote: Jonas Drewsen Wrote: On 11/03/11 22.21, Jesse Phillips wrote: I'll make some comments on the API. Do we have to choose Http/Ftp...? The URI already

Re: Fibonacci with ranges

2011-03-12 Thread Russel Winder
On Fri, 2011-03-11 at 18:46 -0500, Jesse Phillips wrote: Without testing: foreach (f; take(recurrence!(a[n-1] + a[n-2])(0UL, 1UL), 50)) teo Wrote: Just curious: How can I get ulong here? foreach (f; take(recurrence!(a[n-1] + a[n-2])(0, 1), 50)) { writeln(f); }

Re: Fibonacci with ranges

2011-03-12 Thread Russel Winder
On Sat, 2011-03-12 at 09:33 +, Russel Winder wrote: [ . . . ] Interestingly, or not, the code: long declarative ( immutable long n ) { return take ( recurrence ! ( a[n-1] + a[n-2] ) ( 0L , 1L ) , n ) ; } results in the return statement delivering: rdmd --main -unittest

Re: Fibonacci with ranges

2011-03-12 Thread Jonathan M Davis
On Saturday 12 March 2011 01:33:34 Russel Winder wrote: On Fri, 2011-03-11 at 18:46 -0500, Jesse Phillips wrote: Without testing: foreach (f; take(recurrence!(a[n-1] + a[n-2])(0UL, 1UL), 50)) teo Wrote: Just curious: How can I get ulong here? foreach (f; take(recurrence!(a[n-1]

Re: Fibonacci with ranges

2011-03-12 Thread Ali Çehreli
On 03/12/2011 01:33 AM, Russel Winder wrote: On Fri, 2011-03-11 at 18:46 -0500, Jesse Phillips wrote: Without testing: foreach (f; take(recurrence!(a[n-1] + a[n-2])(0UL, 1UL), 50)) teo Wrote: Just curious: How can I get ulong here? foreach (f; take(recurrence!(a[n-1] + a[n-2])(0, 1),

Re: Fibonacci with ranges

2011-03-12 Thread Russel Winder
Jonathan, Thanks for the info, very helpful. One point though: On Sat, 2011-03-12 at 01:56 -0800, Jonathan M Davis wrote: [ . . . ] What's happening is that the parameter that you're passing n to for recurrence is size_t. And on 32-bit systems, size_t is uint, so passing n - which is

Re: Fibonacci with ranges

2011-03-12 Thread Russel Winder
On Sat, 2011-03-12 at 02:15 -0800, Ali Çehreli wrote: [ . . . ] void main() { long[] data = [ 0, 1, 1, 2, 3, 5, 8 ]; foreach (n; 0 .. data.length) { assert(equal(declarative(n), data[0..n])); } } In fact the driver is: unittest { immutable data = [ [ 0 , 0

Re: Fibonacci with ranges

2011-03-12 Thread Jonathan M Davis
On Saturday 12 March 2011 02:48:19 Russel Winder wrote: Jonathan, On Sat, 2011-03-12 at 10:31 +, Russel Winder wrote: [ . . . ] What's happening is that the parameter that you're passing n to for recurrence is size_t. And on 32-bit systems, size_t is uint, so passing n - which

struct construct with array

2011-03-12 Thread Caligo
struct Test{ public double[3] ar_; this(double[3] ar){ this.ar_ = ar; } } void main(){ double[3] v1 = [1.0, 2.0, 3.0]; double[3] v2 = [2.0, 3.0, 4.0]; auto t1 = Test(v1[0..$] + v2[0..$]); // error } I want to add those two arrays and call the constructor in one line, but

Re: struct construct with array

2011-03-12 Thread Andrej Mitrovic
The best thing I can think of is introducing a temp variable: void main(){ double[3] v1 = [1.0, 2.0, 3.0]; double[3] v2 = [2.0, 3.0, 4.0]; double[3] v3 = v1[] + v2[]; auto t1 = Test(v3); }

Points and Vectors in 3D

2011-03-12 Thread Caligo
Given everything that D offers, what would be the best way to implement a Point and a Vector type? The same (x, y, z) can be used to represent vectors, but a point represents a position, whereas a vector represents a direction. So, would you define two different structs for each? or define and

Ranges

2011-03-12 Thread Jonas Drewsen
Hi, I'm working a bit with ranges atm. but there are definitely some things that are not clear to me yet. Can anyone tell me why the char arrays cannot be copied but the int arrays can? import std.stdio; import std.algorithm; void main(string[] args) { // This works int[] a1 =

Re: Points and Vectors in 3D

2011-03-12 Thread Simon
On 12/03/2011 20:51, Caligo wrote: Given everything that D offers, what would be the best way to implement a Point and a Vector type? The same (x, y, z) can be used to represent vectors, but a point represents a position, whereas a vector represents a direction. So, would you define two

Re: struct construct with array

2011-03-12 Thread Ali Çehreli
On 03/12/2011 10:42 AM, Caligo wrote: struct Test{ public double[3] ar_; this(double[3] ar){ this.ar_ = ar; } } void main(){ double[3] v1 = [1.0, 2.0, 3.0]; double[3] v2 = [2.0, 3.0, 4.0]; auto t1 = Test(v1[0..$] + v2[0..$]); // error } I want to add those two

Re: struct construct with array

2011-03-12 Thread Ali Çehreli
On 03/12/2011 02:52 PM, Ali Çehreli wrote: On 03/12/2011 10:42 AM, Caligo wrote: struct Test{ public double[3] ar_; this(double[3] ar){ this.ar_ = ar; } } void main(){ double[3] v1 = [1.0, 2.0, 3.0]; double[3] v2 = [2.0, 3.0, 4.0]; auto t1 = Test(v1[0..$] + v2[0..$]); // error } I want

Re: Ranges

2011-03-12 Thread Jonathan M Davis
On Saturday 12 March 2011 14:02:00 Jonas Drewsen wrote: Hi, I'm working a bit with ranges atm. but there are definitely some things that are not clear to me yet. Can anyone tell me why the char arrays cannot be copied but the int arrays can? import std.stdio; import std.algorithm;

Re: Points and Vectors in 3D

2011-03-12 Thread Bekenn
On 3/12/2011 2:20 PM, Simon wrote: I've done lots of 3d over the years and used quite a lot of different libraries and I've come to prefer code that makes a distinction between points and vectors. Agreed. This has some nice benefits with operator overloading, as well: vec v = ...;

Re: Ranges

2011-03-12 Thread Bekenn
On 3/12/2011 2:02 PM, Jonas Drewsen wrote: Error message: test2.d(13): Error: template std.algorithm.copy(Range1,Range2) if (isInputRange!(Range1) isOutputRange!(Range2,ElementType!(Range1))) does not match any function template declaration test2.d(13): Error: template

Re: Ranges

2011-03-12 Thread Bekenn
Or, better yet, just read Jonathan's post.

Re: Ranges

2011-03-12 Thread Jonathan M Davis
On Saturday 12 March 2011 16:05:37 Jonathan M Davis wrote: You could open an enhancement request for copy to treat char[] and wchar[] as arrays if _both_ of the arguments are of the same type. Actually, on reflection, I'd have to say that there's not much point to that. If you really want to

Re: Ranges

2011-03-12 Thread Jonathan M Davis
On Saturday 12 March 2011 16:11:20 Bekenn wrote: On 3/12/2011 2:02 PM, Jonas Drewsen wrote: Error message: test2.d(13): Error: template std.algorithm.copy(Range1,Range2) if (isInputRange!(Range1) isOutputRange!(Range2,ElementType!(Range1))) does not match any function template

.di header imports with DLL symbols fails to link

2011-03-12 Thread Andrej Mitrovic
On Windows, x86. http://dl.dropbox.com/u/9218759/DLL_Imports.zip fail_build.bat runs: dmd driver.d mydll.lib -I%cd%\include\ but linking fails: driver.obj(driver) Error 42: Symbol Undefined _D5mydll12__ModuleInfoZ --- errorlevel 1 work_build.bat runs: dmd driver.d mydll.lib

Re: Ranges

2011-03-12 Thread Andrej Mitrovic
What Jonathan said really needs to be put up on the D website, maybe under the articles section. Heck, I'd just put a link to that recent UTF thread on the website, it's really informative (the one on UTF and meaning of glyphs, etc). And UTF will only get more important, just like multicore.

Re: .di header imports with DLL symbols fails to link

2011-03-12 Thread Bekenn
On 3/12/2011 5:24 PM, Andrej Mitrovic wrote: driver.obj(driver) Error 42: Symbol Undefined _D5mydll12__ModuleInfoZ --- errorlevel 1 Your dll is exporting a different symbol: _D5mydll3fooFiZi Do you have the .def file and the command line used to build the DLL?

Re: .di header imports with DLL symbols fails to link

2011-03-12 Thread Daniel Green
On 3/12/2011 9:15 PM, Bekenn wrote: On 3/12/2011 5:24 PM, Andrej Mitrovic wrote: driver.obj(driver) Error 42: Symbol Undefined _D5mydll12__ModuleInfoZ --- errorlevel 1 Your dll is exporting a different symbol: _D5mydll3fooFiZi Do you have the .def file and the command line used to build the

Re: .di header imports with DLL symbols fails to link

2011-03-12 Thread Andrej Mitrovic
Actually passing that .di file compiles it in statically, and the exe ends up not needing the DLL. It's a bit too late for me to thinker with the linker, I'll have a clearer head tomorrow.

Re: .di header imports with DLL symbols fails to link

2011-03-12 Thread Andrej Mitrovic
My commands to compile were: dmd -ofmydll.dll mydll.d dmd -o- -Hdinclude mydll.d dmd driver.d mydll.lib -I%cd%\include

Re: .di header imports with DLL symbols fails to link

2011-03-12 Thread Bekenn
On 3/12/2011 7:02 PM, Andrej Mitrovic wrote: My commands to compile were: dmd -ofmydll.dll mydll.d dmd -o- -Hdinclude mydll.d dmd driver.d mydll.lib -I%cd%\include Thanks. I've tried several things, but can't get the _D5mydll12__ModuleInfoZ symbol to show up at all. The behavior is the same

Re: .di header imports with DLL symbols fails to link

2011-03-12 Thread Daniel Green
On 3/12/2011 11:39 PM, Bekenn wrote: On 3/12/2011 7:02 PM, Andrej Mitrovic wrote: My commands to compile were: dmd -ofmydll.dll mydll.d dmd -o- -Hdinclude mydll.d dmd driver.d mydll.lib -I%cd%\include Thanks. I've tried several things, but can't get the _D5mydll12__ModuleInfoZ symbol to show

Re: Ranges

2011-03-12 Thread Jonas Drewsen
Hi Jonathan, Thank you very much your in depth answer! It should indeed goto a faq somewhere it think. I did now about the codepoint/unit stuff but had no idea that ranges of char are handled using dchar internally. This makes sense but is an easy pitfall for newcomers trying to use

[Issue 5731] WindowsTimeZone has offsets from UTC backwards

2011-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5731 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added Status|NEW |ASSIGNED --

[Issue 5731] New: WindowsTimeZone has offsets from UTC backwards

2011-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5731 Summary: WindowsTimeZone has offsets from UTC backwards Product: D Version: unspecified Platform: All OS/Version: Windows Status: NEW Severity: normal Priority: P2

[Issue 5730] Error: variable has scoped destruction, cannot build closure

2011-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5730 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5730] Error: variable has scoped destruction, cannot build closure

2011-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5730 --- Comment #2 from Max Samukha samu...@voliacable.com 2011-03-12 01:53:09 PST --- No, no. The bug is not about the impossibility to build a closure. It is about __traits(compiles) not handling the compilation error properly. It should

[Issue 5730] Error: variable has scoped destruction, cannot build closure

2011-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5730 Max Samukha samu...@voliacable.com changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 5730] __traits(compiles) does not handle variable has scoped destruction, cannot build closure error correctly

2011-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5730 Max Samukha samu...@voliacable.com changed: What|Removed |Added Summary|Error: variable has scoped |__traits(compiles)

[Issue 5731] std.datetime.SysTime prints UTC offsets backwards

2011-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5731 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added Summary|WindowsTimeZone has offsets

[Issue 5732] New: Windows installer 1.067 creates incorrect target for Start menu link

2011-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5732 Summary: Windows installer 1.067 creates incorrect target for Start menu link Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW

[Issue 5730] __traits(compiles) does not handle variable has scoped destruction, cannot build closure error correctly

2011-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5730 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||clugd...@yahoo.com.au ---