opendylan icon indicating copy to clipboard operation
opendylan copied to clipboard

Arithmetic functions don't match DRM

Open cgay opened this issue 5 years ago • 0 comments

From a Gitter conversation...


Carl Gay @cgay Nov 29 17:16 It's surprising to me that some of the arithmetic functions in the DRM are defined on <object> rather than, say, <number>. And in fact it looks like Open Dylan doesn't match the spec here. Any idea why they would do that in the DRM? (Looking at ^ in particular right now.)

Carl Gay @cgay Nov 29 17:48 Some OD implementations diverge from the DRM in the other direction (more permissive) as well, and I see that sometimes this is to have methods on <machine-word>.

Peter S. Housel @housel Nov 29 18:14 I don't think it's necessary to have arithmetic methods that work for <machine-word>; when I want that, I use the explicit %+


So, let's remove the <machine-word> versions of these and make them match the DRM. For now I'm marking the testworks specs for them as expected to fail and pointing to this bug.

cgay avatar Dec 31 '19 18:12 cgay