ngs-lang / ngs

Next Generation Shell (NGS)
https://ngs-lang.org/
GNU General Public License v3.0
1.4k stars 43 forks source link

Time substraction not implemented #653

Open organom opened 9 months ago

organom commented 9 months ago
Time() - Time()

returns

| The arguments did not match any of the methods' parameters.          |
| Method or MultiMethod name: -                                        |
| Called with arguments' types: Time, Time                             |
| Please check that you pass the right number of arguments.            |
| Please check that arguments' types are matching methods' parameters. |

Maybe:

F '+'(a:Time, b:Time) a.Int() + b.Int()
F '-'(a:Time, b:Time) a.Int() - b.Int()