Nikita Karetnikov <[email protected]> skribis:

>> Could we instead of a global (current-generation-number profile)
>> procedure?  We’d store the number in a local variable here, to avoid
>> repeated ‘readlink’ calls.
>
> I don’t see how the former implies the latter.  Could you expand on
> this?

I’m suggesting to have a procedure like this:

  (define (current-generation-number profile)
    ;; Return the current generation number of PROFILE.
    ...)

And then you could do:

  (let ((generation (current-generation-number profile)))
    ...)

Does that make sense?

Ludo’.

Reply via email to