In certain situations the compiler requires a class type:
program Produce; begin raise 'This would work in C++, but does not in Delphi'; end. program Solve; uses SysUtils; begin raise Exception.Create('There is a simple workaround, however'); end.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|