Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
why do people say a real programmer uses printf?
Goto page Previous  1, 2
 
Post new topic   Reply to topic Printable version
 View previous topic  problem with c# Post :: Post Free Games Engine  View next topic  
Author Message
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Sun Apr 20, 2008 1:03 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

interesting
_________________
(Insert a bunch of dead links here)
Back to top
View users profile Send private message Add User to Ignore List
Animate Dreams
Gotta buy them all!
(Consumer whore)


Age:37
Gender:Gender:Male
Joined: May 01 2004
Posts: 821
Location: Middle Tennessee
Offline

PostPosted: Sun Apr 20, 2008 3:19 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

badass

so myclass.tostring is automatically called when someone tries to treat the class as a string?
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address MSN Messenger
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Sun Apr 20, 2008 4:31 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Welcome to the wonderful world of Duck Typing.
_________________
It's a shark! Oh my god! Unbelievable!
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Sun Apr 20, 2008 4:49 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Animate Dreams wrote:
so myclass.tostring is automatically called when someone tries to treat the class as a string?


Not exactly. What's happening in this case is that you're actually calling the WriteLine method that takes an object as a parameter and it calls ToString. What you're talking about will happen if you're adding it to a string literal ("hello, " + object) because the + operator is overloaded, but you can't just throw an Object anywhere something calls for a String.
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Sat Apr 26, 2008 1:07 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

personally i prefer cout and cin, because you have to type less, and its easier to read.

ie > ff

and goto is always fun =)
_________________
SSC Distension Owner
SSCU Trench Wars Developer
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 262 page(s) served in previous 5 minutes.

phpBB Created this page in 0.517561 seconds : 29 queries executed (89.7%): GZIP compression disabled