18:44 dvx
18:45 Anubisss #lua
18:46 dvx #lua
18:47 PoppaVic #lua
18:48 m1ndwarp
19:00 sshc_ sshc
19:05 Textmode night all
19:06 Juizmode
19:06 THC4k #lua
19:06 Textmode
19:07 jwillia3 _three
19:08 _three jwillia3
19:13 THC4k
19:14 Nayruden
19:16 daedeloth
19:18 WormDrink #lua
19:19 WormDrink does lua have something equavalent to C++ Abstact base classes ?
19:22 TheBunny no
    you might be able to make one
    WormDrink you realize that Lua does not have classes at all?
19:23 WormDrink yeah
    i know it doesnt strictly have OO support
    and OO support sits in user level
19:23 TheBunny one sex
    sec
19:24 Nayruden #lua
19:24 WormDrink http://lua-users.org/wiki/YetAnotherClassImplementation
19:25 TheBunny http://lua-users.org/wiki/SimpleLuaClasses
19:25 WormDrink seems that has it
19:25 TheBunny yeah Im sure you can do it
    the question is what is teh best way
19:26 TheBunny See the first example
    in its case not defining a method would make the app crash etc I think
    as way to enforce it
19:27 WormDrink see im fed up with this half assed build systems
    like gnu make, and cmake
19:27 TheBunny and you want to make a lua one?
19:28 TheBunny how about ant etc?
19:28 WormDrink would go for C++ but cint is not as widely ported
19:28 TheBunny some of those seemed nice and easy.
19:28 WormDrink ehrm, ant is java based ?
19:28 TheBunny I think
19:28 deryni Or the two or three other lua-base build tools.
19:28 TheBunny builds for everything and java is everywhere
    I see it common use
    I think cause its damn simple.
19:29 WormDrink i saw some lua tools - dont see the advantage really - in the end what i want is very complicated so you need a lanugage which doesnt complicate already compicated stuff
19:29 TheBunny java based would be no worse then installed Lua etc
19:29 WormDrink java is worse
19:29 TheBunny Oh I was suggesting maybe a better solution exists now
    with no need to code anything at all ever
