--- Log opened Fri Aug 01 00:00:11 2008 |
00:02 | | You're now known as TheWatcher[zZzZ] |
00:06 | | AnnoDomini [AnnoDomini@Nightstar-29194.neoplus.adsl.tpnet.pl] has quit [Quit: Nobody makes jokes in base 13.] |
00:53 | <@ToxicFrog> | Shoukanjuu: actually he's joking that the guy on the right masses more. |
01:01 | < Shoukanjuu> | Oh, just being sure, 'cause I don't understand sarcasm. |
01:01 | < Shoukanjuu> | ...>_> |
01:11 | < Shoukanjuu> | Technically, the one guy makes more than any one guy, but the bigger company is still 'bigger' |
02:18 | <@MyCatVerbs> | Help! My attention span has dropped to maybe five seconds. |
03:04 | | * Consul gives up on figuring out exception handling in C++ for the night. |
03:23 | < Consul> | I understand how try/throw/catch works, but I don't get how to throw an exception that can be caught and then used/displayed in any way (log, console, popup box) without the calling object knowing where it ends up. |
03:24 | < Consul> | I should say, without the object doing the throw caring where it ends up. |
03:25 | | Attilla [~The.Attil@92.20.0.ns-26568] has quit [Quit: <Insert Humorous and/or serious exit message here>] |
03:27 | < Consul> | Is it as simple as tossing the string to stderr? |
03:36 | <@ToxicFrog> | That will print the string to the terminal, unbuffered |
03:36 | <@ToxicFrog> | If that's what you're after then, yes, it is that simple |
03:37 | <@ToxicFrog> | What do you mean by "without the calling object knowing where it ends up"? |
03:37 | < Consul> | Well, I'd like it to be able to go to a dialog box, or wherever the program using my classes want it. |
03:40 | < Consul> | You see, I'm writing classes that will be used by other programs, and my classes need to be able to throw exceptions, but they won't know anything about the programs using them. |
03:40 | <@ToxicFrog> | Why do they need to? |
03:40 | <@ToxicFrog> | Your class throws the exception. |
03:40 | <@ToxicFrog> | The host program catches it and handles it as they see fit. |
03:41 | <@ToxicFrog> | Eg (guessing at the syntax here, never used C++ exceptions): |
03:41 | <@ToxicFrog> | #include <libconsul.hpp> |
03:41 | <@ToxicFrog> | ...stuff.. |
03:41 | <@ToxicFrog> | try { libconsul::unsafeOperation(); } |
03:41 | <@ToxicFrog> | catch (Exception e) { displayShinyErrorBox(e.toString()); } |
03:43 | < Consul> | So I just put the throws in my code, and let the calling code handle the tries and catches? |
03:44 | < Consul> | Sounds simple enough, I guess. |
03:44 | < Consul> | BBIAB: kneading bread |
03:47 | <@ToxicFrog> | Yeah. If the caller is meant to handle the exception, that's where the try/catch goes. |
03:48 | <@McMartin> | Note that C++ allows you to throw anything, up to and including int and void *. |
04:03 | < Consul> | My plan was to have a separate file of constant strings. |
04:03 | < Consul> | And thank you both for the help. It's a lot clearer now. |
06:30 | | Consul [~darren@Nightstar-473.dsl.sfldmi.ameritech.net] has quit [Ping Timeout] |
06:39 | | Consul [~darren@Nightstar-473.dsl.sfldmi.ameritech.net] has joined #code |
07:58 | | AnnoDomini [AnnoDomini@Nightstar-29194.neoplus.adsl.tpnet.pl] has joined #Code |
07:58 | | mode/#code [+o AnnoDomini] by ChanServ |
09:33 | | You're now known as TheWatcher |
12:00 | | Attilla [~The.Attil@92.20.0.ns-26568] has joined #code |
12:00 | | mode/#code [+o Attilla] by ChanServ |
13:26 | | * TheWatcher pokes Mac OSX coders |
13:27 | <@TheWatcher> | can you confirm whether OSX uses dlopen/dlsym/dlclose like Linux/Solaris/etc? I'm assuming it does these days... |
13:43 | <@MyCatVerbs> | Don't mention dlsym() in here, you get mugged. ;) |
13:43 | <@MyCatVerbs> | It's close-enough to POSIX, so I'd be fantastically amazed if they didn't work. Just write a short example program to test. |
13:47 | | * TheWatcher mentiosn GetProcAddress() instead |
14:13 | | * ToxicFrog checks |
14:14 | <@ToxicFrog> | TheWatcher: looks like it doesn't |
14:15 | <@ToxicFrog> | lua #includes <mach-o/dyld.h> and uses NSLinkModule and NSAddressOfSymbol and friends. |
14:45 | <@TheWatcher> | hm |
14:45 | <@TheWatcher> | sod |
14:46 | | * TheWatcher notes that using glib is becoming more attractive >< |
14:48 | | Shel2476 [~Shel2476@Nightstar-9845.knology.net] has joined #code |
15:23 | <@TheWatcher> | Meh, screw it, it does the job |
15:29 | | Shel2476 [~Shel2476@Nightstar-9845.knology.net] has left #code [] |
16:07 | | Consul [~darren@Nightstar-473.dsl.sfldmi.ameritech.net] has quit [Ping Timeout] |
16:10 | | Consul [~darren@Nightstar-473.dsl.sfldmi.ameritech.net] has joined #code |
17:56 | | SouthernMyst [~Myst@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code |
17:56 | | mode/#code [+o SouthernMyst] by ChanServ |
17:56 | | * SouthernMyst pokes the Maccies |
17:56 | <@SouthernMyst> | do we have a C compiler built in to OS X? |
17:57 | <@SouthernMyst> | (or is there a free one somewhere?) |
17:58 | | * SouthernMyst also shares dessert: lemon-lime tarts |
17:59 | <@McMartin> | SM: developer.apple.com includes gcc and a bunch of IDEs. |
18:00 | <@McMartin> | X-Code makes building Cocoa apps a lot easier; otherwise raw gcc will be fine. |
18:00 | <@McMartin> | (And it's free) |
18:01 | | * MyCatVerbs hugs SouthernMyst, steals tarts. |
18:01 | < Shoukanjuu> | big X-Code package is big |
18:03 | <@McMartin> | gcc itself isn't that small either. |
18:04 | < Shoukanjuu> | I realized entirely too late that I had no idea what I was doing with X-Code. |
18:13 | <@SouthernMyst> | great, thanks! |
18:14 | <@McMartin> | X-Code is a full IDE. |
18:14 | < Shoukanjuu> | I can't bring myself to get rid of it. Perhaps I think it's a blemish on my ego, a fault, something to remember how imperfect I am |
18:14 | <@McMartin> | I like the syntax highlighting, and its !Glade is quite nice. |
18:14 | < Shoukanjuu> | Or maybe I'm lazy, and don't care to do so |
19:13 | | Shoukanjuu [~Shoukanju@Nightstar-20460.dhcp.embarqhsd.net] has quit [Quit: Shoukanjuu] |
19:19 | | Shoukanjuu [~Shoukanju@Nightstar-20460.dhcp.embarqhsd.net] has joined #code |
19:20 | < Shoukanjuu> | >_ |
20:47 | | AnnoDomini [AnnoDomini@Nightstar-29194.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
20:54 | | AnnoDomini [AnnoDomini@Nightstar-29536.neoplus.adsl.tpnet.pl] has joined #Code |
20:54 | | mode/#code [+o AnnoDomini] by ChanServ |
21:16 | | * Shoukanjuu shoots the core. |
21:39 | <@McMartin> | Your flying is like napalm in the Bacterions' pants! |
21:41 | < Shoukanjuu> | Apparently I'm "really good at Ace Combat 6" when I can shoot other players down with guns alone. |
21:42 | < Shoukanjuu> | ...>_> |
21:42 | < Shoukanjuu> | Or the NORMAL missiles, not special weapons >_> |
21:42 | < Vornicus> | Heh. |
21:42 | < Vornicus> | I totally owned people at Ace Combat because I could pay attention to /their/ screen. |
21:42 | < Shoukanjuu> | I can outfight a pair of players both piloting better planes than me. |
21:43 | < Shoukanjuu> | On Xbox live >_> |
21:43 | < Shoukanjuu> | I use the Su-47, they use F-22...There's a bit of a gap between them |
21:44 | < Shoukanjuu> | Like I explained a while ago, I can stall my engines strategically to make them miss with even special weapons that technically shouldn't be able to |
21:44 | < Shoukanjuu> | And have them go right by XD; |
21:44 | < Shoukanjuu> | Unlike computer opponents, a human player will slow down because "omfg I missed" |
21:44 | < Shoukanjuu> | Which leaves them open for my counter attack from directly behind them with guns or normal missiles. |
21:45 | < Shoukanjuu> | Because they slowed down, they lose a bit of maneuverability |
21:45 | < Shoukanjuu> | They can't dodge the missiles as well, and by that time, if they do, I'm on their tails with guns |
21:45 | < Shoukanjuu> | The good thing is that human players fall for it every time. |
21:47 | < Shoukanjuu> | For every skilled player, though, there is four who will pick the game's superplane and use the one hit kill weapon that's easy as all hell to aim and use effectively |
21:48 | < Shoukanjuu> | It's got the highest maneuverability and lowest stability and defense, though |
21:48 | < Shoukanjuu> | So mostly noobs pick it... |
21:49 | < Shoukanjuu> | Any skilled player can pick them out of the sky. The superplane gets less points for shootign down another plane |
21:49 | < Shoukanjuu> | 200 for an F-22 |
21:49 | < Shoukanjuu> | Where an F-22 gets 2000 for shooting IT down. |
21:51 | < Shoukanjuu> | I got Soul Calibur 4 in, today. |
21:51 | < Shoukanjuu> | But I already packed my 360 up to go to my dad |
21:51 | < Shoukanjuu> | dad's* |
21:51 | < Shoukanjuu> | I laughed at yoda being on the cover. >_> |
22:17 | | You're now known as TheWatcher[T-2] |
22:18 | < Consul> | Man, those cajun peanuts can blow your head off. |
22:19 | | You're now known as TheWatcher[zZzZ] |
22:29 | | AnnoDomini [AnnoDomini@Nightstar-29536.neoplus.adsl.tpnet.pl] has quit [Quit: I. AM. BEOWULF.] |
22:44 | | Shoukanjuu [~Shoukanju@Nightstar-20460.dhcp.embarqhsd.net] has quit [Quit: Life is a game.. The object is to survive, to imprint in history your legacy. Go forth and show them what you are, and why you, your memory, and your soul will not be so easily vanquished!] |
--- Log closed Sat Aug 02 00:00:21 2008 |