RosettaCodeData/Task/Null-object/M2000-Interpreter/null-object-1.m2000

13 lines
308 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
Module CheckWord {
Declare Alfa "WORD.APPLICATION"
Declare Alfa Nothing
Print Type$(Alfa)="Nothing"
Try ok {
Declare Alfa "WORD.APPLICATION"
\\ we can't declare again Alfa
}
If Not Ok Then Print Error$ ' return Bad Object declaration
}
CheckWord