Re: Next Release

2011-04-20 Thread Jonathan M Davis
> Jonathan M Davis wrote: > >> Greetings All > >> > >> It has been 2 months since we had release 2.052. Just wondering when is > >> the 2.053 release planned? > > > > There isn't really a release schedule. A release kind of just happens > > when Walter decides that it's time or when someone else

Re: multiple return

2011-04-20 Thread bearophile
%u: > how can I use the return values individual? One of the simpler ways is to think of a tuple as an array, and use sometuple[0] to take its first item, etc. But your tuple indexes need to be compile-time constants. Bye, bearophile

Re: multiple return

2011-04-20 Thread %u
thanks you all, it works. last thing, I have this Tuple!(int,int,int)(1, 2, 3) how can I use the return values individual? to be more clear if I rturn tuple(a, b, c) can I write in the code void main() { //call the function here writeln(a); }

Shouldn't spawn work with __gshared?

2011-04-20 Thread Andrej Mitrovic
Before you give me a lecture on thread safety, sometimes I have to test code on-the-fly and __gshared comes in really handy when working with C codebases. Now, here's something that won't fly: import std.concurrency; class Foo { } __gshared Foo foo; void main() { foo = new Foo();

Re: Getting function argument names?

2011-04-20 Thread Jacob Carlborg
On 2011-04-20 22:05, Sean Cavanaugh wrote: I am working on a template class to provide function wrappers for COM based objects, so the calling code doesn't have to dereference the underlying pointer. In C++ we get this behavior for 'free' by overloading operator->. In D I can create a fairly funk

Getting function argument names?

2011-04-20 Thread Sean Cavanaugh
I am working on a template class to provide function wrappers for COM based objects, so the calling code doesn't have to dereference the underlying pointer. In C++ we get this behavior for 'free' by overloading operator->. In D I can create a fairly funky mixin template to inspect the contain

Re: Next Release

2011-04-20 Thread Don
Jonathan M Davis wrote: Greetings All It has been 2 months since we had release 2.052. Just wondering when is the 2.053 release planned? There isn't really a release schedule. A release kind of just happens when Walter decides that it's time or when someone else on the dev team (like Don)

Re: Next Release

2011-04-20 Thread Jonathan M Davis
> Greetings All > > It has been 2 months since we had release 2.052. Just wondering when is the > 2.053 release planned? There isn't really a release schedule. A release kind of just happens when Walter decides that it's time or when someone else on the dev team (like Don) pushes for one. Give

Re: Starting new project

2011-04-20 Thread Steven Schveighoffer
On Wed, 20 Apr 2011 14:39:32 -0400, Mandeep wrote: Hi, I am not sure if this is the correct forum but i could not find a better one. Just wanted to understand the process for putting a new project on dsource. How do i create it and how do i upload some code there. See www.dsource.org, c

Starting new project

2011-04-20 Thread Mandeep
Hi, I am not sure if this is the correct forum but i could not find a better one. Just wanted to understand the process for putting a new project on dsource. How do i create it and how do i upload some code there. Also, what license do i write on the files if i have ported some code from other pl

Re: sin(float), cos(float)

2011-04-20 Thread bearophile
http://d.puremagic.com/issues/show_bug.cgi?id=5866

Re: Next Release

2011-04-20 Thread bearophile
d coder: > It has been 2 months since we had release 2.052. Just wondering when is the > 2.053 release planned? Walter & Co seem to have shifted gear and he's currently cranking bugs like peanuts, please let him go on a little more :-) This Git thing seems to start to give its fruits. There is

Next Release

2011-04-20 Thread d coder
Greetings All It has been 2 months since we had release 2.052. Just wondering when is the 2.053 release planned? Also, is there an automated way to create a snapshot release from the git repositories? Regards - Puneet

use case for "alias this"

2011-04-20 Thread spir
Hello, For what it's worth, I have finally found one use case for the famous "alias this" trick for structs: struct ScienceConstant { float value; string name; alias value this; string toString () { return this.name; } } unittest { auto PI = ScienceConstant(3.14, "pi");

Re: D1 and D2 differences

2011-04-20 Thread Jacob Carlborg
On 2011-04-20 08:19, Mike Linford wrote: How up to date is http://digitalmars.com/d/2.0/features2.html ? If it's old, what differences can people think of off the tops of their heads that are not listed? There's a lot of missing on the page. * opDispatch * alias this * constructors/destructo