Hi Steve, ... This is indeed a good solution for my task, since I will always call "dim" with the same parameters. It is shorter to just compile a message once...
Jonas Eschenburg
indyjo@...
Sep 1, 2004 9:31 am
4495
In the Number docs, there's an example: 1234.5678 asString("$.2f") ... but when I try that (using IoDesktop v. 20040829 on OSX), I get: ...
... Thanks for the bug report. I've fixed the docs. To do the above, you can use: "$" .. 1234.5678 asString(0, 2) ... I've added a constants slot to Number...
Hello Steve, ... Nope. I could probably install libdb-dev or something, but I don't think it's installed by default on Debian. -- Best regards, Daniel....
The docs for String rstrip(aStringOrBuffer) says "Returns a new String with the characters in aStringOrBuffer from the end of the receiver." I think a word...
I've noticed a couple of errors in the Number docs: - Directly under "Methods" there's a line saying "Returns the maximum float value". - "floatMax" has this...
I'm currently playing with a server script based on /Sockets/_tests/WebServer.io, and I would like to know if it's possible to get the IP address of the remote...
I'm working on a script that's browsing around in the structures of Io, and I came across the Nop object which caused me some headscratching. Is it possible to...
... How about isNop := block(o, if (o type == 77, Object, Nil) ) isNop(Nop) => Object isNop(Nil) => Nil isNop(3) => Nil It's not 100% safe. Tobias...
Tobias Peters
tpeters@...
Sep 3, 2004 1:40 pm
4510
... Thanks! That seems to work, but I'm a bit surprised: A type being numeric (not String), like 77. Is this undocumented, and therefore not 100% safe? I guess...
... This is not the reason. Nop returns itself in response to any slot access. Here, the slots 'type' and '==' are accessed subsequently. Nop, being Nop,...
Tobias Peters
tpeters@...
Sep 3, 2004 2:43 pm
4512
When I (using v. 20040829 on OSX) do Directory clone create(".") ... I get Nil, not a Directory as the docs say. On the other hand, Directory clone path ......
Why aren't Nop and Nil the same object in Io? In Objective-C, nil returns nil when sent any message (plus some exceptions when the sender expects a scalar...
... It's an interesting idea. I see some possible issues though. Unlike Smalltalk, Nil is used for "false" in Io. So in this example: a == b will return Nil,...
... I think a merged Nop/Nil should still have some methods of its own, including all existing methods of Nil. I.e. all I imagine is adding Nil forward :=...
... Well, the reason why Nop was created was to deal with "if() then() elseif() else()" types of control structures. For example, if() returns Nop if it's...
I've been having trouble posting to the io mailing list; if this is a dupe, forgive me. ;) The following code outputs "bar"; I'm not sure whether it's a bug in...
The following code outputs "bar"; I'm not sure whether it's a bug in Io, or just me screwing something up. If it's not a bug, what's going on, and how can I...
... Hi Ian, The problem is that "target" is a special local name (this is described in the Io Programming Manual). You might try using a different name. ...
I noticed while browsing the archives that someone had made an Io syntax highlighting mode for SubEthaEdit (2/15/04), but as I joined the group only a few...
... It's in the source distribution, under Projects/SyntaxHighlighters/SubEthaEdit/Io.plist It should probably become part of with the binary distribution,...