REPROC <list> [ OF <id> ]
DREPROC [ <id> ]
PROC AllocScene()
DEF scene:PTR TO LONG,err,n
IF (scene:=AllocMem(4*SIZEOF_LONG,MEMF_PUBLIC|MEMF_CLEAR))=NIL THEN RETURN NIL,ERR_Mem
LOOP n:=3
IF (scene[n],err:=AllocObject())=NIL THEN REPROC NIL,err
ENDLOOP
DREPROC
LOOP n:=3
IF scene[n] THEN FreeObject(scene[n])
ENDLOOP
ENDPROC scene,ERR_None