19:29 WormDrink doubt it
19:33 jwillia3 #lua
19:34 Snoopy_1611 #lua
19:44 ATuin
19:45 ATuin #lua
19:54 sshc_ #lua
19:57 sshc
20:03 blankthemuffin #lua
20:05 noisetonepause #lua
20:06 sshc_ sshc
20:07 Nayruden
20:09 jugg
20:11 Nayruden #lua
20:31 MattJ #lua
20:31 Anuka #lua
20:34 Anubisss
20:35 Kumool
20:39 Nayruden
20:42 rafaelmartins #lua
20:44 Nayruden #lua
20:46 Snoopy_1611
20:49 g0bl1n
20:58 blankthemuffin
21:08 uzsolt #lua
21:08 gershon #lua
21:11 Nayruden
21:13 foodoo
21:15 ATuin
21:17 noisetonepause
21:18 Snoopy_1611 #lua
21:20 noisetonepause #lua
21:20 Chromix
21:22 {newbie} #lua
21:23 Snoopy_1611
21:24 Snoopy_1611 #lua
21:25 dvx
21:31 aliverius #lua
21:36 Nayruden #lua
21:50 mattikus #lua
21:58 Harpyon
22:05 Dylan168071 #lua
22:05 Dylan16807
22:08 hoelzro
22:24 sllide
22:24 stepnem
22:26 stepnem #lua
22:35 MizardX
22:37 MizardX #lua
22:39 mattikus
22:40 mattikus #lua
22:41 Kumool #lua
22:48 Anuka
22:55 woakas
22:55 Kumool
22:56 Kumool #lua
22:57 dark #lua
22:58 Dessous
23:00 Kumool
23:06 seisatsu #lua
23:09 g0bl1n #lua
23:14 cortana` #lua
23:24 noisetonepause
23:30 Kumool #lua
23:39 TobiasFar
23:43 ToxicFrog
23:58 SmithKurosaki
00:01 g0bl1n
00:01 serianox
00:11 sebi_` sebi`
00:13 SmithKurosaki #lua
00:13 ToxicFrog #lua
00:16 TheBunny
00:16 Firzen
00:19 Kumool
00:20 lhf #lua
00:22 sylvanaar_work #lua
00:22 sylvanaar_atwork
00:24 Kumool #lua
00:27 mattikus
00:30 {newbie}
00:41 gershon
00:44 THC4k #lua
00:45 Funkeh`
00:46 Kilroo #lua
00:53 cortana`
00:55 Kumool
00:57 jugg #lua
01:01 Slade-
01:01 stuckie
01:02 stuckie #lua
01:05 Kumool #lua
01:18 aliverius
01:19 DrToast #lua
  DrToast #lua
01:19 aliverius #lua
01:38 rafaelmartins
01:41 rafaelmartins #lua
01:46 THC4k
01:55 sebi_` #lua
01:56 aliverius
01:58 sebi`
02:13 Frakenstein #lua
02:24 nighty__ #lua
02:26 LaKraven
02:27 TobiasFar #lua
02:32 lhf
02:37 nighty__
02:51 Baatti #lua
02:53 jcowan #lua
02:58 Slade- #lua
02:58 Emzzzz #lua
02:58 Emzzzz http://imggmi.info/DSC-1268362369.jpg/ do my tits look big?
02:58 Emzzzz #lua
03:15 seisatsu
03:18 jcowan_ #lua
  jcowan_ #lua
03:24 pjm0616
03:30 Legorol
03:33 seisatsu #lua
03:39 ivan`
03:49 jugg follow up on tokenizing a string into quoted parameters: http://codepad.org/Yawzh009 feel free to comment, offer suggestions. (note: it doesn't handle escaped quotes, I don't have that requirement)
03:51 pjm0616 #lua
03:52 ivan` #lua
03:55 TheBunny #lua
04:02 CcSsNET #lua
04:03 Baatti
  Baatti #lua
  Baatti
04:04 Baatti #lua
04:06 malinka
04:08 Baatti Baatti_AFK
04:13 malinka #lua
04:22 malinka
04:26 malinka #lua
04:28 MizardX
04:34 weigon_ #lua
04:38 weigon
04:43 deryni jugg: You can get rid of the :match call if you just try the first gsub and check the count of replacements it does, but I don't know if that's going to be better or worse performance wise.
04:44 deryni Also, I'd use :gsub and avoid table.insert (just append it manually, either with #tokens+1 or keep a count).
04:56 MattJ
05:00 jugg I can't base it on whether the first gsub call matches or not, as it may fail to match, yet still start with a ".
05:01 jcowan #lua
05:03 deryni In which case you want what to happen?
05:04 jugg the block that if param == old then handles.
05:05 Kumool
05:05 malinka
05:05 jugg ie, if neither of the patterns apply, then the string format is bad, and it should just return the rest of the string as a single token.
05:06 deryni Right, that works fine with what I said.
05:07 deryni Hm, at least I think it does. Let me test it.
05:07 jugg except in your case, it also applies the second gsub reducing performance.
05:07 deryni Potentially, it depends on how quickly gsub short-circuits as compared to match.
05:10 jugg ok, how's this: http://codepad.org/Yo27DFpx
05:12 deryni Other than that c is a global it looks fine to me. But like I said using match may be faster, it depends on tight timing and what your input looks like (if you rarely hit the one gsub case this way likely isn't better).
05:15 jugg oops, neither way works if there is leading whitespace.
05:16 deryni I fixed that, hold on.
05:17 deryni I used '^([^%s]*)%s*' for the second pattern.
05:19 pdusen
05:20 deryni That grabs the initial space as an entry and should be what you want assuming [[foo"bar"]] is one token and not two.
05:22 malinka #lua
05:23 sylvanaar_work
  sylvanaar_work #lua
05:25 Kumool #lua
05:32 dark
05:39 jugg well, I think this is my final version for now: http://codepad.org/RkkYEgdX thanks for your input deryni
05:42 deryni If that suits your needs, great. Personally I find splitting [["am I a "token" yes?"]] into 'am I a ', 'token', and ' yes?' very odd.
05:46 Poison[BLX] #lua
05:48 jugg well, the alternative is: am I a , token" , yes?"
05:49 jugg or, I have to require a space after the closing " to avoid that. But that requires alternation to check for a space or end of string $
05:49 deryni You can post-process that I think, if your final non-match is "......" strip them.
05:50 deryni But yeah, like I said, it depends on what your requirements are.
05:51 blankthemuffin #lua
05:51 jugg yah, I think it is doing what I need.
05:53 malinka
05:54 jugg if a space is required after a quote, then the result of that input would be: am I a "token , yes?"
05:56 jugg hmm, actually it wouldn't produce a match at all... so it'd just return the whole string.
05:56 anthonyl
06:00 TR2N #lua
06:07 malinka #lua
06:07 dvx #lua
06:07 jA_cOp #lua
06:16 Poison[BLX]
06:20 General1337 #lua
06:21 blankthemuffin
06:22 Kilroo
06:23 sylvanaar_work
  sylvanaar_work #lua
06:24 General13372
06:25 Luben
06:26 Luben #lua
06:44 seisatsu
06:45 seisatsu #lua
06:47 Zaba
06:55 Zaba #lua
06:55 ikaros #lua
07:15 foodoo #lua
07:19 nighty__ #lua
07:19 daurnimator jugg: the whole process seems strange
07:20 daurnimator only place I can see it making sense is emulating some sort of command line arguments...
07:21 blankthemuffin #lua