IRC Logs for #io Monday, 2013-12-23

*** mi6x3m has quit IRC00:00
*** jfischoff has quit IRC00:15
*** jfischoff has joined #io00:17
*** chadkouse has joined #io03:19
*** gatesphere has quit IRC05:15
*** jfischoff has quit IRC05:58
*** jfischoff has joined #io06:01
*** chadkouse has quit IRC06:02
*** jfischoff has quit IRC07:56
*** mi6x3m has joined #io08:04
*** mi6x3m has quit IRC08:20
zephyrtroniumwhen i do x := 5; y := x clone; y*x; the result is 25, as expected, but since y is a clone of x and not itself actually a Number, how does y * know that y is 5?08:45
*** pchalupa has joined #io08:51
*** debris` has quit IRC10:06
*** debris` has joined #io10:07
*** fredreichbier has joined #io12:49
*** gatesphere has joined #io13:31
*** fredreichbier has quit IRC13:59
*** gatesphere has quit IRC13:59
*** asie has joined #io14:10
*** gatesphere has joined #io14:43
*** asie has quit IRC15:05
*** asie has joined #io15:06
*** gatesphere has quit IRC16:33
jerzephyrtronium, order of operations.17:04
jerzephyrtronium, first do setSlot("x", 5); then do setSlot("y", x clone); then do y *(x)17:04
jerwith reduction we know that x == 5, and we know that y == 5 at the point the y *(x) expression is seen17:04
jertherefore, 5*5 == 2517:04
*** jfischoff has joined #io18:17
*** asie has quit IRC18:36
*** asie has joined #io18:38
*** asie has quit IRC18:43
*** OpenSpace has quit IRC18:51
*** pchalupa has quit IRC18:54
*** gatesphere has joined #io18:58
*** TheMonkey has joined #io19:19
*** bomma_ has joined #io19:20
*** debris`_ has joined #io19:22
*** debris` has quit IRC19:26
*** ElMonkey has quit IRC19:26
*** bomma has quit IRC19:26
*** jfischoff has quit IRC20:26
zephyrtroniumjer: my question was more about the type of y20:48
alpha123zephyrtronium: I guess * looks up the prototype chain for a value? :/20:49
zephyrtroniumaccording to the programming guide, cloning produces "an empty object," which i assumed meant was literally an empty Object, but upon closer inspection, it seems that Number clone actually produces a Number20:50
zephyrtroniumor more accurately IoNumber_rawClone() returns an IoNumber * with its DATA set to that of the proto20:51
jerzephyrtronium, right20:52
jerit's literally an empty object20:53
jerexcept it's protos list, is initialized with one member, the receiver of the 'clone' message20:53
jeri.e., o1 := Object clone do(x := 1); o2 := Object clone do(x := 2); o3 := o1 clone; o3 slotNames == list(); while o3 x == 1; whereas o1 slotNames == list("x")20:54
*** gatesphere has quit IRC21:11
prologicwait a minute21:31
prologicjer, x * y works becuase of inheritence21:31
prologica clone of a Number still inherits the Number proto's methods21:32
prologiczephyrtronium> according to the programming guide, cloning produces "an empty object," which i assumed meant was literally an empty Object, but upon closer inspection, it seems that Number clone actually produces a Number <-- yes an empty object, but it's parent or __proto__ is set to the cloned object21:33
prologicso there's a lookup inheritence chain21:33
prologicIo has and implemented multiple inheritence in a prototype object model21:34
zephyrtroniumthe issue was more that i thought i didn't understand how the target of a message is chosen21:36
zephyrtroniumbut since x clone produces a Number instead of a plain Object, everything makes sense21:37
zephyrtroniumas in, it is literally a Number that has x in its protos21:37
zephyrtroniumer, wrong chat22:24
*** perdix has joined #io23:11
*** perdix has quit IRC23:11
*** perdix has joined #io23:11
*** perdix has quit IRC23:12

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