Did modularity of basic programming first appear with visual basic?
Modularity of basic pro开发者_运维技巧gramming first appeared with visual basic? True or False?
False, even GW Basic & Quick Basic which have appeared before visual basic have modularity.
False - Gordon Eubanks product: CBasic (written aboard USS George Washington) first available from IMSAI then later from Digital Research Corp after they bought it circa 1981 see this entry on wikipedia for more information.
QBasic (and presumably QuickBasic) had subroutines and functions which were (or at least could be) viewed and edited separately from the main program. While not file-level modularity, that does stand as one example.
I've seen examples of clean, modular BASIC code that predate VB. In general, you can use any programming approach with any syntax, although some syntaxes encourage a particular style. The BASIC language is free-form enough that the style it tends to encourage is "messy". Over the years Microsoft has made an effort to introduce features in VB that promote more structure.
Microsoft's BASIC PDS 7.1 compiler (Professional Development System) from 1989ish was very modular. You could link in C routines & Assembly routines (and Fortran IIRC). And the Basic itself allowed for calling other BASIC routines as sub-routines ect. I still use it today.
精彩评论