Re: dcollections 2.0b

2010-09-07 Thread Steven Schveighoffer
On Mon, 06 Sep 2010 16:52:57 -0400, BLS windev...@hotmail.de wrote: On 24/08/2010 17:45, Steven Schveighoffer wrote: dcollections second beta version 2.0b is up. This fixes a few bugs, and adds some features such as passing in elements on construction. See the full changelog here:

Re: Sept. 15 - The Many Faces of D

2010-09-07 Thread Walter Bright
Mike James wrote: For those of us on different continents - will it be available on youtube :-) I don't know.

Re: Sept. 15 - The Many Faces of D

2010-09-07 Thread Emil Madsen
Would love to see it :) However for at student in europe, its quite far. Hoping for availablity of it, on youtube :) On 7 September 2010 20:16, Walter Bright newshou...@digitalmars.com wrote: Mike James wrote: For those of us on different continents - will it be available on youtube :-) I

Re: Sept. 15 - The Many Faces of D

2010-09-07 Thread Phil Deets
On Sun, 05 Sep 2010 03:22:08 -0700, Walter Bright newshou...@digitalmars.com wrote: I'll be giving a presentation on The Many Faces of D at the Northwest C++ Users' Group meeting on Sept. 15. http://nwcpp.org/ 3 copies of The D Programming Language book autographed by Andrei will be

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread Nick Sabalausky
BCS n...@anon.com wrote in message news:a6268ff1b9ca8cd1c2c66c86...@news.digitalmars.com... Hello Nick, BCS n...@anon.com wrote in message news:a6268ff1b9958cd1bfa01297...@news.digitalmars.com... Hello Nick, Ugh, don't even get me started on MicroSD. Ordinary SD is already too small if

Re: [Challenge] implementing the ambiguous operator in D

2010-09-07 Thread Peter Alexander
I agree with Andrei here, building hypercubes makes more sense, and feels like it has more structure. It also has the nice property that, once you've seen a (n+1)th element of any range then you have already explored the entire product of the first n elements of every range, kind of like how

Re: any update on large file support for linux?

2010-09-07 Thread Lars T. Kyllingstad
The SVN version of std.stdio supports large files on Linux and OSX. The next release will be a nice one, I think. :) -Lars

Thread + socket = (shared) problem? (2.048)

2010-09-07 Thread Bane
This will throw exception on trying to create socket in derived thread. Socket created in main thread is ok. Is it some shared issue or... ? I have been trying to find something info in docs and mailing list but no result. import std.stdio; import core.thread; import std.socket; class MyThread

Re: Cloning in D

2010-09-07 Thread Jacob Carlborg
On 2010-09-07 04:16, Michel Fortin wrote: On 2010-09-06 20:55:16 -0400, dsimcha dsim...@yahoo.com said: == Quote from Michel Fortin (michel.for...@michelf.com)'s article I'm under the impression that a too permissive generic implementation of cloning is going to break things in various

Re: Thread + socket = (shared) problem? (2.048)

2010-09-07 Thread Bane
This is what I get: std.socket.SocketException: Unable to create socket

Re: Thread + socket = (shared) problem? (2.048)

2010-09-07 Thread Bane
I triple checked it. 2.0.48 has problems with this, 2.040, 2.045 2.047 don't. This will throw exception on trying to create socket in derived thread. Socket created in main thread is ok. Is it some shared issue or... ? I have been trying to find something info in docs and mailing list but

Re: Thread + socket = (shared) problem? (2.048)

2010-09-07 Thread Bane
Errr... sorry guys. Joke is on me. Main threads exits before socket is created in new thread. Simple call to sleep() fix this.

Re: Thread + socket = (shared) problem? (2.048)

2010-09-07 Thread Masahiro Nakagawa
On Tue, 07 Sep 2010 18:48:22 +0900, Bane branimir.milosavlje...@gmail.com wrote: Please show your environment. Windows? WinXP sp2, phenom quad core. Current std.socket uses static ~this for WSACleanup. In this case, main thread calls static ~this before MyThread executes new TcpSocket.

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread BCS
Hello Nick, BCS n...@anon.com wrote in message news:a6268ff1b9ca8cd1c2c66c86...@news.digitalmars.com... Hello Nick, BCS n...@anon.com wrote in message news:a6268ff1b9958cd1bfa01297...@news.digitalmars.com... Hello Nick, Ugh, don't even get me started on MicroSD. Ordinary SD is already

