Macaulay2 / Macaulay2/M2

overriding methods implemented internally

Open
#62 4 comments 0 reactions 0 assignees View on GitHub
Interpreter
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

It appears that one can override methods implemented internally, but can't use them.

```
toList Matrix := M -> flatten entries M
M = matrix{{1}}
class M
toList M

stdio:4:1:(3): error: expected list, sequence, or set
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the Macaulay2 session shown in the issue and compare the behavior of the internally implemented method with the overriding method. Trace method lookup and the handling of `toList`, `flatten`, and `entries` to identify where the call becomes unusable. Done means the demonstrated override can be called successfully and the existing example no longer produces the reported type error.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.