IRC Logs for #io Sunday, 2014-05-18

*** hashmal has quit IRC00:52
*** hashmal has joined #io00:53
*** hashmal has quit IRC00:58
*** gatesphere has joined #io01:04
*** springbok has joined #io01:49
*** springbok has quit IRC01:50
*** springbok has joined #io01:50
*** hashmal has joined #io02:54
*** hashmal has quit IRC02:58
*** gatesphere has quit IRC03:33
*** Raimondi has quit IRC03:41
*** Raimondi has joined #io03:55
*** bjz_ has joined #io04:07
*** bjz has quit IRC04:07
*** bjz has joined #io04:11
*** bjz_ has quit IRC04:13
*** hashmal has joined #io04:55
*** hashmal has quit IRC05:00
*** asie has joined #io05:15
*** asie has quit IRC05:19
*** asie has joined #io05:27
*** asie has quit IRC05:55
*** asie has joined #io06:04
*** springbok has quit IRC06:18
*** springbok has joined #io06:29
*** hashmal has joined #io06:56
*** hashmal has quit IRC07:01
*** mkroehnert has joined #io07:04
*** mkroehnert has quit IRC07:05
*** Guest95211 has joined #io07:08
*** asie has quit IRC07:49
*** hashmal has joined #io08:05
*** mkroehnert has joined #io08:38
*** asie has joined #io08:56
*** robonerd has quit IRC09:20
*** robonerd has joined #io09:22
*** asie has quit IRC09:35
*** asie has joined #io09:41
*** asie has quit IRC09:41
*** asie has joined #io09:47
*** asie has quit IRC11:00
*** Guest95211 has quit IRC12:13
*** mgoszcz2 has joined #io12:38
mgoszcz2Hi anyone knows anything about https://stackoverflow.com/questions/23721792/ios-method-scope?12:40
*** asie has joined #io12:46
*** TheMonkey has quit IRC12:48
*** asie has quit IRC12:49
*** asie has joined #io12:50
*** gatesphere has joined #io12:55
*** asie has quit IRC13:01
*** asie has joined #io13:06
*** asie has quit IRC13:25
*** asie has joined #io13:25
*** asie has quit IRC13:30
mgoszcz2Does anyone actaully read this?13:58
pdurbinmgoszcz2: I don't know the answer off hand but are you reading particular docs to learn Io?14:08
mgoszcz2The "Seven Languages in Seven Weeks" book and the Iolanguage.com Guide14:10
pdurbinhmm, I thought the 7 langs book would cover this. been a while since I looked at it14:14
mgoszcz2pdurbin: Not that I know of. It covers some metaprogramming but not in that depth14:20
pdurbinok14:21
mkroehnertmgoszcz2: from looking at the C sourcecode it looks like every message owns a 'locals' object14:31
mkroehnertI thinkt the parameters will be stored there14:31
mkroehnertmgoszcz2: take a look at the following file: https://github.com/stevedekorte/io/blob/master/libs/iovm/source/IoMessage.c#107014:35
mgoszcz2mkroehnert: so basicly it's magic?14:42
mkroehnerthmm, right now I am not sure if I mixed something :-)14:43
mkroehnertprobably depends on what you call 'magic'14:44
mgoszcz2It's not really accessible from the Io's interface..14:53
mgoszcz2I mean you can do "slotNames" to get local variables14:54
mgoszcz2but there is no object they belong to?14:54
mkroehnertmgoszcz2: I haven't looked at Io for a long time14:57
mkroehnerthad to read up a bit14:57
mkroehnertso each message object contains list in which the arguments are stored14:58
mkroehnertbut you can take a message and call 'arguments' on it to retrieve the arguments14:58
mkroehnertyou should probably try 'self arguments'15:02
mgoszcz2mkroehnert: Can you give me an example?15:02
mkroehnertI am currently checking on an example15:03
mgoszcz2Thanks15:08
mkroehnertmgoszcz2: there is the 'thisMessage' method15:16
mkroehnertbut strangely it returns an empty list for me15:16
mkroehnertlike in the following example: 'm := method(x, thisMessage arguments println)'15:17
mkroehnertmgoszcz2: got it15:29
mkroehnertm := method(x, y, call message arguments)15:29
mkroehnertshould I answer on SO, too?15:29
mgoszcz2What I mean is: 15:37
mgoszcz2What Object does calling "slotNames" access?15:38
mgoszcz2Notice that: 'm := method(x, y, slotNames)' returns 'list(y, self, updateSlot, x, call)'15:38
mkroehnertmgoszcz2: the name of the arguments are stored in the Block representing the method and can be returned by calling 'argumentNames' on the block15:40
mkroehnertah15:41
mkroehnertthen I didn't get your question right15:41
mkroehnertas far as I know the slotNames will access the current object, the locals and the Lobby15:42
mkroehnertso if you define 'x' on the repl15:42
mkroehnertyou can still access it in a method with getSlot("x") since it is defined in the lobby15:42
mkroehnertI can not give you a definite answer to why x and y appear in slotnames15:44
mgoszcz2mkroehnert: You are right about the Lobby..15:45
mgoszcz2So magic it is then15:45
mkroehnertI guess it is stored in the Locals object then15:45
mgoszcz2But Locals just returns nil?!15:46
mkroehnertif you do 'm slotNames' it returns the same15:48
mkroehnertso the arguments are actually stored as slots of the message15:48
mkroehnertor better said the Block15:48
mkroehnertmgoszcz2: unfortunately I have to go now15:48
mkroehnertwill eventually be back later15:49
mgoszcz2Ok.. I'll reword the SO question.15:50
mgoszcz2thanks15:50
mgoszcz2ttyl15:50
*** Guest95211 has joined #io16:19
*** adamnbowen has joined #io16:47
mgoszcz2mkroehnert: Ok I have re-worded the SO qustion http://stackoverflow.com/questions/23721792/ios-method-scope17:54
*** mgoszcz2 has quit IRC17:57
*** mgoszcz2 has joined #io17:58
mgoszcz2USERS17:59
*** bjz_ has joined #io19:35
*** bjz has quit IRC19:35
*** prologic has quit IRC20:18
*** prologic has joined #io20:18
*** springbok has quit IRC20:22
*** springbok has joined #io20:22
*** robonerd has quit IRC21:26
*** robonerd has joined #io21:28
*** hashmal has quit IRC22:13
*** pinupgeek has quit IRC22:13
*** ChanServ has quit IRC22:13
*** bjz_ has quit IRC22:14
*** igitoor has quit IRC22:14
*** petr has quit IRC22:14
*** adamnbowen has quit IRC22:14
*** bomma has quit IRC22:14
*** debris` has quit IRC22:14
*** prologic has quit IRC22:16
*** nisstyre has quit IRC22:16
*** zehl has quit IRC22:16
*** pdurbin has quit IRC22:16
*** Thor has quit IRC22:18
*** cratuki has quit IRC22:19
*** brixen has quit IRC22:19
*** robonerd has quit IRC22:19
*** mgoszcz2 has quit IRC22:19
*** gatesphere has quit IRC22:19
*** mkroehnert has quit IRC22:19
*** Raimondi has quit IRC22:19
*** ec_ has joined #io22:21
*** robonerd has joined #io22:22
*** bjz_ has joined #io22:22
*** mgoszcz2 has joined #io22:22
*** adamnbowen has joined #io22:22
*** gatesphere has joined #io22:22
*** mkroehnert has joined #io22:22
*** hashmal has joined #io22:22
*** Raimondi has joined #io22:22
*** prologic has joined #io22:22
*** bomma has joined #io22:22
*** pinupgeek has joined #io22:22
*** pdurbin has joined #io22:22
*** debris` has joined #io22:22
*** Thor has joined #io22:22
*** igitoor has joined #io22:22
*** ChanServ has joined #io22:22
*** petr has joined #io22:22
*** nisstyre has joined #io22:22
*** jer has joined #io22:22
*** bakkdoor has joined #io22:22
*** zehl has joined #io22:22
*** brixen has joined #io22:22
*** cratuki has joined #io22:22
*** ec has quit IRC22:23
*** ec_ has quit IRC22:23
*** robonerd has quit IRC22:23
*** ec has joined #io22:24
*** hashmal has quit IRC23:01
*** mgoszcz2_ has joined #io23:30
*** mgoszcz2 has quit IRC23:30
*** mkroehnert has quit IRC23:32

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!