Code segment unload: Difference between revisions

Content added Content deleted
m (Omit from Logtalk)
(Added COBOL section. Corrected BASIC highlighting.)
Line 8: Line 8:
=={{header|BASIC}}==
=={{header|BASIC}}==
Some versions of basic have the facility to delete lines of code:
Some versions of basic have the facility to delete lines of code:
<lang basic>10 GOSUB 5000: REM call initializer
<lang gwbasic>10 GOSUB 5000: REM call initializer
20 DELETE 5000-9999: REM delete initializer
20 DELETE 5000-9999: REM delete initializer
30 PRINT A: REM show initializer worked
30 PRINT A: REM show initializer worked
Line 17: Line 17:
5010 LET A=1
5010 LET A=1
5020 RETURN</lang>
5020 RETURN</lang>

=={{header|COBOL}}==
The <code>CANCEL</code> statement in COBOL unloads from memory the dynamically-loadable module containing the specified program or entry-point.
<lang cobol>CANCEL "foo"</lang>


=={{header|Racket}}==
=={{header|Racket}}==