China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-31 21:55
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Does the original BASIC have modular functions (functions)? View 2,182 Replies 4
Original Poster Posted 2007-10-04 11:55 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
23-year member
UID 7105
Gender Male
Status Offline
Haven't learned BASIC language, does the original BASIC have modular functions (functions)?
Floor 2 Posted 2010-06-16 10:27 ·  中国 江苏 南京 电信
初级用户
Credits 42
Posts 18
Joined 2009-05-13 04:48
17-year member
UID 144972
Gender Male
Status Offline
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.
Floor 3 Posted 2010-06-17 22:23 ·  中国 山东 青岛 移动
系统支持
★★★
Credits 1,010
Posts 434
Joined 2007-02-08 00:00
19-year member
UID 78999
Gender Male
Status Offline
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.
Floor 4 Posted 2010-06-18 23:53 ·  中国 香港 城市电讯有限公司
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
22-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
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!
我 的 網 站 - http://optimizr.dyndns.org
Floor 5 Posted 2010-06-20 14:24 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
19-year member
UID 94024
Gender Male
Status Offline
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 ]
Forum Jump: