Re: case statement for Lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: case statement for Lua
- From: Steve Dekorte <steve@...>
- Date: Mon, 14 Apr 97 10:58:01 -0700
>Maybe it's just me, but does anyone else find this syntax, well,
>gruesome?
Anyone considered giving Lua a Smalltalk/Objective-C like syntax?
This is what Objective-C looks like:
- addAttributeNamed:aName withValue:aString
{
id newAttribute = [[Attribute alloc] init];
[newAttribute setItemName:aName];
[newAttribute setValue:aString];
[attributeList addObject:newAttribute];
return self;
}
---
Steve Dekorte - OPENSTEP developer - San Francisco