[MIT-Scheme-users] Blowfish, MD5, mcrypt, mhash

2017-11-02 Thread Taylor R Campbell
Does anyone use MIT Scheme's Blowfish, MD5, mcrypt, or mhash
libraries?  What do you use them for?

___
MIT-Scheme-users mailing list
MIT-Scheme-users@gnu.org
https://lists.gnu.org/mailman/listinfo/mit-scheme-users


Re: [MIT-Scheme-users] ref error

2017-11-02 Thread Matt Birkholz
On Thu, 2017-11-02 at 10:02 +0200, David Gray wrote:
> This could have been the case as I was messing around in the repl.
> However when I tried to find the simplest case to replicate
> the error I restarted scheme, did a load, then got the error. Then I
> restarted again, pasted the code from the file to *scheme*
> where everything was OK.

Looking at how scmutils is built, I find that scmutils/src/load-
real.scm ends with a GE expr, which changes your REPL's environment. 
Thus your subsequent use of REF works in that REPL.

When LOAD and REF exprs are in the same file, they are both evaluated
in the same environment (probably the user-initial-environment).  Thus
the REF expr is NOT evaluated in the user-generic-environment (where it
is actually defined).


___
MIT-Scheme-users mailing list
MIT-Scheme-users@gnu.org
https://lists.gnu.org/mailman/listinfo/mit-scheme-users


Re: [MIT-Scheme-users] ref error

2017-11-02 Thread David Gray
This could have been the case as I was messing around in the repl. However when 
I tried to find the simplest case to replicate
the error I restarted scheme, did a load, then got the error. Then I restarted 
again, pasted the code from the file to *scheme*
where everything was OK. Another thing that was strange was that I could do 
(ref ‘(1 2 3 4 5) 2) in *scheme* after the error, as it
was only the loaded function that gave the error.   

> On 2 Nov 2017, at 00:11, Matt Birkholz  wrote:
> 
> On Wed, 2017-11-01 at 23:59 +0200, David Gray wrote:
>> This is the scmutils generic ref. When I replace the generic ref with
>> vector-ref it works ok, I just thought this error was strange, the
>> only difference being loading the file or just using it from the
>> repl.
> 
> There is this "gotcha" with the *scheme* buffer:
> 
>After examining an error, whether or not you choose to enter the
>debugger, you should type "C-c C-c" to get back to the top level.
>This is important because if you don't the evaluations you
>subsequently perform may refer to the error state rather than to the
>state you intended.  [scmutils/manual/beginner.txt]
> 
> It sounds like the wrong environment was used somewhere.


___
MIT-Scheme-users mailing list
MIT-Scheme-users@gnu.org
https://lists.gnu.org/mailman/listinfo/mit-scheme-users