home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 February
/
Chip_2000-02_cd.bin
/
zkuste
/
Delphi
/
navody
/
tt
/
objvm.exe
/
SAMPLE
/
uObjVM.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-03-13
|
597b
|
28 lines
unit uObjVM;
interface
uses Classes,
Code,uExecution,LangValue,RootValue,OpList;
type IObjVM=class(IValueOwner)
public
Ops:TOpList;
Root:TRootValue;
function StartExecution(c:TCode):IExecution;virtual;abstract;
procedure Run(c:TCode);virtual;
end;
implementation
procedure IObjVM.Run;
Var e:IExecution;
begin
e:=StartExecution(c);
try
e.Run;
e.Free;
except
e.Free;
raise;
end;
end;
end.