On Sat, 02 Jun 2012 06:49:39 -0400, Dmitry Olshansky
wrote:
On 02.06.2012 14:39, Kevin Cox wrote:
On Jun 2, 2012 6:38 AM, "bearophile" mailto:bearophileh...@lycos.com>> wrote:
>
> Jonathan M Davis:
>
>
>> Personally, I wish that it weren't legal to call a static function
with an
>> ob
On Sat, 02 Jun 2012 19:25:05 +0100, Andrej Mitrovic
wrote:
On 6/2/12, Jonathan M Davis wrote:
The trick is getting Walter to agree.
The trick is getting all the people that bought TDPL to burn their
books, because by the time all these new changes are set in place the
book will have as mu
On Sat, 02 Jun 2012 09:23:50 +0100, Jonathan M Davis
wrote:
...and probably the same for C#, though I'm not sure
No, in C# you cannot call a static member function with a class instance,
see "Static Members":
"A static method, field, property, or event is callable on a class even
when n
On 2012-06-02 19:59, Jonathan M Davis wrote:
On Saturday, June 02, 2012 18:40:38 Jacob Carlborg wrote:
http://d.puremagic.com/issues/show_bug.cgi?id=3345
Ah, there it is! I was _sure_ that a report for it existed, but I couldn't find
it (probably because I was searching for overload and didn't
On 6/2/12, Jonathan M Davis wrote:
> The trick is getting Walter to agree.
The trick is getting all the people that bought TDPL to burn their
books, because by the time all these new changes are set in place the
book will have as much dead weight to it as dsource.org. It
specifically says on page
On Saturday, June 02, 2012 08:41:17 H. S. Teoh wrote:
> On Sat, Jun 02, 2012 at 01:23:50AM -0700, Jonathan M Davis wrote:
> [...]
>
> > Personally, I wish that it weren't legal to call a static function
> > with an object and that you had to explicitly use the class, but
> > that's not the way tha
On Saturday, June 02, 2012 18:40:38 Jacob Carlborg wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=3345
Ah, there it is! I was _sure_ that a report for it existed, but I couldn't find
it (probably because I was searching for overload and didn't think to search
for name).
- Jonathan M Dav
On Saturday, June 02, 2012 14:49:39 Dmitry Olshansky wrote:
> Generic programming benefits from it in certain scenarios
This is brought up periodically, and I don't really buy it. _Maybe_ there's a
scenario where it would help, but typeof makes it trivial to get the type so
that you can call a s
On 2012-06-02 10:06, Namespace wrote:
Is that a joke? :D
This Code throw the error, that a call of "Load" matches both functions.
How is that possible? Even in php that works fine. Any workarounds?
I can not believe that such a simple error still exists in D.
[code]
import std.stdio;
class Foo
On Sat, Jun 02, 2012 at 01:23:50AM -0700, Jonathan M Davis wrote:
[...]
> Personally, I wish that it weren't legal to call a static function
> with an object and that you had to explicitly use the class, but
> that's not the way that it is in D, C++, and Java (and probably the
> same for C#, though
On 02.06.2012 14:39, Kevin Cox wrote:
On Jun 2, 2012 6:38 AM, "bearophile" mailto:bearophileh...@lycos.com>> wrote:
>
> Jonathan M Davis:
>
>
>> Personally, I wish that it weren't legal to call a static function
with an
>> object and that you had to explicitly use the class,
>
>
> I agr
On Jun 2, 2012 6:38 AM, "bearophile" wrote:
>
> Jonathan M Davis:
>
>
>> Personally, I wish that it weren't legal to call a static function with
an
>> object and that you had to explicitly use the class,
>
>
> I agree.
>
> Bye,
> bearophile
Same here, D 3.0?
Jonathan M Davis:
Personally, I wish that it weren't legal to call a static
function with an
object and that you had to explicitly use the class,
I agree.
Bye,
bearophile
On Saturday, 2 June 2012 at 08:24:16 UTC, Jonathan M Davis wrote:
On Saturday, June 02, 2012 10:14:51 Zhenya wrote:
I'm not sure, but it seems that this is a bug.
It's not. If nothing else, it's perfectly legal to call a
static function with
an instance. e.g.
class C
{
static void func(
Understand)
On Saturday, June 02, 2012 10:14:51 Zhenya wrote:
> I'm not sure, but it seems that this is a bug.
It's not. If nothing else, it's perfectly legal to call a static function with
an instance. e.g.
class C
{
static void func() {}
}
auto c = new C;
c.func();
So, that creates an ambiguity if a
On 02.06.2012 12:06, Namespace wrote:
Is that a joke? :D
This Code throw the error, that a call of "Load" matches both functions.
How is that possible? Even in php that works fine. Any workarounds?
I can not believe that such a simple error still exists in D.
[code]
import std.stdio;
class Foo
I'm not sure, but it seems that this is a bug.
On Saturday, 2 June 2012 at 08:06:57 UTC, Namespace wrote:
Is that a joke? :D
This Code throw the error, that a call of "Load" matches both
functions.
How is that possible? Even in php that works fine. Any
workarounds?
I can not believe that such a simple error still exists in D.
[code]
impo
Is that a joke? :D
This Code throw the error, that a call of "Load" matches both
functions.
How is that possible? Even in php that works fine. Any
workarounds?
I can not believe that such a simple error still exists in D.
[code]
import std.stdio;
class Foo {
public:
static Foo Load()
20 matches
Mail list logo