[01:01:19] iceeey_ has joined #peragro-dev
[01:01:53] iceeey has quit: Nick collision from services.
[01:02:06] ChanServ sets mode: +o iceeey
[01:02:08] iceeey_ has joined #peragro-dev
[01:10:55] <thebolt> stable your connection seems to be iceeey ..
[01:11:08] <iceeey> heh :)
[01:14:10] <thebolt> bah, i'm having serious trouble relaxing today :/ been sitting in a chair (started by reading later not doing anything) for well over 1½ hour.. in dark.. and i am not the least sleepy /:
[01:15:39] <iceeey> put on some music, drink a glass of water
[01:16:55] <thebolt> i'm (re)watching an episode of dark angel and hope it helps.. luckily i have no 6:00 getup-time tomorrow..
[01:18:46] <iceeey> ah good :)
[01:19:00] * iceeey has exam at 11
[01:19:35] <thebolt> i have an optional class at 10 and a lecture at 13..
[01:19:45] <thebolt> (or well, all classes are optional ;)
[01:19:51] <iceeey> hehe
[01:20:33] <thebolt> but it is just one of those "sit and calculate, there is a teacher to ask" classes
[01:20:40] <thebolt> which i skip every now and then
[01:20:44] <thebolt> lectures otoh..
[01:21:50] * iceeey never goes to physics lecture (except for exam which was today) since it is just stuff he knows
[01:22:36] <thebolt> i never missed a lecture ;)
[01:22:56] <thebolt> you never know if the lecturer will say something new/different/important
[01:23:23] <iceeey> true
[01:23:53] <iceeey> or if you just want to sit there and pick out errors and silently laugh to yourself ;)
[01:24:19] <thebolt> heh, our lecturers don't commit errors that often, and they usually find out (or are told) very quickly ;)
[01:24:41] <iceeey> I don't know what it is but it's been happening a lot lately
[01:25:43] <thebolt> heh okay. our lecturers usually are well prepared, have everything in written etc
[01:27:45] <iceeey> btw, you ever seen syntax for accessing array element 3 in a as: 3[a] ? my TA said that was valid C
[01:28:29] <thebolt> yes
[01:28:41] <thebolt> it is a well known and often used way to make it more obscure ;)
[01:28:46] <iceeey> haha
[01:28:46] <thebolt> it comes from this
[01:28:57] <thebolt> a[i] == *(a+i) by definition
[01:29:25] <thebolt> then pointer addition is commutative, so a+i and i+a is same (given a is a pointer and i an integer)
[01:29:38] <thebolt> so a[i] == *(a+i) == *(i+a) == i[a]
[01:30:11] <iceeey> ahhh
[01:30:23] <thebolt> it does not work when you have an overloaded operator[] though ;)
[01:30:25] <thebolt> (as expected ;)
[01:30:31] <iceeey> right
[01:32:03] <iceeey> you would think they would restrict the left operand to be of type pointer
[01:32:42] <thebolt> well, C is very non-restrictive ;)
[01:32:54] <iceeey> what about C++?
[01:32:55] <thebolt> and a[1] is just syntacitc sugar for *(a+1)
[01:33:06] <thebolt> well, C++ tries to be C compatible whenever possible
[01:33:10] <thebolt> thus it also works in C++
[01:33:16] <iceeey> i guess that's the only rationale
[01:33:23] <iceeey> gcc doesn't even give a warning :)
[01:33:50] <iceeey> well I keep that in mind next time i want to torture someone
[01:34:04] <thebolt> ;)
[01:34:08] <iceeey> any other interesting things you know of?
[01:35:43] <thebolt> many :)
[01:35:49] <iceeey> uh oh
[01:36:06] <thebolt> one intresting thing to remember in c and c++ is the concept of sequence point
[01:36:24] <thebolt> if you don't (or intentionally ignore them) you can very easily write code that isn't well-defined so you get random behaviour ;)
[01:36:52] <thebolt> like the simple
[01:36:55] <thebolt> i = i++;
[01:37:02] <iceeey> ah yes
[01:37:05] <thebolt> if i initially is 1, what is it after that statement? ;)
[01:37:17] <iceeey> undefined, right?
[01:37:21] <thebolt> yes
[01:40:24] <thebolt> there are more elaborate ways to write that ;)
[01:41:14] <thebolt> like i = ++++i++++;
[01:41:24] <iceeey> hm
[01:41:35] <thebolt> or i = i+++++i;
[01:42:01] <thebolt> (even j = i+++++i; is undefined iirc)
[01:51:40] <thebolt> oh well, time to try to sleep
[01:51:53] <iceeey> night thebolt|zzz
[06:27:56] CyaNox_ has joined #peragro-dev
[06:27:56] CyaNox has quit: Read error: 131 (Connection reset by peer)
[06:28:25] CyaNox_ changed nick to: CyaNox
[07:09:28] sueastside has joined #peragro-dev
[07:09:29] ChanServ sets mode: +o sueastside
[07:21:18] iceeey has quit: Remote closed the connection
[08:28:37] thebolt|zzz changed nick to: thebolt
[15:30:30] caedes has joined #peragro-dev
[15:30:30] ChanServ sets mode: +v caedes
[17:55:14] iceeey has joined #peragro-dev
[17:55:14] ChanServ sets mode: +o iceeey
[17:56:00] <iceeey> hi
[18:04:59] <thebolt> Hi
[18:31:34] <sueastside> hey hey
[18:47:06] iceeey has quit: orwell.freenode.net irc.freenode.net
[18:47:23] iceeey has joined #peragro-dev
[18:47:23] sets mode: +o iceeey
[18:54:44] iceeey has quit: orwell.freenode.net irc.freenode.net
[18:55:48] iceeey has joined #peragro-dev
[18:55:48] sets mode: +o iceeey
[19:05:56] caedes has quit: "nightmare reset by peer"
[19:18:29] <sueastside> thebolt: looking for some string functions, like IsAnInt() or something, care to point me in the right direction..
[19:18:50] <thebolt> hm, you mean to see if a string can be an int?
[19:19:07] <thebolt> try a lexical cast, if it throws you cannot ;)
[19:19:55] <sueastside> well not like that, you said to 'detect' the type somehow to store it in the right variant index...
[19:20:08] <thebolt> you mean when reading from file?
[19:20:11] <sueastside> yes
[19:20:36] <thebolt> well, what i ment was pretty much that, try to convert it to integer, if it is an integer store it as an integer etcf
[19:21:20] <sueastside> what happens if it is a float, wont it get cast succesfully?
[19:21:47] <thebolt> hm, true.. the distinction between those are harder.. hm
[19:22:26] <sueastside> already have bool, and string is for when everything fails :)
[19:22:59] <thebolt> sueastside: maybe check if it contains a . , if it does its float otherwise int
[19:25:12] * sueastside tries
[19:26:15] <sueastside> thebolt: you mentioned a python client, what should it be able to do?
[19:28:21] <thebolt> sueastside: hm?
[19:30:09] <sueastside> thebolt: " so, any idea about a small text-mode game to write? ;)"
[19:30:46] <thebolt> sueastside: yea well, we need to have something to test stuff with, so it would be something like a tic-tac-toe or hangman to try stuff out ;)
[19:31:11] <sueastside> ah very very very very very simple :)
[19:31:24] <sueastside> oops i missed a "very"
[20:02:07] iceeey has quit: Read error: 110 (Connection timed out)
[20:39:39] iceeey has joined #peragro-dev
[20:39:39] ChanServ sets mode: +o iceeey
[21:32:22] theboltEatingStu changed nick to: thebolt
[22:37:53] <sueastside> now just using the filesystem for loading instead of ifstream and clean up that stringToValue() and im done!
[22:39:54] <thebolt> :-)
[22:41:09] <sueastside> how the game doing? :)
[22:41:28] <thebolt> not coding that atm :)
[22:41:40] <thebolt> i had to do some stuff on the report in mechanics, have to turn it in tomorrow
[22:42:14] <thebolt> (and the guy i write it with found some errors which needed to be corrected..)
[22:42:22] <sueastside> i hate to say it, but skool has priority :)
[22:42:30] <thebolt> yep..
[22:42:37] <thebolt> next week exam period starts :/
[22:42:46] <thebolt> two weeks with exam both fridays ..
[22:42:56] <sueastside> woops add write a Writefile() for FileSystem...
[22:43:10] <sueastside> ..to my todo..
[22:43:19] <sueastside> ugh exams
[23:01:29] <thebolt> well, they're not too bad
[23:01:39] <thebolt> one in mechanics, one in mathematical optimization (basic course)