[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's up with 'current-load-port'
From: |
Thomas Morley |
Subject: |
Re: What's up with 'current-load-port' |
Date: |
Sun, 4 Nov 2018 14:14:23 +0100 |
Am So., 4. Nov. 2018 um 13:50 Uhr schrieb Alex Vong <address@hidden>:
>
> Hello,
>
> Thomas Morley <address@hidden> writes:
>
> > Hi,
> >
> > what's up with 'current-load-port'?
> >
> > Simply checking in a guile-prompt I get:
> > guile-1.8: #<primitive-procedure current-load-port>
> > guile-2.0.14: #<procedure current-load-port ()>
> > guile-2.2.4 and guile-2.9.1:
> > ;;; <unknown-location>: warning: possibly unbound variable
> > `current-load-port'
> > ERROR: In procedure module-lookup: Unbound variable: current-load-port
> >
> > It's in the manual, though, without any hint it could be deprecated or
> > disabled or the need to use a certain module.
> >
> > What am I missing?
> >
> Indeed, looking at the (ice-9 ports) module. It seems the
> 'current-load-port' procedure is not exported for some reason
> (forgotten?). A workaround would be to resolve it directly:
>
> (@@ (ice-9 ports) current-load-port)
>
> >
> > Cheers,
> > Harm
>
> Cheers,
> Alex
Hi Alex,
thanks for the hint.
Would a patch like attached be sufficient?
Best,
Harm
0001-Export-current-load-port-from-ice-9.patch
Description: Text Data