IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-04-02 18:00:08
Channels: 41
Logged Lines: 6229042
Size: 1806.44 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-08-10
[00:00]<vufvuzn>largos: no.. it's not a compile time check. What would you want to occur if you did: A a = new B(); a.Equals(...); ?
[00:01]<vufvuzn>the compiler's certainly not going to be able to verify that the argument should be of type "B" - that can only be known at runtime based on the dynamic type of 'a'
[00:02]<sjgvnc>vulture, Your examples made me think of something funny I seen yesterday, Class UR { } Class B : UR { } UR A = new B();
[00:02]<vufvuzn>cute, in a rather painful kind of way
[00:03]<vufvuzn>(and I'd generally use "Base" and "Derived" as my classnames in such an example - but I was just going with what largos had used instead)
[00:03]<fzzrjs>vulture: ah, right.
[00:04]<zrrry>right, now on frames - you can cheat with this when dealing with your exceptions - when you catch an exception you can fire a callback off wiht the logging call to provide access to that object. i.e. Logger.log(this, message, callback); the prompt gets this.GetType().Name to provide a sensible prompt, can print out the methods of that type and can allow you to call methods with new arguments - i've never implemented much for provision of arguments, but by the sam
[00:09]<zrrry>hmm, dr c# decription looks interesting, but the documentation from 2003 says it's only state is an addin for sharpdevelop. stale project?
[00:10]<cxrfnm>raggi, not sure
[00:10]<cxrfnm>i have used dr java
[00:11]<zrrry>Dr C# is partially funded by the National Science Foundation, the Texas Advanced Technology Program, and Microsoft, Inc.
[00:11]<zrrry>lol
[00:11]<zrrry>funded by microsoft eh?
[00:12]<zrrry>khaled: my old framework is in java
[00:12]<cxrfnm>oh, it should be easy to port it to C#
[00:12]<cxrfnm>try ikvm, may you would not even need to modify any code at all
[00:13]<zrrry>heh
[00:14]<cjmgrug>hey khaled, whatup dude?
[00:15]<zrrry>i want a newer and more complete version anyway, and there are some features in .net 2.0 c# which i want to (ab)use
[00:15]<cxrfnm>CodeRun, nothing much here, whats going with you? have you got the link i sent you earlier today ?
[00:15]<zrrry>would this map the old java reflection framework onto the c' one then?
[00:16]<cxrfnm>raggi, hmm, complicated question, ikvm is bytecode translator
[00:17]<cjmgrug>khaled, you sent me a link?
[00:17]<zrrry>the interoperability notes would suggest probably not
[00:17]<gxysvggz>khaled, Men ween ente?
[00:17]<cxrfnm>Interop, oh yeh, those will probably break
[00:17]<cxrfnm>eXistenZ, canada
[00:18]<gxysvggz>khaled, Men ween aslak?
[00:18]<cxrfnm>eXistenZ, you ?
[00:18]<cxrfnm>eXistenZ, bangladesh
[00:18]<gxysvggz>khaled, Ana men falasteen.
[00:18]<cjmgrug>ah.. cool
[00:18]<cxrfnm>CodeRun, got it ?
[00:18]<cjmgrug>no
[00:19]<cxrfnm>CodeRun, ok, let me find it again
[00:19]<cjmgrug>i said 'cool' for knowing where eXistenZ is from.
[00:19]<cjmgrug>oops :p
[00:19]<cxrfnm>oh lol
[00:19]<cjmgrug>did you PM it to me or something?
[00:20]<cxrfnm>CodeRun, here is something interesting : http://www.gnomebangalore.org/?q=nosip
[00:20]<cxrfnm>thats what i did
[00:20]<cjmgrug>ok. thanks. i'll check it out
[00:22]<zrrry>uh oh, novell are trying to spread their global hotkey debug windows out into the OS world :-S
[00:37]<kjr>oh hey... I wonder if that works with SD2
[00:37]<cxrfnm>Kog, it is an interpreted C# environment
[00:37]<kjr>khaled: yeah, I found a URL in my buffer
[00:37]<azyfm>he's a proctologist
[00:37]<kjr>Arild: no no no, we're not talking about your father
[00:37]<sz2yzgrzzsx>I found a constructor in the garden
[00:38]<kjr>sabiancrash: you find the portal I left in the warddrobe?
[00:38]<kjr>remove one d
[00:38]<sz2yzgrzzsx>:)
[00:43]<cjmgrug>"<sabiancrash> I found a constructor in the garden" < you caught code fever? :p
[00:52]<cjmgrug>o_O
[00:56]<2jjnnz->is there anything comparable to typedef in C#? I want to create a type alias like this: MyClass.TypeAlias
[01:00]<azyfm>using SystemThread = System.Thread;
[01:05]<2jjnnz->Arild that gives me error
[01:05]<2jjnnz->test.cs(8,2): error CS1519: Invalid token 'using' in class, struct, or interface member declaration
[01:05]<rxrcr>use it outside of class declaration
[01:05]<2jjnnz->then it's useless
[01:05]<rxrcr>within or outside of namespace declaration
[01:05]<2jjnnz->I want the type in the class
[01:05]<2jjnnz->type alias
[01:05]<2jjnnz->any way to do that?
[01:06]<rxrcr>how is it useless?
[01:06]<2jjnnz->useless for what I want
[01:06]<2jjnnz->I want to have MyClass.TypeAlias
[01:13]<sdnffdxdlld>what do you mean by TypeAlias?
[01:14]<sdnffdxdlld>oh renaming a type as something different
[01:15]<sdnffdxdlld>no theres not
[01:15]<sdnffdxdlld>why would you want to change its name?
[01:16]<gjrvcxnne>is there any way to clone a stream or retrieve all of it's data and still leave it in it's initial condition?
[01:16]<gjrvcxnne>i'm trying to read a streamreader, and then "reset" it
[01:16]<gjrvcxnne>(it won't let me call seek on the basestream)
[01:17]<2jjnnz->I dont want to change it's name I want to have a type indirection
[01:17]<2jjnnz->I can just put a typedef in C++ in a class and make it public. thought there was something similar in C#
[01:17]<sdnffdxdlld>boozer-: ok and again in laymans terms for those of us who obviously dont have a clue what your on about
[01:17]<gjrvcxnne>boozer-: i havent' found anything yet... if u do, lemm eknow
[01:18]<gjrvcxnne>it's a simple typedef lol
[01:18]<sdnffdxdlld>just trying to understand to concept as I dont understand the terms
[01:18]<gjrvcxnne>it's using an alias as a type
[01:18]<2jjnnz->using mytype = aliasedtype;
[01:18]<2jjnnz->something like that in a class
[01:19]<2jjnnz->so that it can be accessed from other file
[01:19]<gjrvcxnne>bah, quitting time
[01:19]<gjrvcxnne>cyall 2morrow
[01:19]<sdnffdxdlld>cya dude :)
[01:20]<sdnffdxdlld>is it just to improve readability or does it have a use?
[01:20]<cjmgrug>"accessed from another file" ???
[01:20]<sdnffdxdlld>uhhh I mean a funcational use ... as readability is useful too :P
[01:23]<rxrcr>heh you could use an interface with no method declaration, but I would laugh at you for doing so
[01:23]<sdnffdxdlld>for what I can tell he means being able to do MyType.BoolAlias foo = true;
[01:24]<sdnffdxdlld>but having a lack of knowledge with the basic concepts I could be compltaly wrong
[01:24]<cjmgrug>smellyhippy: you are wrong.
[01:25]<cjmgrug>:p
[01:25]<sdnffdxdlld>;)
[01:25]<sdnffdxdlld>but i still fail to see how that is any more than just syntaxical fluff
[01:26]<cjmgrug>"You can use typedef declarations to construct shorter or more meaningful names for types already defined by the language or for types that you have declared. Typedef names allow you to encapsulate implementation details that may change."







