quakeforge/ruamoko/scheme/Frame.r
Brian Koropoff 281b683e14 Initial commit of a future partial implementation of the R5RS Scheme
standard, implemented in Ruamoko.  Currently works for a few simple
"Hello, world!" programs.
2005-05-01 11:48:36 +00:00

33 lines
510 B
R

#include "Frame.h"
@implementation Frame
+ (id) newWithSize: (integer) sz link: (Frame) l
{
return [[self alloc] initWithSize: sz link: l];
}
- (id) initWithSize: (integer) sz link: (Frame) l
{
self = [super init];
size = sz;
link = l;
array = obj_malloc(@sizeof (id) * size);
return self;
}
- (void) set: (integer) index to: (SchemeObject) o
{
array[index] = o;
}
- (SchemeObject) get: (integer) index
{
return array[index];
}
- (Frame) getLink
{
return link;
}
@end