[squeak-dev] Undeclared 'nanos' in Cryptology extension to DateAndTime
Robert Withers
robert.withers at pm.me
Thu May 28 20:32:03 UTC 2020
Hi Tim,
I am confused. I have no failing tests and no entry of #nanos into Undeclared. It relies on the following method implementation, no reference to #nanos:
> nanoSecond
>
> ^utcMicroseconds \\ 1000000 * 1000
This is called by
> milliseconds
>
> ^ self nanoSecond // 1000000.
Did you load Cryptography other than
> Installer ss project: 'Cryptography'; install: 'ProCrypto-1-1-1'.
Let me know where the issue is and I will get on it. Perhaps I don't know how to check Undeclared. I 'explore it' to Undeclared and get a WeakIdentityDictionary.
K, r
On 5/28/20 4:22 PM, tim Rowledge wrote:
> Whilst checking things after installing Seaside and Cryptography I noticed that Undeclared included 'nanos'.
>
> This is only referenced in DateAndTime>>#milliSecond, which actually breaks the four Cryptology tests that fail because the result is nil and sending #asTruncateString: to nil doesn't do anything very useful. I suspect that a decent implementation would be
>
> milliSecond
>
> ^utcMicroseconds \\ 1000000 // 1000
>
> It certainly stops the four tests failing.
>
> tim
> --
> tim Rowledge;
> tim at rowledge.org
> ;
> http://www.rowledge.org/tim
> Strange OpCodes: RDR: Rotate Disk Right
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200528/358d48c3/attachment.html>
More information about the Squeak-dev
mailing list
|