downs wrote:
Justin Johansson wrote:
Happy New Year 2010 Everybody.
Having resumed C++ nationality for the last few months, I kind of miss D's auto
keyword.
If you're on gcc or a compiler that allows the typeof extension:
#define DECL(A, B) typeof(B) A = B
:)
Thanks. I unc
"downs" wrote in message
news:hj1m0r$1k3...@digitalmars.com...
> Justin Johansson wrote:
>> Happy New Year 2010 Everybody.
>>
>> Having resumed C++ nationality for the last few months, I kind of miss
>> D's auto keyword.
>>
>
> If you
Justin Johansson wrote:
> Happy New Year 2010 Everybody.
>
> Having resumed C++ nationality for the last few months, I kind of miss D's
> auto keyword.
>
If you're on gcc or a compiler that allows the typeof extension:
#define DECL(A, B) typeof(B) A = B
:)
"Lutger" wrote in message
news:hilifj$7u...@digitalmars.com...
> On 01/13/2010 10:22 PM, Nick Sabalausky wrote:
>> "Lutger" wrote in message
>> news:hil6gr$2hm...@digitalmars.com...
>>>
>>> All ML derived languages do this much more extensively and they even
>>> don't
>>> need an auto keyword f
On 01/13/2010 08:46 PM, retard wrote:
Wed, 13 Jan 2010 20:22:02 +0100, Lutger wrote:
On 01/13/2010 05:49 PM, Justin Johansson wrote:
Happy New Year 2010 Everybody.
Having resumed C++ nationality for the last few months, I kind of miss
D's auto keyword.
I am wondering, though, from
On 01/13/2010 10:22 PM, Nick Sabalausky wrote:
"Lutger" wrote in message
news:hil6gr$2hm...@digitalmars.com...
All ML derived languages do this much more extensively and they even don't
need an auto keyword for it. C# has var and VB.NET has Dim which mean the
same thing. The nice thing with th
dsimcha wrote:
One underappreciated thing auto gives is DRY for types. It makes it easier to
change the type of some object in the place where it's initially decided,
because
those changes will automagically be propagated to everything that uses that
object, as long as the new type supports the
"Lutger" wrote in message
news:hil6gr$2hm...@digitalmars.com...
>
> All ML derived languages do this much more extensively and they even don't
> need an auto keyword for it. C# has var and VB.NET has Dim which mean the
> same thing. The nice thing with those languages is that if you code in
>
"Justin Johansson" wrote in message
news:hiktil$20a...@digitalmars.com...
> Happy New Year 2010 Everybody.
>
> Having resumed C++ nationality for the last few months, I kind of miss D's
> auto keyword.
>
> I am wondering, though, from an OO/polymorphism
On 01/13/2010 06:19 PM, dsimcha wrote:
== Quote from Justin Johansson (n...@spam.com)'s article
Happy New Year 2010 Everybody.
Having resumed C++ nationality for the last few months, I kind of miss D's auto
keyword.
I am wondering, though, from an OO/polymorphism perspective, a
Wed, 13 Jan 2010 20:22:02 +0100, Lutger wrote:
> On 01/13/2010 05:49 PM, Justin Johansson wrote:
>> Happy New Year 2010 Everybody.
>>
>> Having resumed C++ nationality for the last few months, I kind of miss
>> D's auto keyword.
>>
>> I am wondering,
On 01/13/2010 05:49 PM, Justin Johansson wrote:
Happy New Year 2010 Everybody.
Having resumed C++ nationality for the last few months, I kind of miss D's auto
keyword.
I am wondering, though, from an OO/polymorphism perspective, and UML and sound
software engineering perspective as
Justin Johansson wrote:
> Do any other languages have an "auto" var idiom?
C++0x has:
http://www2.research.att.com/~bs/C++0xFAQ.html#auto
Ali
On Wed, 13 Jan 2010 17:52:41 +0100, Justin Johansson wrote:
And sorry for saying btw twice in the same post.
And sorry for posting this apology.
JJ
You are not forgiven. Post moar apologies. :p
--
Simen
bearophile, el 13 de enero a las 12:01 me escribiste:
> > btw. Do any other languages have an "auto" var idiom? I don't remember
> > Scala having such (and it's really modern), though perhaps my memory lapses.
>
> In C# it's named "var" that's one char shorter :-) Other languages have
> somethi
Justin Johansson wrote:
Happy New Year 2010 Everybody.
Having resumed C++ nationality for the last few months, I kind of miss D's auto
keyword.
I am wondering, though, from an OO/polymorphism perspective, and UML and sound
software engineering perspective as well, what does D's au
== Quote from Justin Johansson (n...@spam.com)'s article
> Happy New Year 2010 Everybody.
> Having resumed C++ nationality for the last few months, I kind of miss D's
> auto
keyword.
> I am wondering, though, from an OO/polymorphism perspective, and UML and sound
software e
Justin Johansson:
> I am wondering, though, from an OO/polymorphism perspective, and UML and
> sound software engineering perspective as well, what does D's auto keyword
> buy you except (perhaps) laziness (in keystrokes)?
In functional/generic code you sometimes end having very
And sorry for saying btw twice in the same post.
And sorry for posting this apology.
JJ
Happy New Year 2010 Everybody.
Having resumed C++ nationality for the last few months, I kind of miss D's auto
keyword.
I am wondering, though, from an OO/polymorphism perspective, and UML and sound
software engineering perspective as well, what does D's auto keyword buy you
excep
20 matches
Mail list logo