HP3000-L Archives

July 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Toback <[log in to unmask]>
Reply To:
Bruce Toback <[log in to unmask]>
Date:
Tue, 10 Jul 2001 08:56:23 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
A minor nit:

Wirt Atmar wrote:

>BASIC doesn't initialize
>much when it first comes up, and it certainly doesn't initialize numeric
>values.

This isn't quite correct for the case of the BASIC interpreter, which is
what Ted was running. BASIC initializes integer values to -32768 and
floating-point values to a particular bit pattern (don't recall which at
the moment). These values are regarded as "undefined", and the
interpreter will issue an error message if a variable has one of these
values.

Compiled BASIC/V code has no such protection, but since the model is
"test in the interpreter", it's assumed that all paths resulting in an
uninitialized variable have been caught by the time the program gets
compiled.

-- Bruce


--------------------------------------------------------------------------
Bruce Toback    Tel: (602) 996-8601| My candle burns at both ends;
OPT, Inc.            (800) 858-4507| It will not last the night;
11801 N. Tatum Blvd. Ste. 142      | But ah, my foes, and oh, my friends -
Phoenix AZ 85028                   | It gives a lovely light.
btoback AT optc.com                |     -- Edna St. Vincent Millay
Mail sent to [log in to unmask] will be inspected for a
fee of US$250. Mailing to said address constitutes agreement to
pay, including collection costs.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2