IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.22 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-06-17
[19:02]<y-gz>Was the part about the pentagon in Farenheit 9/11
[19:02]<y-gz>or was it in one of his other movies
[19:02]<dyguw>and a few hundred thousan innocent by standers as well
[19:02]<dyguw>don't you think, Kiryn?
[19:02]<y-gz>i can't believe that americans believed that a plane hit the pentagon....
[19:02]<kdzdg>my friend lives 5 blocks from where the wtc happened
[19:03]<y-gz>Kiryn: have you actually watched some of MM movies?
[19:03]<kdzdg>yea
[19:03]<y-gz>so ?
[19:03]<kdzdg>is Bowling Columbine
[19:03]<y-gz>do you still believe the crap americans were told
[19:03]<kdzdg>yes*
[19:04]<kdzdg>like on?
[19:04]<y-gz>that a plane hit the pentagon ?
[19:04]<kdzdg>i haven't watch f/h 9/11
[19:04]<y-gz>wait
[19:05]<kdzdg>iono remember its been what 5 years ago i can't remember
[19:05]<y-gz>may be i am talking about a completly different thing
[19:05]<kdzdg>some parts i remember like it was yesterday
[19:06]<kdzdg>ogd i need a smoke
[19:06]<y-gz>NOOO
[19:06]<y-gz>sry
[19:06]<y-gz>i was thinking about something else
[19:06]<y-gz>something completly different
[19:06]<y-gz>911 Loose Change
[19:07]<y-gz>http://video.google.com/videoplay?docid=-8260059923762628848&q=9%2F11
[19:08]<y-gz>watch this
[19:10]<y-gz>also
[19:10]<y-gz>the http://video.google.com/videosearch?q=911+in+plane+sight
[19:10]<y-gz>too
[19:10]<edjg>why is the logo for the mono project that fucked up looking monkey
[19:11]<y-gz>mono means monkey
[19:11]<y-gz>in spanish i think
[19:11]<y-gz>o0
[19:11]<edjg>ooh right
[19:11]<y-gz>ask miguel
[19:11]<y-gz>lol
[19:12]<kdzdg>im watching it
[19:12]<ygjgj>Emon, i tried that it didnt work
[19:12]<edjg>wha?
[19:13]<ygjgj>making an interface with ToString
[19:15]<edjg>oh
[19:15]<ygjgj>heh sorry i went to get my car maintanced :P
[19:15]<edjg>try public new String ToString() in the interface
[19:16]<edjg>so it knows its' a new function and not just Object's
[19:16]<edjg>and, ugh, the mod_mono page says you can download it on the mono project download page...but...it's not there.
[19:16]<ygjgj>Emon, nope didnt work
[19:17]<edjg>shrug
[19:17]<ygjgj>Emon, what does "new" mean anyway?
[19:17]<edjg>what are you trying to do?
[19:17]<ygjgj>force classes implementing the interface to decalre their own ToString
[19:17]<edjg>It tells the compiler that it's a "new" method, not an overloaded one
[19:17]<ygjgj>whats the difference?
[19:17]<edjg>I'd guess it doesn't work since they already have the basic ToString() implementation inherited from Object
[19:18]<ygjgj>if you cast it as a base type it wont get executed or something?
[19:18]<y-gz>you can still implement it explicitly
[19:18]<edjg>new, used in that context, tells the compiler that your method isn't overriding that of a base class
[19:19]<ygjgj>and what does this mean practically?
[19:19]<edjg>If you really need to, inono, make it a different method name. Like MyToString() or maybe something less dumb sounding
[19:19]<ygjgj>Emon, ok i understand.. but what about"new"
[19:20]<edjg>like I said, you put it in there to tell the compiler that you are explicitly defining a new method and not an override (where you should use the "override" construct)
[19:21]<edjg>I'm not really sure about practical benefits, I only know what the warnigns tell me :P
[19:21]<ygjgj>but what does this mean in practical benefits?
[19:21]<azyfm>new doesn't play with polymorphism
[19:21]<ygjgj>what does this mean conceptually ?
[19:21]<ygjgj>what *other* meaning besides that one are there?
[19:21]<azyfm>if you have a method Foo which is declared virtual in the base class, and new in the derived class, if someone uses a base class reference to call Foo(), the base class version is called
[19:22]<ygjgj>so it tells the compiler not to go down the inheritance hierarchy?
[19:22]<azyfm>yes
[19:23]<azyfm>for all intents and purposes, it's a *new* method
[19:23]<fz1dbz>wow
[19:23]<azyfm>that happens to have the same name as an old one
[19:23]<ygjgj>kind of like if you dont make a function virtual it will stop at that one?
[19:23]<fz1dbz>i just found a point in my app where i wasnt closing the connections properly :p
[19:23]<azyfm>huh?
[19:23]<ygjgj>well, in C++ it will go down the inheritance hierarchy as long as the preceding method was marked virtual
[19:24]<azyfm>and so it will in C#
[19:24]<ygjgj>thats what i thought
[19:24]<ygjgj>so it just gives you more flexibility ?
[19:24]<azyfm>however, a 'new' method isn't considered an override of the base class virtual method
[19:24]<ygjgj>sounds good
[19:24]<azyfm>so it will not be considered
[19:24]<ygjgj>wow thanks
[19:25]<ygjgj>i read that part in my C# book and didnt understand it too well
[19:25]<azyfm>the VB keyword is possible slightly better - "Shadows"
[19:25]<azyfm>possibly
[19:25]<ygjgj>this channel is way more helpful than efnet's :)
[19:25]<azyfm>:-)
[19:26]<azyfm>in vtable terms, 'new' means a new vtable slot is added
[19:26]<ygjgj>yeah i dont know all that nice and gushy C++ compiler implementations, i'm afraid :)
[19:27]<azyfm>for 'override', the slot from the declaration of the base class virtual method is reused
[19:27]<edjg><inono> this channel is way more helpful than efnet's :) <---- well duh. it's efnet. it's a fucking cesspoaol
[19:27]<edjg>a cesspoaol, which is like cesspool.
[19:27]<azyfm>inono - ever seen COM code in C?
[19:27]<ygjgj>nope
[19:27]<edjg>Arild, that sounds gross.
[19:27]<ygjgj>.NET was my first foray into Windows programming
[19:28]<azyfm>well, in C++, you call a method through an interface like this: ptr->Method();
[19:28]<azyfm>a COM method
[19:28]<azyfm>in C, it becomes ptr->vtbl->Method();







