Skip to content

Missing run-time check for correct number of arguments for display() and error() #733

Open
@btzy

Description

@btzy

The following call should be an error according to the spec, but is currently not an error:

display(1,"T",3);

(Note that display() is caught.)

It is a problem (and perhaps confusing for students) because:

  • It does not follow the spec
  • Source-defined functions and other stdlib functions are checked as per Add argument check for builtins #346, so not checking display() and error() is even more surprising

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or requestgood first issueEasy issues to get your feet wetminorless important than important but more than nice-to-have

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions