中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-14 23:54
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS开发编程 & 发展交流 (开发室) » Does the original BASIC have modular functions (functions)?
Printable Version  2,295 / 4
Floor1 GOTOmsdos Posted 2007-10-04 11:55
铂金会员 Posts 1,827 Credits 5,154
Haven't learned BASIC language, does the original BASIC have modular functions (functions)?
Floor2 jjww2999 Posted 2010-06-16 10:27
初级用户 Posts 18 Credits 42
There are functions equivalent to modules, which are subroutines. There is always at least one return statement in such subroutines for returning, and they are called by the gosub statement. The disadvantage is that the variables used in the main program and the subroutine are visible to each other, so special attention should be paid to the pollution problem of variable usage.
Floor3 AlexZhang Posted 2010-06-17 22:23
系统支持 Posts 440 Credits 1,028
Of course, there are no object-oriented things... Those who wanted object-oriented are disappointed, right? At that time, there was simply no concept of object-oriented.
Floor4 johnsonlam Posted 2010-06-18 23:53
银牌会员 Posts 497 Credits 1,410 From 九龍,香港
Originally posted by GOTOmsdos at 2007-10-4 11:55 AM:
I haven't learned the BASIC language. Does the original BASIC have modular functions (functions)?


Is the so-called original BASIC referring to Microsoft BASIC?

Until Quick BASIC, there was no concept of object. Visual BASIC is not BASIC at all!
Floor5 netwinxp Posted 2010-06-20 14:24
高级用户 Posts 366 Credits 741
The original BASIC on PC should be ROMBASIC (started by INT 18H), and I can't quite remember if it supports subroutines. I used IBM's BASICA early on and remember that it could call subroutines. QBWIN already has things like controls and properties, and many one-key restore interfaces were written with it.

[ Last edited by netwinxp on 2010-6-20 at 14:27 ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023