Hi, I have a situation where I have available name of object's method slot which I would like to invoke. What is the best way to do this? I would like for the...
11612
Friedrich Weber
fred.reichbier@...
Jul 12, 2009 1:33 pm
Hi! I think the best way is to clone the method and set its scope to the target context, so you get a kind of "bound method": the_a := t getSlot("a") clone...
11613
Oscar Martinez
wasintw
Jul 12, 2009 6:00 pm
Hi, About performOn: If called on a method it behaves as stated in the docs, but called on a block has no effect (the block is activated but not on the object...
11614
Steve Dekorte
stevedekorte
Jul 12, 2009 6:02 pm
... theObject perform(slotName)...
11615
Steve Dekorte
stevedekorte
Jul 12, 2009 6:04 pm
... Sorry, please ignore this - I didn't read the rest of the question before responding. Friedrich's answer looks correct....
11616
bblochl2
Jul 13, 2009 4:46 pm
I tried the example "Create a simple object and show how to use it" from the page http://www.iolanguage.com/about/samplecode/: Account := Object clone do( ...
11617
bblochl2
Jul 13, 2009 6:32 pm
... I just tried the above Account example as a script with a starting shebang line on Linux - it was working! First I tried it from the Io line interpreter...
11618
Brian Mitchell
binary42@...
Jul 13, 2009 6:52 pm
... I haven't had time to try things out but have you tried using one line with ;'s on the REPL? I think the interactive REPL is a little broken on some...
11619
Oscar Martinez
wasintw
Jul 13, 2009 7:06 pm
... Playing with the CLI I found that Z_CLI.io does not handle correctly that case and the "slash at the end" case, at lease in my box (Debian Squeze/Sid on...
11620
bblochl2
Jul 13, 2009 8:57 pm
I have a problem of understanding: Io 20090105 Io> sin := 5 ==> 5 Io> 4 sin ==> -0.7568024953079282 Io> sin ==> 5 Io> 1x := 5 ==> 5 Io> x1:= 6 ==> 6 Io>...
11621
Jeremy Tregunna
jeremy.tregunna@...
Jul 13, 2009 9:03 pm
Do a 1 slotNames You'll find x there. Regards, Jeremy Tregunna Mobile: +1 (519) 498-8299 Sent from my iPhone...
11622
Samuel A. Falvo II
falvosa
Jul 13, 2009 9:04 pm
You know, when I first saw the subject heading for this message, I _seriously_ thought it read: [Io] secret vegetables? Uugh. It's only monday, and I already...
11623
Steve Dekorte
stevedekorte
Jul 13, 2009 9:04 pm
... 1x is parsed as "1 x" ... Yes, you can use: Object removeSlot(slotName)...
11624
Steve Dekorte
stevedekorte
Jul 14, 2009 2:09 am
... Heh. The title got me thinking about hidden variables in physics and what their parallel would be in programming languages. ...
11625
Erik Max Francis
erikmaxfrancis
Jul 14, 2009 2:15 am
... Probably something like people who use programming languages with programming paradigms (generic, object oriented, actor-based, etc.) without actually...
11626
Chris Double
doublecnz
Jul 14, 2009 11:30 am
A while back Avi Bryant (Seaside web framework author) did a talk on his approach to building a Seaside like web framework. Phil Windley did a write-up about...
11627
bblochl2
Jul 14, 2009 2:16 pm
... I tried with Io 20090105 and get : Exception: Failed to load Addon Socket - it appears that the addon exists but was not compiled. You might try running...
11628
bblochl2
Jul 14, 2009 2:21 pm
... You dont need atrributes/variables/named memory/slots in generic, object oriented, actor-based, etc.? You are Superman!! Reagrds BB...
11629
Samuel A. Falvo II
falvosa
Jul 14, 2009 2:23 pm
... Just a friendly reminder -- not everyone uses or chooses to configure their mail client to fold quotes. When replying, can you please focus your quotes on...
11630
Andreas Schipplock
schipplock
Jul 14, 2009 2:24 pm
hi, when you build Io watch out for errors...it doesn't necessarily stop on an error (which are related to addons) :). The solution is to re-compile Io with...
11631
William Tanksley
wtanksle
Jul 14, 2009 2:45 pm
... Those things are part of object-oriented design. Massive IF and CASE cascades, on the other hand, are an example of coding as though OO wasn't there. ... ...
11632
bblochl2
Jul 14, 2009 2:56 pm
... Regards BB...
11633
bblochl2
Jul 14, 2009 3:03 pm
... Regards BB...
11634
Samuel A. Falvo II
falvosa
Jul 14, 2009 3:05 pm
... I don't think you fully understood the gist of Erik's comment. He's talking about people who write functional-style programs in C, imperative-style code...
11635
bblochl2
Jul 14, 2009 3:25 pm
Phantastic! One can hide just everything in Io. Something to exploit? I will do some more research. Do you have some evil ideas? Regards BB PS: I really do not...
11636
Samuel A. Falvo II
falvosa
Jul 14, 2009 4:41 pm
... Not necessarily; everyone has ignorance in SOME field of endeavor. I happen to be a professional software engineer, so I got his point immediately. But,...
11637
Rich Collins
richwcollins
Jul 14, 2009 6:23 pm
missing libevent is a common cause of Socket build errors....
11638
bblochl2
Jul 14, 2009 7:26 pm
... Sorry for my naughty mail! I vow obedience! ... "'Make Socket" started in the Io installation directory produces about one and half a page of error...
11639
Steve Dekorte
stevedekorte
Jul 14, 2009 8:33 pm
... This reminds me of something I've been thinking of doing with the Io API... I've noticed that the use of multiple arguments is, in all the examples I've...
11640
Jesse Ross
jesserosscom
Jul 14, 2009 8:39 pm
... I haven't been using Io much lately (so I don't know how much my opinion is worth), but this seems like a great idea to me. I've always liked...