Dyalog/ullu

Garbage data input for primitives

Open

#65 ouverte le 18 avr. 2024

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)APL (4 forks)auto 404
Size: Menhancementgood first issue

Métriques du dépôt

Stars
 (5 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

Excerpt from @pmikkelsen's message: A good idea is actually to pass something that isn't an array at all, and make sure we get the correct error. For example, 1+# should give an error. I have seen non-array arguments causing errors more than once.

In the interpreter, there are certain macros to check the rank of an array for example, and it is used like xxx->Rank. If some code is passed a namespace, the xxx->Rank will return garbage data, and likely cause a crash.

Guide contributeur