Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / tbs / tb0554.pp
Size: Mime:
// check whether enums and integers can be casted to object references; this 
// should work in Delphi mode (is Delphi compatible)
{$mode delphi}
{$packenum 2}
type
  TEnum = (a, b, c);
  
var
  i : Word;
  e : TEnum;
  o : TObject;

begin
  o := TObject(e);
  o := TObject(i);
  i := Word(o);
  e := TEnum(o);
end.