SamiKalliomaki / eppabasic

A new web based basic language inspired by CoolBasic.
Other
11 stars 3 forks source link

Attempting to use subprograms as functions shows no error #49

Open expositionrabbit opened 9 years ago

expositionrabbit commented 9 years ago
Dim x = subprogram()

Sub subprogram()
EndSub

No error message is shown, but the program refuses to run. Poor, innoncent children do not know that subprograms cannot return values. Attempting to run by calling ebeditor.runCode() results in the message Error: Type must be specified.