... I have a workaround; I was just posting because I thought Io shouldn't crash with something like that. I've simplified it to: foo := method(x, x) ...
Stefan O'Rear
stefanor@...
Feb 1, 2009 9:14 pm
11313
... Update - there seem to be two orthogonal issues here. Second: ^C is not very robust. It runs the Io interpreter in signal context, causing massive...
Stefan O'Rear
stefanor@...
Feb 2, 2009 2:27 am
11314
... That's right. It's probably a one or two line of code change....
... Relaying stop statuses would be closer to what I intuitively expect, but it would probably be prudent to put some (as yet uncharacterized) restrictions on...
Stefan O'Rear
stefanor@...
Feb 2, 2009 10:04 am
11316
Hello, As a new to Io I state it briefly ... If I have my custom Cocoa class(es) (NSObject) written in objC. Can I access it through bridge or is it only...
In languages like C#/C++/Java/VB.Net, there's a distinction between public object members that form the interface, and private members that are part of the...
... Io, like most of the other interpreted OO langagues (Perl and Python definitely do this), has a convention that symbols beginning with _ are internal and...
Stefan O'Rear
stefanor@...
Feb 4, 2009 5:15 pm
11319
... While I'm sure that supporting access control for members is desirable, the complexity of implementing it in a language where objects can be cloned and...
Actually, it's not that hard at all. If you search through the mailing list archives, I provided an example of private visibility which works well for 99% of...
Jeremy Tregunna
jeremy.tregunna@...
Feb 4, 2009 7:26 pm
11321
... You know, I would, if the mailing list archives had decent search capabilities. :) -- Samuel A. Falvo II...
I just discover Io and find it... waow! Is this list a proper place to ask questions that come up while studying the language? Case yes, I have a first issue....
spir
denis.spir@...
Feb 13, 2009 7:11 pm
11323
... Object is the receiver. ... By default, your current object is searched; then its parent, then its parent, etc. Ultimately this terminates at Lobby, which...
A bit more precisely, there is such a thing as current object, to which first message in each line is sent. There are two cases, what can this object be: If...
... It is not. Lobby is the receiver, of which Object is a proto (as Lobby is a proto in Object, gotta love circular references). ... Technically it terminates...
Jeremy Tregunna
jeremy.tregunna@...
Feb 13, 2009 10:00 pm
11326
Thank you for your answers about "implicit receiver". There are actually many important details I don't understand for I have no experience with prototypes....
spir
denis.spir@...
Feb 13, 2009 10:20 pm
11327
Besides the name (they are usually named "with"), factories are widely used for object creation in Io, as it is virtually the only way to have something like...
Hello, A load of Io-related questions, actually. === slot name rebinding: ":=" vs "=" Why is "o x:=1 ; o x:=2" allowed? Is there any difference in purpose or...
spir
denis.spir@...
Feb 16, 2009 11:47 am
11329
... IMHO, "=" is really a bad thing in Io. It was intended to make assignments to fields in self, but I myself prefer to always use ":=" with explicit self --...
The following code produces a segfault after a few hundred requests: loop( try( URL escapeString("///") URL with("http://localhost/") fetch ) ) It seems to...
... No common idiom as far as I know. I hacked this together some time ago: List unpackTo := method( for(i, 0, call argCount - 1, call sender setSlot(call...
[Excuse me for answering so late -- not always free.] Le Sat, 14 Feb 2009 10:39:45 +0300, ... So, now it seems generating a new result is done by sending the...
spir
denis.spir@...
Feb 18, 2009 9:30 am
11333
Le Mon, 16 Feb 2009 15:43:53 +0300, ... Right. updateSlot means "I want to rebind". So that if the name is not found locally, the lookup procedure forwards the...
spir
denis.spir@...
Feb 18, 2009 10:08 am
11334
Le Tue, 17 Feb 2009 08:04:49 +0100, ... Thank you, I will soon need something like that. An exercise will be to unpack "records" or "tuples" instead (meaning...
spir
denis.spir@...
Feb 18, 2009 10:42 am
11335
Hi all, Io-newbie here, so far appears to be a fun language though. My question, I can't seem to figure out how blocks (as opposed to methods) are supposed to...
Mark Meijer
meijer78@...
Feb 18, 2009 11:46 am
11336
... Don't know if they are documented explicitly. I use the library as reference point and there the methods are named `fooBar` instead of `foo_bar`. And...
It's significant in that it breaks semantics for serialization. To call a block, you need to do things like: y := block("Hello Y") y call ==> Hello Y OR You...
Jeremy Tregunna
jeremy.tregunna@...
Feb 18, 2009 1:43 pm
11338
... Indeed. Though this could probably be worked around if it's possible to distinguish (through introspection) between a method and a block. But I assume,...
Mark Meijer
meijer78@...
Feb 18, 2009 6:14 pm
11339
... I can't speak as to what's going to happen in the future, my mind reading device is currently in for repairs. However, stopStatus is used to implement...
Jeremy Tregunna
jeremy.tregunna@...
Feb 18, 2009 6:27 pm
11340
... What are the exact semantics you are asking for when you ask for "non local returns"? For example, what do you want: block(block(return 1) call; return 2)...