chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] how to do (current-load-port) in chicken? (Modified


From: felix winkelmann
Subject: Re: [Chicken-users] how to do (current-load-port) in chicken? (Modified by Rick Taube)
Date: Thu, 7 Apr 2005 08:35:30 +0200

On Apr 7, 2005 1:12 AM, Rick Taube <address@hidden> wrote:
> Hi, how do I determine the pathname of a file as it is loaded into
> chicken?  in both gauche and guile i use current-load-port, ie in
> gauche its:
>         (port-name (current-load-port))
> and in guile its:
>         (port-filename (current-load-port))
> but i cant figure out how to do this in chicken. ive searched the
> manual and faq for something equivalent but i dont see anything
> obvious.

If you are loading a source-file, you can use

##sys#current-load-file

(it's a normal variable which contains either #f or the pathname
given to `load').


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]