[fpc-pascal] Outputting a set for debugging
What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred procedure? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Outputting a set for debugging
On Tue, 21 Feb 2012 21:19:52 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred procedure? Why not use dbgs(ShiftState) ? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Outputting a set for debugging
Mattias Gaertner wrote: On Tue, 21 Feb 2012 21:19:52 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred procedure? Why not use dbgs(ShiftState) ? Ignorance :-) -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal