Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive > Starbucks @ RunUO.com

Starbucks @ RunUO.com Unmoderated forum for off-topic banter, screen shots, chit-chat and things of this nature. Flames are permitted, and you can pretty much do nearly anything within reason. No advertisements.

 
 
Thread Tools Display Modes
Old 09-24-2005, 06:20 AM   #1 (permalink)
RunUO Developer/Demise Person
 
ASayre's Avatar
 
Join Date: Mar 2003
Location: California
Age: 20
Posts: 1,700
Default Just incase 2.0 isn't enough for yas...

http://download.microsoft.com/downlo...cification.doc

C# 3.0
__________________
Andre Sayre, Core Developer
The RunUO Software Team

The day we are born is the day Death inches ever closer...
E-mail: ASayre ( AT ) RunUO ( Dot ) c o m
I'm as graceful as a gazelle galloping over glistening green grass with it's head on fire.
ASayre is offline  
Old 09-24-2005, 09:26 AM   #2 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

if it's microsoft...it has a lot of versions >_<

and the main moral of this story is: Microsoft can't make up its mind.
__________________
Goodbye, folks.
TMSTKSBK is offline  
Old 09-24-2005, 04:03 PM   #3 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default

It looks like C# 3.0 is going to be great.
It's nice to see that declarative/functional paradigms are being integrated into a mainstream programming language. I hope this will be just a start.

Also I wonder what will be the Java response to that...
__________________
Phenos - Lorenzo Castelli
E-Mail: gcastelli@racine.ra.it
Phenos is offline  
Old 09-24-2005, 07:37 PM   #4 (permalink)
Forum Expert
 
Join Date: Dec 2002
Posts: 730
Default

Some nice stuff, some stuff that I didn't understand :P (that lambda thing)
Atomic is offline  
Old 09-24-2005, 08:37 PM   #5 (permalink)
Forum Expert
 
milt's Avatar
 
Join Date: Nov 2003
Location: Lancaster, PA
Age: 20
Posts: 1,606
Send a message via AIM to milt Send a message via Yahoo to milt Send a message via Skype™ to milt
Default

Maybe I read it wrong, but they are bringing 'var' to C#? lol I remember back when I coded javascript, I used to like the fact that you didn't have to specify the type of variable
__________________
--Milt, AKA Pokey
milt is offline  
Old 09-25-2005, 08:04 AM   #6 (permalink)
 
Join Date: Jan 2003
Posts: 134
Default

Quote:
Originally Posted by Atomic
Some nice stuff, some stuff that I didn't understand :P (that lambda thing)
It's just a further improvement over the delegate mechanism.

In C# 1.0 you can create delegates that refer to a method by separately defining the method and creating a delegate that points to it.

In C# 2.0 you can use an anonymous method, that is you can define the method itself inside the delegate initialization, so that you can avoid some typing and improve readability.

In C# 3.0 you'll be able to use lambda expressions, that is to further reduce the amount of stuff you have to write by just typing something like "argument_list => function_body". In its simplest form you can write for example x => x * 2 to consider the function that takes a single argument called x (of a type that is inferred by the compiler using the context in which you use the expression) and returns x * 2.
In this form these expressions are syntactically very similar to the expressions used in the lambda calculus (a mathematical system used to formalize algorithm definitions), so I think that the name comes from there.

Quote:
Originally Posted by milt
Maybe I read it wrong, but they are bringing 'var' to C#? lol I remember back when I coded javascript, I used to like the fact that you didn't have to specify the type of variable
Yep, but it will be quite different from Javascript. In Javascript a variable can actually hold any type of object, so you can write for example:
Code:
var i = 10;
i = "Hello";
i = 0.7;
In C# var is just a way to tell the compiler to infer the type of the variable from the initialization expression.
So if you write var i = 10 the compiler will infer that i is an int and will treat it as so. Then if you write i = "Hello" it will be an error.

I think that the main reason to add var to the language is to support anonymous types, which obviously have no name and so wouldn't be usable without some construct like var.
And I think that the main reason behind anonymous types is the ability to create complex queries with the new query language.
__________________
Phenos - Lorenzo Castelli
E-Mail: gcastelli@racine.ra.it
Phenos is offline  
Old 09-25-2005, 10:00 AM   #7 (permalink)
Forum Expert
 
milt's Avatar
 
Join Date: Nov 2003
Location: Lancaster, PA
Age: 20
Posts: 1,606
Send a message via AIM to milt Send a message via Yahoo to milt Send a message via Skype™ to milt
Default

Mmmmm, sexy
__________________
--Milt, AKA Pokey
milt is offline  
Old 09-25-2005, 10:26 AM   #8 (permalink)
Forum Expert
 
Join Date: Dec 2002
Posts: 730
Default

Thanks for the explanation Seems pretty cool
Atomic is offline  
Old 09-27-2005, 06:45 PM   #9 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

+karma to Phenos for explanation.
__________________
Goodbye, folks.
TMSTKSBK is offline  
Old 09-27-2005, 07:45 PM   #10 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

Code:
public override void OnPost( Joeku karmahog )
{
      Mobile from = TMSTKSBK.mobile;

      if ( m_TMSTKSBK.IsNice( from ) )
      {
             mobile.SendKarmaTo = karmahog;
             karmahog.SendMessage( "TMSTKSBK gives you + karma!" );
             return;
      }
}
Joeku is offline  
Old 09-27-2005, 08:02 PM   #11 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

if( karmahog.karma > from.karma )
{
return;
}


...you forgot that statement
(and beyond that, I evidently just gave you some O_o)
__________________
Goodbye, folks.
TMSTKSBK is offline  
Old 09-27-2005, 08:22 PM   #12 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

I just got a huuuuge karma boosts on one of my posts (extremely positive) thank you Phantom! Anyways, now I am at 220 bwahahah!
*wants 300*
Joeku is offline  
Old 09-27-2005, 09:08 PM   #13 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

evidently you just got a huge karma - a minute ago O_o...you're two bars now...and like...I'm gonna stop talking about karma. It's a dangerous topic.
__________________
Goodbye, folks.
TMSTKSBK is offline  
Old 09-27-2005, 11:54 PM   #14 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

what the heck... it went from 220 to 172...

OH MY GOSH SOMEONE GAVE ME NEG KARMA AND IT WENT DOWN 50!!!

*bawls*
Joeku is offline  
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5