Skip to content

Invalid primitives #27

Open
Open
@ltratt

Description

@ltratt

At least in Java SOM, calling an unknown primitive causes a warning to be printed, but execution to continue -- which, to me, feels surprising! Should it not immediately cause a fatal error?

$ cat test.som
class_load = (
    madeup = primitive

    run = (
        1 println.
        self madeup.
        2 println.
    )
)
$ zsh som.sh -cp Smalltalk test.som
Primitives class som.primitives.testPrimitives not found
1
Warning: undefined primitive madeup called
2

Metadata

Metadata

Assignees

No one assigned

    Labels

    specNeeds specification, or is specification related.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions