Hi! Just a notice that there are two warnings when compiling IoLexer.c with gcc on Linux (I used GNUstep makefile system to compile Io): Sources/Io/IoLexer.c:...
Sebastien Pierre
sebastien.pierre@...
Apr 2, 2003 9:03 am
848
Sebastien, Thanks for the feedback. Is it in this line?: if (c == NULL) { IoLexer_popPosBack(self); return 0; } If so, does this fix it?: if (c == 0x0) {...
Hi Steve! On Wed, 2 Apr 2003 02:09:59 -0800 ... Yes! this fixes the warning (you've got to do it at both line 405 and 423). -- Sebastien...
Sebastien Pierre
sebastien.pierre@...
Apr 2, 2003 10:14 am
850
Hi all, I was wondering if some `char *' in Io should not be `const char *' instead, like in the print callback (IoState_printCallback_). I don't think the...
Sebastien Pierre
sebastien.pierre@...
Apr 2, 2003 1:52 pm
851
Hi again! It seems like there is a typo in the `Embedding' section of IoVM manual: <snip> #include "IoState.h" void MyPrint(void *state, char *s) { printf(s);...
Sebastien Pierre
sebastien.pierre@...
Apr 2, 2003 2:43 pm
852
... I like this very much. (Sorry for the delay.) /P. -- Peter Lindberg Computer Programmer, Oops AB, Sweden http://oops.se/ http://tesugen.com/...
Hi all, I successfully applied Steve advices on using my own block invocation operation to make Io use Piranhas execution service (which is a simple callbacks...
Sebastien Pierre
sebastien.pierre@...
Apr 2, 2003 3:15 pm
854
... Yes, you're right. I need to clean that up at some point. Thanks for the reminder. Cheers, Steve Io, a small language: http://www.iolanguage.com/...
Sebastien, ... Thanks for the fix! ... Oops, I got a bit aggressive with search&replace. That should really be "IoState_printCallback_" in IoState. I'll fix...
... I'm not sure what you mean by atomic here, but loops don't involve calling a block unless you do so yourself. ... I'd recommend taking any code you'd have...
On Thu, 3 Apr 2003 02:27:19 -0800 ... If I take the concurrency example, we have this: obj1 = Object clone obj1 test = block(for(n, 1, 3, n print; yield)) obj2...
Sebastien Pierre
sebastien.pierre@...
Apr 3, 2003 10:46 am
858
... My mistake: foo = block(i print) for(i, 1, 10, foo) Of course you need to be careful when you assign variables. Cheers, Steve Io, a small language:...
On Thu, 3 Apr 2003 02:59:57 -0800 ... I get a core dump that I am unable to debug: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread...
Sebastien Pierre
sebastien.pierre@...
Apr 3, 2003 12:15 pm
860
... I don't get a crash. Could it be happening in your callback? ... The yield method isn't a Block, it's a CFunction. Cheers, Steve Io, a small language:...
Below I've included some of my experiments with implementing mix-in's in Io. Suggestions for code or design improvements would be appreciated. // An 'extends'...
... Hey Kevin, Looks good. Do you mind if I add it as example code in the Io release? With a small change, it seems it could handle "aspects" as well. Cheers, ...
... No, I don't mind at all. You can use anything I post to the message board. ... Really? How would you do that? I would have thought that for aspects you...
I don't really know what to call things in Io. The normal nomenclature that I use for conventional class-based OO languages just doesn't apply to Io....
// This experiment tests Io's ability to support Objects with dynamic 'parent's. A = Object clone do ( foo = "A" ) B = Object clone do ( foo = "B" ) A foo...
... Currently, inheritance lookups use getSlot(), so they don't activate blocks. So when c follows it's parent slot to lookup foo it finds a block and ignores...
In Java it is a common pattern to have to have "Properties": values of an Object with getter and setter methods. ex. protected String name_; public String...
I think it would be more fair to exclude comments. If source is used for documentation, there will be a *lot* of comments in there. I know it's more of a...
What about using <- for set()? This is how you assign a value to a number 'object' without creating a new instance. e.i.: x = 10 x <- 20 The <- message would...
... activate ... overhead ... Hi Steve, The reason that I was trying to create dynamic parent's (or proto's) is so that I could create support for 'private'...