Click here to Skip to main content
16,007,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus22-Jul-02 12:08
protectorChristian Graus22-Jul-02 12:08 
GeneralRe: C# - language design by committee ??? Pin
Gerald Schwab22-Jul-02 17:28
Gerald Schwab22-Jul-02 17:28 
GeneralRe: C# - language design by committee ??? Pin
Kevin McFarlane22-Jul-02 9:49
Kevin McFarlane22-Jul-02 9:49 
GeneralRe: C# - language design by committee ??? Pin
Eric Gunnerson (msft)22-Jul-02 6:40
Eric Gunnerson (msft)22-Jul-02 6:40 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus22-Jul-02 12:09
protectorChristian Graus22-Jul-02 12:09 
GeneralRe: C# - language design by committee ??? Pin
Andy Smith21-Jul-02 18:06
Andy Smith21-Jul-02 18:06 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus21-Jul-02 18:09
protectorChristian Graus21-Jul-02 18:09 
GeneralRe: C# - language design by committee ??? Pin
jparsons22-Jul-02 5:28
jparsons22-Jul-02 5:28 
Christian Graus wrote:
Myclass s;
System.MessageBox.Show(s.Myfunction()); // No way, no how.


This I find odd. This type of code would work correctly in Java. I'm surprised that it doesn't work that way in C#

Christian Graus wrote:
class Myclass
{
static public string Myfunction()
{
return "C# can be pretty dumb at times";
}
public string Myfunction()
{
return "C# can be pretty dumb at times";
}
}


Why do you see this as a problem. The compiler must be able to differentiate between a method at runtime and making this legal would add some abiguity to it. For instance.

<br />
MyClass s = new MyClass();<br />
s.MyFunction();<br />


In this case, which would be called? The static or the instance method?

Jared
jparsons@jparsons.org
www.prism.gatech.edu/~gte477n
GeneralRe: C# - language design by committee ??? Pin
Christian Graus22-Jul-02 12:10
protectorChristian Graus22-Jul-02 12:10 
GeneralRe: C# - language design by committee ??? Pin
Rama Krishna Vavilala22-Jul-02 5:41
Rama Krishna Vavilala22-Jul-02 5:41 
GeneralRe: C# - language design by committee ??? Pin
jparsons22-Jul-02 6:49
jparsons22-Jul-02 6:49 
AnswerRe: C# - language design by committee ??? Pin
Eric Gunnerson (msft)22-Jul-02 6:36
Eric Gunnerson (msft)22-Jul-02 6:36 
GeneralRe: C# - language design by committee ??? Pin
Kevin McFarlane22-Jul-02 9:37
Kevin McFarlane22-Jul-02 9:37 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus22-Jul-02 12:15
protectorChristian Graus22-Jul-02 12:15 
GeneralRe: C# - language design by committee ??? Pin
Kevin McFarlane23-Jul-02 2:27
Kevin McFarlane23-Jul-02 2:27 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus22-Jul-02 12:13
protectorChristian Graus22-Jul-02 12:13 
GeneralRe: C# - language design by committee ??? Pin
Andy Smith22-Jul-02 13:51
Andy Smith22-Jul-02 13:51 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus22-Jul-02 13:55
protectorChristian Graus22-Jul-02 13:55 
GeneralRe: C# - language design by committee ??? Pin
Andy Smith22-Jul-02 15:54
Andy Smith22-Jul-02 15:54 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus22-Jul-02 16:42
protectorChristian Graus22-Jul-02 16:42 
GeneralRe: C# - language design by committee ??? Pin
Kevin McFarlane23-Jul-02 2:18
Kevin McFarlane23-Jul-02 2:18 
GeneralRe: C# - language design by committee ??? Pin
Christian Graus23-Jul-02 12:19
protectorChristian Graus23-Jul-02 12:19 
GeneralRe: C# - language design by committee ??? Pin
Kevin McFarlane24-Jul-02 1:33
Kevin McFarlane24-Jul-02 1:33 
GeneralRe: C# - language design by committee ??? Pin
Eric Gunnerson (msft)22-Jul-02 13:46
Eric Gunnerson (msft)22-Jul-02 13:46 
AnswerRe: C# - language design by committee ??? Pin
Rama Krishna Vavilala22-Jul-02 16:45
Rama Krishna Vavilala22-Jul-02 16:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.