Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:Obvious missing option: picoseconds (Score 1) 328

Actually, the poll mixes and matches incorrectly. The poll caption is "Most precise measuring tool I've used ..." but then all of the options describe accuracy, which is of course different. Precision describes the difference between the measurement of the quantity being observed and the next closest possible measurement. Accuracy describes the difference between the measurement and the actual value of the quantity being observed. A deli scale might be precise to a tenth of an ounce (or a milligram, if that's where you live), but when the clerk has his thumb on it the accuracy is no where near that.

Comment Re:VisiCalc (Score 1) 704

Freecell was a sample application bundled with the ill-fated Win32s subsystem for Windows 3.11. Win32s was intended to be a "subset" of the Win32 API available on the fledgling Windows NT that would allow developer to build a single EXE that could run on both systems. Freecell was included to demonstrate this ability.

The previous paragraph was entirely from memory, but Wikipedia agrees.

Comment Re:Pascal (Score 1) 514

Current versions of Delphi have four distinct cases of array referencing (that I can think of right now).

List:array[3..17] of float; // static array
VarList:array of float; // open array
Name:String; // dynamically allocated string
Abbrev:String[32]; // fixed max length string, also called short string

Static arrays are declared with a range, and the range can be any enumerated type, including user defined types. Dynamic arrays are allocated on the heap at run time using the SetLength system function. These are zero based, and the index of the last element is Length-1. Dynamic strings are also heap-allocated, either with SetLength or by assignment from another string or constant. However, indexes are 1-based, and max length is limited only by available memory. You have to use the Length function on dynamic strings since there is no element zero. Short strings are declared with a max length of up to 255, stack allocated, and element zero does still store the current length.

Slashdot Top Deals

"It's the best thing since professional golfers on 'ludes." -- Rick Obidiah

Working...