public static IoObject slotPop(IoObject target, IoObject locals, IoObject message)
{
IoMessage m = message as IoMessage;
IoList o = target as IoList;
if (o.list.Count > 0)
{
IoObject e = o.list[o.list.Count - 1] as IoObject;
o.list.RemoveAt(o.list.Count - 1);
return e;
}
else
{
return target.state.ioNil;
}
}