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: 1825.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-29
[03:25]<[rg]sjryjlrvx>I dont even have a job
[03:25]<[rg]sjryjlrvx>im being drafted in less than a year
[03:25]<[rg]sjryjlrvx>90% death really
[03:26]<kjr>oh, you're in Israel
[03:27]<[rg]sjryjlrvx>PLEASE dont get political
[03:27]<slzygc_>i'd guess lebanon
[03:27]<[rg]sjryjlrvx>im a soldier, im not meant to think
[03:27]<kjr>[aG]Sociopath: who's getting political
[03:27]<[rg]sjryjlrvx>no one, and you're doing great
[03:27]<kjr>[aG]Sociopath: most countries don't draft people - Israel however has compulsory military requirements
[03:27]<[rg]sjryjlrvx>how do you know?
[03:27]<kjr>because I know many things
[03:27]<[rg]sjryjlrvx>you must be at least 50
[03:27]<kjr>me? haha
[03:27]<kjr>no, not nearly
[03:28]<edjg>Hey, quicky question - in C/C++, what exactly happens if you do an if on a long? like: long a = 500; if (a) { ... } is that false if 0, true otherwise?
[03:29]<kjr>your hostmask is also .il
[03:29]<slzygc_>I had a internet friend who I used to chat with in irc.. for 6 or 7 years.. and he got drafted into the iraqi army 2 years ago
[03:29]<slzygc_>hasn't came back yet
[03:29]<kjr>DB is in Haifa somewhere... haven't seen him lately
[03:29]<rxrcr>Kog, '"You have a very old soul", Willow' : Oblig Daria Quote
[03:29]<[rg]sjryjlrvx>Emon : the if will work?
[03:30]<edjg>yeah, it works
[03:30]<[rg]sjryjlrvx>Emon : what did you expect?
[03:30]<edjg>eh?
[03:30]<[rg]sjryjlrvx>Emon : if's can be used on any type
[03:30]<edjg>I know...
[03:30]<[rg]sjryjlrvx>Emon : if you are comparing wrong types you get a warning
[03:30]<[rg]sjryjlrvx>Emon : then what are you asking?
[03:30]<kjr>no, ifs cannot be used on any type
[03:30]<edjg>this is not C#
[03:30]<kjr>it must be used on a condition
[03:30]<kjr>a boolean
[03:30]<[rg]sjryjlrvx>Kog : sorry
[03:30]<edjg>I am converting some code from C++ and I want to know what I should be making it
[03:30]<[rg]sjryjlrvx>Kog : how else can I explain it?
[03:30]<kjr>although, in C there's no boolean type
[03:30]<kjr>so you use 1/0
[03:31]<edjg>the original author did if(long) and since I can't do that, I want to know what I SHOULD do
[03:31]<kjr>C++ has a boolean type, but I'm not sure if you can use it on integers too
[03:31]<kjr>TIAS
[03:31]<edjg>C++'s boolean type is just an int
[03:31]<edjg>or a char
[03:31]<edjg>I forget which
[03:31]<kjr>yes, but it's still a type
[03:31]<edjg>I know
[03:32]<kjr>so... try it and see - write some quick C++ mockup
[03:32]<edjg>you mean do work?
[03:32]<edjg>bah
[03:32]<edjg>:P
[03:32]<edjg>ok
[03:32]<kjr>although, [aG]Sociopath should know this... he's sitting in a C++ chan ;)
[03:32]<kjr>I've never written in C++, ever, for any reason
[03:33]<edjg>I have moderate experience I guess
[03:33]<edjg>but I kind of hate it
[03:33]<edjg>ah, I just found it...false if 0, true otherwise
[03:33]<kjr>well, there you go
[03:34]<[rg]sjryjlrvx>mmhm
[03:34]<[rg]sjryjlrvx>C++'s boolean type is a char
[03:34]<[rg]sjryjlrvx>well no
[03:34]<[rg]sjryjlrvx>its 8 bit
[03:34]<[rg]sjryjlrvx>because thats as small as it can possibly be
[03:34]<edjg>unsigned char
[03:34]<kjr>a char isn't 8bit?
[03:34]<kjr>it's surely not 16
[03:34]<edjg>yeah
[03:34]<[rg]sjryjlrvx>well you still cant call it a char
[03:34]<edjg>unsigned chars are 8 bit
[03:35]<[rg]sjryjlrvx>a char refers to a data type not a size
[03:35]<edjg>why not
[03:35]<kjr>signed chars are 9 bit?
[03:35]<edjg>err
[03:35]<[rg]sjryjlrvx>no
[03:35]<kjr>;)
[03:35]<kjr>[aG]Sociopath: it was a joke
[03:35]<[rg]sjryjlrvx>dont make jokes
[03:35]<[rg]sjryjlrvx>im the post man
[03:35]<edjg>haha
[03:35]<kjr>uh, whatever the hell that means
[03:35]<kjr>are you Kevin Costner?
[03:35]<[rg]sjryjlrvx>yes
[03:35]<kjr>gonna help me fight the Holnists?
[03:36]<edjg>no that's right, unsigned chars are 8 bit
[03:36]<kjr>Emon: what about signed
[03:36]<edjg>8-bit, one bit is for signing
[03:36]<[rg]sjryjlrvx>Kog : stop joking
[03:36]<kjr>[aG]Sociopath: never.
[03:36]<edjg>an int is the same size as an unsigned int.
[03:36]<kjr>Emon: yes, I'm aware
[03:36]<edjg>but signed ints can't be as big since you're dedicating one bit to signing
[03:36]<edjg>so, same with chars
[03:36]<[rg]sjryjlrvx>any data type, signed or not, is the same data
[03:36]<edjg>(I think)
[03:36]<kjr>Emon: I'm a computer scientist... I'm familiar
[03:36]<[rg]sjryjlrvx>its a matter of how you treat it
[03:36]<edjg>so why are you asking :/
[03:37]<edjg>a computer scientist who has never used C++?
[03:37]<edjg>:P
[03:37]<kjr>yes, we're called sane
[03:37]<edjg>sounds like a student to me







