diff options
Diffstat (limited to 'pkg/pointer')
-rw-r--r-- | pkg/pointer/intput-output.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/pointer/intput-output.go b/pkg/pointer/intput-output.go index 6a2423a..1251698 100644 --- a/pkg/pointer/intput-output.go +++ b/pkg/pointer/intput-output.go @@ -5,6 +5,9 @@ import ( "os" ) +// We keep the last input char to handle a pain point in the funge-98 spec : +// when reading from the decimal input you need to read until you encounter a +// non numeric char, but not drop it var defaultInputLastChar *int = nil func DefaultCharacterInput() (int, error) { |