Re: [Challenge] implementing the ambiguous operator in D

2010-09-07 Thread Andrei Alexandrescu
On 09/07/2010 02:43 AM, Peter Alexander wrote: I agree with Andrei here, building hypercubes makes more sense, and feels like it has more structure. It also has the nice property that, once you've seen a (n+1)th element of any range then you have already explored the entire product of the

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread retard
Tue, 07 Sep 2010 05:45:55 +, BCS wrote: Hello Nick, BCS n...@anon.com wrote in message news:a6268ff1b9958cd1bfa01297...@news.digitalmars.com... Hello Nick, Ugh, don't even get me started on MicroSD. Ordinary SD is already too small if you ask me, although I still put up with it

Re: any update on large file support for linux?

2010-09-07 Thread Lars Holowko
On Tue, Sep 7, 2010 at 1:08 AM, Lars T. Kyllingstad pub...@kyllingen.nospamnet wrote: The SVN version of std.stdio supports large files on Linux and OSX.  The next release will be a nice one, I think. :) -Lars Thanks Lars, For the hint to the svn versions. Things seem to work there. What

Re: any update on large file support for linux?

2010-09-07 Thread Andrei Alexandrescu
On 9/7/10 11:05 CDT, Lars Holowko wrote: On Tue, Sep 7, 2010 at 1:08 AM, Lars T. Kyllingstad pub...@kyllingen.nospamnet wrote: The SVN version of std.stdio supports large files on Linux and OSX. The next release will be a nice one, I think. :) -Lars Thanks Lars, For the hint to the svn

Re: any update on large file support for linux?

