According to richard.kerry@quantel.com:
Does gpc have a built-in mechanism for converting a number to hexadecimal, for use in write(ln) or just as a number to string conversion ?
No(t yet;-).
Oregon Pascal uses a negative field width to denote hex output (which I believe is sometimes also used to denote left justification), and Vax Pascal has a built-in 'hex( num, width )'.
I do not think it's good to use negative field widths for this purpose (except, perhaps, for compatibility reasons). The Vax syntax, OTOH, seems quite nice for me.
Right now we are still trying to finish up gpc-2.1, but we might take this into account for gpc-2.2.
Hmm ... what about something like `NumBase ( base, num, width )' to allow for arbitrary bases like in `2#101010'?
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [971005] maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005]