8 Apr 01:10
Array question
From: Dan Amelang <daniel.amelang@...>
Subject: Array question
Newsgroups: gmane.comp.lang.smalltalk.fonc
Date: 2008-04-07 23:12:01 GMT
Subject: Array question
Newsgroups: gmane.comp.lang.smalltalk.fonc
Date: 2008-04-07 23:12:01 GMT
Hey everyone,
My brain's probably fried from coding for too many consecutive hours,
but this following looks kinda strange to me:
(from function/objects/Array.st):
Array size_: _size value_: _value
[
self := self new: (SmallInteger value_: _size).
_oops := _value.
{
int i;
for (i= 0; i < (int)v__size; ++i)
((oop *)self->v__oops)[i]= *((oop **)v__value)[i];
}.
]
What is that "_oops := _value." doing?
Dan
RSS Feed