2010-09-07 Thread Lars Holowko
On Tue, Sep 7, 2010 at 9:34 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: I did not realize that 1024 * 1024 * 1024 * 6 turns negative and then gets converted to a negative long (without even a warning). Overseeing that had killed my own efforts to hack 64-bit support into phobos

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread domino
BCS Wrote: Hello Nick, BCS n...@anon.com wrote in message news:a6268ff1b9ca8cd1c2c66c86...@news.digitalmars.com... Hello Nick, BCS n...@anon.com wrote in message news:a6268ff1b9958cd1bfa01297...@news.digitalmars.com... Hello Nick, Ugh, don't even get me started on

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread domino
the retarded superretard script kid Wrote: Tue, 07 Sep 2010 05:45:55 +, BCS wrote: Hello Nick, BCS n...@anon.com wrote in message news:a6268ff1b9958cd1bfa01297...@news.digitalmars.com... Hello Nick, Ugh, don't even get me started on MicroSD. Ordinary SD is already too

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread Walter Bright
BCS wrote: People want a phone that has a key board from the get go. How many people actually want to /add/ one to the phone they have? I like being able now and then to attach a full size keyboard.

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread Walter Bright
domino wrote: Ordinary man cannot have 5 TB of data because ALL standard movie/audio CD/DVD/Bluray/HD-DVD discs have DRM copy protection. CDs are not copy protected. I'm running around .5 TB these days, and none of it is DRM'd material. (Family movies eat up space like you wouldn't believe,

Re: [OT] Use case for a 4-D matrix

2010-09-07 Thread Tomek Sowiński
Dnia 04-09-2010 o 08:03:12 John Demme j...@cs.columbia.edu napisał(a): As for the graphs, I essentially take two input graphs, represented in adjacency matrix form (two 2-d matrices of size n^2 each, assuming equal sized graphs). Then, I compute the Kronecker Tensor Graph Product[2], which

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread domino
Walter Bright Wrote: domino wrote: Ordinary man cannot have 5 TB of data because ALL standard movie/audio CD/DVD/Bluray/HD-DVD discs have DRM copy protection. CDs are not copy protected. False. I have 10--20 discs with cactus data protection. Two with sony bmg rootkit protection

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread Nick Sabalausky
domino eff...@sitemine.org wrote in message news:i666vt$158...@digitalmars.com... Walter Bright Wrote: domino wrote: Ordinary man cannot have 5 TB of data because ALL standard movie/audio CD/DVD/Bluray/HD-DVD discs have DRM copy protection. CDs are not copy protected. False. I have

D1/D2: How to check if a method has been overridden

2010-09-07 Thread klickverbot
Hello all, as some of you might know, I have started working on a D module for SWIG quite some time ago. In the meantime, the project is almost ready for inclusion in SWIG trunk as a full-fledged language module supporting D1/Tango and D2/Phobos. However, there is one major blocker left: I

Re: D1/D2: How to check if a method has been overridden

2010-09-07 Thread Mafi
Am 07.09.2010 23:00, schrieb klickverbot: Hello all, as some of you might know, I have started working on a D module for SWIG quite some time ago. In the meantime, the project is almost ready for inclusion in SWIG trunk as a full-fledged language module supporting D1/Tango and D2/Phobos.

Re: D1/D2: How to check if a method has been overridden

2010-09-07 Thread klickverbot
On 9/7/10 11:12 PM, dsimcha wrote: One way to test for overriding at runtime is to compare the function pointer of a delegate obtained at runtime to the function pointer obtained from the compile time type. That's basically the same idea I were already using, but have you tried implementing

Re: D1/D2: How to check if a method has been overridden

2010-09-07 Thread dsimcha
One way to test for overriding at runtime is to compare the function pointer of a delegate obtained at runtime to the function pointer obtained from the compile time type. Here's a simplified example: import std.stdio; class A { void fun() {} } class B : A { override void fun() {} }

Re: D1/D2: How to check if a method has been overridden

2010-09-07 Thread klickverbot
On 9/7/10 11:07 PM, Mafi wrote: I'm not sure if the right isn't an shortcut for the left […] Unfortunately, the right indeed is a shortcut for the left – the lookup is performed using the vtbl. Furthermore, this would not solve my problem with overloaded functions.

Re: D1/D2: How to check if a method has been overridden

2010-09-07 Thread dsimcha
== Quote from klickverbot (s...@klickverbot.at)'s article On 9/7/10 11:12 PM, dsimcha wrote: One way to test for overriding at runtime is to compare the function pointer of a delegate obtained at runtime to the function pointer obtained from the compile time type. That's basically

Re: D1/D2: How to check if a method has been overridden

2010-09-07 Thread bearophile
klickverbot: class A { void foo( float a ) {} void foo( int a ) {} final void bar() { // Determine whether this.foo( 1 ) and this.foo( 1f ) really refer // to A.foo( float ) and A.foo( int ) or if they point to a subclass // implementation – how? } } class

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread Walter Bright
Nick Sabalausky wrote: The vast majority of CDs don't have that. I have approx 250 commercial audio CDs, and not a single one of them has any DRM. And if I did want something that only came on a DRMed CD, I'd just say Fuck you Sony and pirate it. I have around 400 CDs, and also exactly zero

Re: D1/D2: How to check if a method has been overridden

2010-09-07 Thread klickverbot
On 9/7/10 11:31 PM, bearophile wrote: Have you tried to compile that code with -w? See also: http://d.puremagic.com/issues/show_bug.cgi?id=4216 Bye, bearophile Well, I guess I should have wrote the following instead: --- class A { void foo( float a ) {} void foo( int a ) {} final

Re: D1/D2: How to check if a method has been overridden

2010-09-07 Thread klickverbot
s/have wrote/have written/

Re: D1/D2: How to check if a method has been overridden

2010-09-07 Thread klickverbot
Putting the overloading issue aside for a moment, how would you implement it inside a member function of a (which is required for various reasons? The following does *not* work, because A.foo also performs a vtbl lookup when put inside A… --- class A { void foo() {} void bar() {

Re: D1/D2: How to check if a method has been overridden

2010-09-07 Thread Jason House
That looks like something that should go into bugzilla. klickverbot Wrote: Putting the overloading issue aside for a moment, how would you implement it inside a member function of a (which is required for various reasons? The following does *not* work, because A.foo also performs a vtbl

[OT]: Google AI Challenge: starter package for D

2010-09-07 Thread Seth Hoenig
On Friday (Sept. 10), Google/The University of Waterloo is going to open up registration for the next Google AI Challenge. Right now they are accepting starter packages for any language with a free compiler that can run on Ubuntu 8.04 (what their server runs), which means dmd is a candidate. I

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread BCS
Hello domino, Walter Bright Wrote: domino wrote: Ordinary man cannot have 5 TB of data because ALL standard movie/audio CD/DVD/Bluray/HD-DVD discs have DRM copy protection. CDs are not copy protected. False. I have 10--20 discs with cactus data protection. Two with sony bmg rootkit

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread BCS
Hello Nick, domino eff...@sitemine.org wrote in message news:i666vt$158...@digitalmars.com... Walter Bright Wrote: domino wrote: Ordinary man cannot have 5 TB of data because ALL standard movie/audio CD/DVD/Bluray/HD-DVD discs have DRM copy protection. CDs are not copy protected.

Re: [Slight OT] TDPL in Russia

2010-09-07 Thread BCS
Hello retard, Tue, 07 Sep 2010 05:45:55 +, BCS wrote: I wouldn't. I'd put it in a package about 4-5 times as big and mount it on the PC board. Besides, what the heck do you need more than about 32GB for on a phone? If you need to shoot that much video, get a real camera! I have 32 GB

Troll

2010-09-07 Thread BCS

Re: forks/pipes and std.socket

2010-09-07 Thread Masahiro Nakagawa
On Mon, 06 Sep 2010 05:32:28 +0900, Nick Sabalausky a...@a.a wrote: This may be a stupid question: Does std.socket encorporate or replace pipe usage? Ie, if I'm going to do something along the lines of (psuedo-code): auto parentToChild = pipe(); auto childToParent = pipe(); if(fork()) {

Re: Generic collection/element function signatures in D2 versus D1

2010-09-07 Thread Jacob Carlborg
On 2010-09-07 14:49, Steven Schveighoffer wrote: On Sun, 05 Sep 2010 09:40:59 -0400, BLS windev...@hotmail.de wrote: On 05/09/2010 02:16, Jonathan M Davis wrote: void foo(T)(T[] collection, T elem) { // Blah, whatever } I am curious, how this will look and feel once inout is working ?

Re: Fast temporary dynamic arrays? (And slicing of them)

2010-09-07 Thread Steven Schveighoffer
On Sun, 05 Sep 2010 22:41:50 -0400, bearophile bearophileh...@lycos.com wrote: Tom Kazimiers: How can I have a (temporary) dynamic array on stack and make references to it (no copying)? I successively put integers in an array (but don't know how much there will be in advance) with an

Question about typeof(this)

2010-09-07 Thread Jacob Carlborg
I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof where it says: typeof(this) will generate the type of what this would be in a non-static member function, even if not in a member function. From that I got the impression that the code below would print the same result,

Re: Generic collection/element function signatures in D2 versus D1

2010-09-07 Thread Steven Schveighoffer
On Tue, 07 Sep 2010 08:56:15 -0400, Jacob Carlborg d...@me.com wrote: On 2010-09-07 14:49, Steven Schveighoffer wrote: On Sun, 05 Sep 2010 09:40:59 -0400, BLS windev...@hotmail.de wrote: On 05/09/2010 02:16, Jonathan M Davis wrote: void foo(T)(T[] collection, T elem) { // Blah, whatever }

Re: Generic collection/element function signatures in D2 versus D1

2010-09-07 Thread Pelle
On 09/07/2010 03:15 PM, Steven Schveighoffer wrote: On Tue, 07 Sep 2010 08:56:15 -0400, Jacob Carlborg d...@me.com wrote: On 2010-09-07 14:49, Steven Schveighoffer wrote: On Sun, 05 Sep 2010 09:40:59 -0400, BLS windev...@hotmail.de wrote: On 05/09/2010 02:16, Jonathan M Davis wrote: void

Pop an element from an array inplace?

2010-09-07 Thread Paolo Invernizzi
Hi all, What's the best way to find an element into an array, drop it and shrink the array inplace, in D2? Thanks in advance, Paolo

Re: Generic collection/element function signatures in D2 versus D1

2010-09-07 Thread Steven Schveighoffer
On Tue, 07 Sep 2010 09:28:18 -0400, Pelle pelle.mans...@gmail.com wrote: On 09/07/2010 03:15 PM, Steven Schveighoffer wrote: On Tue, 07 Sep 2010 08:56:15 -0400, Jacob Carlborg d...@me.com wrote: On 2010-09-07 14:49, Steven Schveighoffer wrote: On Sun, 05 Sep 2010 09:40:59 -0400, BLS

Re: Question about typeof(this)

2010-09-07 Thread Don
Jacob Carlborg wrote: I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof where it says: typeof(this) will generate the type of what this would be in a non-static member function, even if not in a member function. From that I got the impression that the code below would

Re: Question about typeof(this)

2010-09-07 Thread Stanislav Blinov
07.09.2010 17:00, Jacob Carlborg пишет: I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof where it says: typeof(this) will generate the type of what this would be in a non-static member function, even if not in a member function. From that I got the impression that the

Re: Generic collection/element function signatures in D2 versus D1

2010-09-07 Thread Pelle
On 09/07/2010 04:33 PM, Steven Schveighoffer wrote: Yes, a valid return. Your function should be: void foo(void delegate(const(C) f) const It helps to understand that inout/const/immutable has NOTHING to do with code generation, it only has to do with limiting what compiles. For this reason,

Re: Fast temporary dynamic arrays? (And slicing of them)

2010-09-07 Thread Tom Kazimiers
Hi, thanks for your tests. On 09/06/2010 04:59 AM, bearophile wrote: My first test shows that it may work. But I have to grow the array backwards, and push back the array start, because that's how my stack grows (using alloca to allocate geometrically bigger chunks). So unless you want to

Re: Fast temporary dynamic arrays? (And slicing of them)

2010-09-07 Thread bearophile
Steven Schveighoffer: Note that the new appender uses heap data to store its implementation, so it's not as quick as it could be. This is per Andrei's requirement that it be a reference type. Thank you for your answers. But I don't fully understand your answer. Do you mean it uses the

Re: Pop an element from an array inplace?

2010-09-07 Thread bearophile
Paolo Invernizzi: What's the best way to find an element into an array, drop it and shrink the array inplace, in D2? Inside the module std.array there is a commented out function that allows to remove items. I don't know why it is commented out, maybe there is some bug. You can find the

Input Scanning

2010-09-07 Thread Max Mayrhofer
Hi all, I have what is I suspect a silly question, but I am having a total brainfart over this for some reason. I want to read an arbitrary amount of floats from user input and then perform some statistics work on them. For some reason, I can't figure out how to get it to recognise when the user

DMD2 does not link on windows 7-64bit

2010-09-07 Thread %u
I get the following strange message when linking: == http://www.digitalmars.com/ctg/optlink.html OPTLINK : Warning 23: No Stack first.obj(first) Error 42: Symbol Undefined _D3std5stdio6stdoutS3std5stdio4File first.obj(first) Error 42: Symbol

Re: Generic collection/element function signatures in D2 versus D1

2010-09-07 Thread Steven Schveighoffer
On Tue, 07 Sep 2010 11:37:20 -0400, Pelle pelle.mans...@gmail.com wrote: On 09/07/2010 04:33 PM, Steven Schveighoffer wrote: Yes, a valid return. Your function should be: void foo(void delegate(const(C) f) const It helps to understand that inout/const/immutable has NOTHING to do with code

Re: DMD2 does not link on windows 7-64bit

2010-09-07 Thread OK
To answer my own post : the problems vanish when I add a main() method. question : how do I automagically add a standard main method ? regards, Oliver

Re: Fast temporary dynamic arrays? (And slicing of them)

2010-09-07 Thread Steven Schveighoffer
On Tue, 07 Sep 2010 12:54:52 -0400, bearophile bearophileh...@lycos.com wrote: Steven Schveighoffer: Note that the new appender uses heap data to store its implementation, so it's not as quick as it could be. This is per Andrei's requirement that it be a reference type. Thank you for

Loading a C/C++ dll

2010-09-07 Thread OK
Hello again, I know the extern(C) mechanism, but how do I actually load a C-dll such that my D-program has access to the functions of the C/C++ dll. regards, Oliver

Re: Question about typeof(this)

2010-09-07 Thread Jacob Carlborg
On 2010-09-07 17:29, Don wrote: Jacob Carlborg wrote: I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof where it says: typeof(this) will generate the type of what this would be in a non-static member function, even if not in a member function. From that I got the

Re: Question about typeof(this)

2010-09-07 Thread Jacob Carlborg
On 2010-09-07 17:34, Stanislav Blinov wrote: 07.09.2010 17:00, Jacob Carlborg пишет: I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof where it says: typeof(this) will generate the type of what this would be in a non-static member function, even if not in a member function.

Re: Loading a C/C++ dll

2010-09-07 Thread Kagamin
OK Wrote: I know the extern(C) mechanism, but how do I actually load a C-dll such that my D-program has access to the functions of the C/C++ dll. You just link to it, system loader will do actual loading for you automatically.

Re: Generic collection/element function signatures in D2 versus D1

2010-09-07 Thread Jacob Carlborg
On 2010-09-07 17:37, Pelle wrote: On 09/07/2010 04:33 PM, Steven Schveighoffer wrote: Yes, a valid return. Your function should be: void foo(void delegate(const(C) f) const It helps to understand that inout/const/immutable has NOTHING to do with code generation, it only has to do with

Re: forks/pipes and std.socket

2010-09-07 Thread Nick Sabalausky
Kagamin s...@here.lot wrote in message news:i660qi$nu...@digitalmars.com... Nick Sabalausky Wrote: Does anyone who's done this sort of thing in D before, on Win or Lin, know of anything else in particular to be aware of? There's no fork on windows. If you want a multithreaded server, it's

Re: DMD2 does not link on windows 7-64bit

2010-09-07 Thread Mike Chaten
If you are trying to compile a library, add -lib to make it not require a main method. On Tue, Sep 7, 2010 at 2:12 PM, OK herrsauro...@lavabit.com wrote: To answer my own post : the problems vanish when I add a main() method. question : how do I automagically add a standard main method ?

How to properly link with a windws .lib file

2010-09-07 Thread OK
hello, now I have written some code in first.d and added some extern(C) functions in externs.d. How do I compile and link everything with extern.lib ? regards, Oliver

Re: Fast temporary dynamic arrays? (And slicing of them)

2010-09-07 Thread bearophile
Steven Schveighoffer: An appender is an ouput range, so passing it into a function so the function can output to it is a requirement. I see, that's useful. I will write a Pimp-less version of it, then (when I don't need a range, but just a local accumulator). Thank you for your always

Re: How to properly link with a windws .lib file

2010-09-07 Thread Stanislav Blinov
OK wrote: hello, now I have written some code in first.d and added some extern(C) functions in externs.d. How do I compile and link everything with extern.lib ? regards, Oliver Recently there was a pretty thorough discussion about this:

Re: forks/pipes and std.socket

2010-09-07 Thread Steven Schveighoffer
On Tue, 07 Sep 2010 14:54:46 -0400, Nick Sabalausky a...@a.a wrote: Kagamin s...@here.lot wrote in message news:i660qi$nu...@digitalmars.com... Nick Sabalausky Wrote: Does anyone who's done this sort of thing in D before, on Win or Lin, know of anything else in particular to be aware of?

Re: Fast temporary dynamic arrays? (And slicing of them)

2010-09-07 Thread bearophile
Tom Kazimiers: But good to know that it would work with backward growing of the array - do have you an example of that? Just created: import std.stdio: writeln; import std.c.stdlib: alloca; void main() { int n = 30; alias int T; enum int initialCapacity = 4; static

Re: Question about typeof(this)

2010-09-07 Thread Don
Jacob Carlborg wrote: On 2010-09-07 17:29, Don wrote: Jacob Carlborg wrote: I'm reading http://www.digitalmars.com/d/2.0/declaration.html#Typeof where it says: typeof(this) will generate the type of what this would be in a non-static member function, even if not in a member function. From

Re: Input Scanning

2010-09-07 Thread Jonathan M Davis
On Tuesday 07 September 2010 09:55:29 Max Mayrhofer wrote: Hi all, I have what is I suspect a silly question, but I am having a total brainfart over this for some reason. I want to read an arbitrary amount of floats from user input and then perform some statistics work on them. For some

Re: How to link in a lib on cmd line?

2010-09-07 Thread Nick Sabalausky
Nick Sabalausky a...@a.a wrote in message news:i66oia$25s...@digitalmars.com... I've tried all sorts of stuff and looked all over, but I'm completely at a loss. How do I link in a static lib on the command line? And I don't mean with C or anything like that, just ordinary D. type main.d

Re: How to link in a lib on cmd line?

2010-09-07 Thread Jonathan M Davis
On Tuesday 07 September 2010 18:23:59 Nick Sabalausky wrote: I've tried all sorts of stuff and looked all over, but I'm completely at a loss. How do I link in a static lib on the command line? Don't you just include it as one of the arguments, like all of the .d files? I don't know. I haven't

An array()/map inlining problem

2010-09-07 Thread bearophile
This is interesting, if you compile it with: dmd test.d It works. If you compile it with: dmd -inline test.d It doesn't compile and dmd returns: test.d(5): Error: function D main is a nested function and cannot be accessed from array import std.algorithm: map; import std.array: array; void

Re: Input Scanning

2010-09-07 Thread Max Mayrhofer
Yea of course that does make sense, there ya go :)

[Issue 4826] cannot create associative array and compiler crash

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4826 Don clugd...@yahoo.com.au changed: What|Removed |Added Keywords||diagnostic --- Comment #3

[Issue 4826] cannot create associative array and compiler crash

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4826 --- Comment #4 from Don clugd...@yahoo.com.au 2010-09-07 00:04:26 PDT --- Actually even with the patch for bug 3996, I found a test case which still segfaults: struct Struct4826 { } void bug4826b(T)(int[int] value) {} void

[Issue 4835] New: DMD should warn about integer overflow in computed constant

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 Summary: DMD should warn about integer overflow in computed constant Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity:

[Issue 4835] DMD should warn about integer overflow in computed constant

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4835 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

[Issue 4836] New: duplicated union initialization without a union

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4836 Summary: duplicated union initialization without a union Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2

[Issue 4837] New: Assertion failure: '0' on line 608(614) in file 'constfold.c' during CTFE

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4837 Summary: Assertion failure: '0' on line 608(614) in file 'constfold.c' during CTFE Product: D Version: D2 Platform: x86_64 OS/Version: Windows Status: NEW

[Issue 4826] cannot create associative array and compiler crash

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4826 --- Comment #5 from Don clugd...@yahoo.com.au 2010-09-07 13:47:50 PDT --- The segfault should be turned into an ICE by adding an extra assert into TypeAArray::getImpl(), in mtype.c 3967. +assert(ti-inst || sc); ti-semantic(sc);

[Issue 4838] New: Cannot declare a delegate variable for const member functions

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4838 Summary: Cannot declare a delegate variable for const member functions Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major

[Issue 4834] Implicit sharing via delegates in std.concurrency

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4834 David Simcha dsim...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4814] rdmd: Doesn't rebuild when using -of and turning an -L linker option on or off

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4814 Nick Sabalausky cbkbbej...@mailinator.com changed: What|Removed |Added Summary|rdmd: Doesn't rebuild when |rdmd:

[Issue 4838] Cannot declare a delegate variable for const member functions

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4838 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

[Issue 3564] Rdmd failing to link external C libraries

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3564 Nick Sabalausky cbkbbej...@mailinator.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3564] Rdmd failing to link external C libraries

2010-09-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3564 Nick Sabalausky cbkbbej...@mailinator.com changed: What|Removed |Added Status|RESOLVED|REOPENED