| Servergeek |
| Mickey Williams' weblog |
|
My C# BookMicrosoft Press PageOn Amazon Racing LinksSlalomSkateboarder.comNCDSA slalom page 3dm Ick Sticks Pocket Pistols .NETScott GuthrieRob Howard .NET Notes BradA LonghornScobleChris Sells ServicesDon BoxChristian Weyer All Things Distributed Ingo Rammer Tim Ewald BlawgsBag and BaggageSCOTUS Blog EconArg MaxCapital Spectator OtherWilliam Gibson |
Tuesday, November 25, 2003
The Return of the Double SnakebitePosted 2:58 PMAt long last, C++ developers can find joy in C#, now that the :: operator has migrated. That's right, C# 2.0 will have a scope resolution operator that specifies that the next identifier should be resolved from the root namespace, rather than beginning in the local namespace. Although this isn't generally a problem in code written outside of hospitals for the criminally insane, it does address a problem that pops up occasionally with machine-generated code. Consider:
namespace RemotingDemo
{
class TestApp
{
static void Main(string[] args)
{
System.Console.WriteLine("Hello");
}
}
public class System
{
public class Console
{
public static void WriteLine(string msg)
{
DoImportantWorkInABadlyNamedMethod();
}
}
}
}
In the code above, there would be no way to specify which System.Console.WriteLine you wanted to invoke, and the local version would always be called. The :: operator enables you to specify that the name should be resolved in the root namespace, so this code would always call the runtime's version of WriteLine():
::System.Console.WriteLine("foo");
Skateboarding Across AmericaPosted 1:43 PMOne of the guys I raced with on Sunday was Jack Smith. He's a great guy, the sort that always steps up to help out, or organize a race, or start a company, or whatever. He's one of the guys that ran the FCR series races, but his biggest accomplishment this year was skateboarding across the country. For the third time. At a record pace. His son, Jack Jr. had Lowe's Syndrome, a rare genetic disorder that is under the radar of most research funding. He passed away earlier this year. Jack made the trip to raise awareness and money for research. You can read about it here. And not to be pushy, but I know a few of you have had a pretty good year, and these kids could really use the help. Monday, November 24, 2003
Last Race at WLACPosted 6:43 PMThe last race of the year at WLAC had a number of memorable points:
|