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.0.0 / tests / webtbs / tw10920.pp
Size: Mime:
program bug_fmtcurrncy;
//  If write/writeln parameter list includes any item FOLLOWING a 
//     currency variable with format specs, the compiler throws
//     an Access violation exception.

var
  V: currency;    // currency blows up,  all other real types are Ok

BEGIN
  V := 34567;

  write( V:0:2, 'x' );   // This form produces the error

  write( V:0:2 );        // This equivalent form compiles Ok
  writeln( 'x' );

END.