Bob Richards wrote:
Michalis Kamburelis wrote:
There's a bug in Hex2Dec implementation -- it returns 0 instead of
raising EConvertError. Here's a patch:
Index: strutils.pp
===
--- strutils.pp(wersja 2298)
+++ strutils.pp(
Michalis Kamburelis wrote:
> There's a bug in Hex2Dec implementation -- it returns 0 instead of
> raising EConvertError. Here's a patch:
>
> Index: strutils.pp
> ===
> --- strutils.pp(wersja 2298)
> +++ strutils.pp(kopia robo
Bob Richards wrote:
[...]
According to the docs on function "Hex2Dec" in Strutils:
"If S does not contain a valid hexadecimal value, an EConvertError exception will be
raised."
So, what profound lack of understanding am I suffering from? Anybody?
There's a bug in Hex2Dec implementation --
I probably should have stated which compiler I was using If it matters:
$ fpc hextest.pas
Free Pascal Compiler version 2.0.0 [2005/05/15] for i386
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for i386
Compiling hextest.pas
Linking hextest
26 Lines compiled, 0.6 sec
--
PGP Enc
I must not understand a fundamental concept here. Perhaps someone can point me
in the
right direction.
{$mode Delphi} //Delphi or objfpc same results
program hextest; // or why can't I trap an exception?
uses Sysutils,strutils;
var
b:byte;
hex:string;
begin
Write('Enter a hex Str
В сб, 2006-01-28 в 14:54 +0100, guido ursoleo написа:
> Dear list,
> i've a problem with the output of IDE freepascal ( command fp ).
> I've linux installed and gnome terminal. I launch the IDE pascal typing
> the command $ fp, edit my source file, compile it and when i execute it by
> the Run me
> ? ??, 2006-01-28 ? 14:54 +0100, guido ursoleo ??:
> > Dear list,
> > i've a problem with the output of IDE freepascal ( command fp ).
> > I've linux installed and gnome terminal. I launch the IDE pascal typing
> > the command $ fp, edit my source file, compile it and when i execute it by
>
Dear list,
i've a problem with the output of IDE freepascal ( command fp ).
I've linux installed and gnome terminal. I launch the IDE pascal typing
the command $ fp, edit my source file, compile it and when i execute it by
the Run menu it opens the output window with the output of the program on