home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!orca!javelin.sim.es.com!tpehrson
- From: tpehrson@javelin.sim.es.com ([SNES ClRv])
- Subject: Re: want to help me make my 'value' routine crash-proof?
- Message-ID: <1992Aug25.191036.21639@javelin.sim.es.com>
- Reply-To: tpehrson@javelin.sim.es.com
- Organization: Evans & Sutherland Computer Corporation
- References: <1992Aug25.150516.17385@javelin.sim.es.com> <dmurdoch.65.714760154@mast.queensu.ca>
- Date: Tue, 25 Aug 1992 19:10:36 GMT
- Lines: 19
-
- dmurdoch@mast.queensu.ca (Duncan Murdoch) writes:
-
- >>of course, when i pass a loaded string such as '99999' the routine crashes.
- >>maxing out at 65535 is desired.
-
- >You haven't told us what you'd like this routine to do in that case. What
- >is the 16 bit value of 99999? The question doesn't make sense.
-
- let me repeat:
- >>maxing out at 65535 is desired.
-
- i want my routine to accept any 'number', in string form, such as
- '99999999999999999999123459' and 1. not crash 2. return the maximum, 65535.
-
- --
- \clinkenpeel: aberrant analytical cynical agnostic idealist. i exclusively /
- /represent myself. i do not offend anyone; however, some morons choose to \
- \offend themselves. judge only those who you would have judge yourself. i /
- /don't practice what i preach - i'm not the type of person i'm preaching to.\
-