unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Bug in documentation for `load'?
@ 2010-09-25 14:04 Andreas Rottmann
  2010-09-27 20:25 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Rottmann @ 2010-09-25 14:04 UTC (permalink / raw)
  To: Guile Development

Hi!

It appears to me that the docs for `load' are wrong (both in 1.8 and
1.9):

 -- Scheme Procedure: load filename [reader]
     Load FILENAME and evaluate its contents in the top-level
     environment.  The load paths are not searched.

The last sentence seems to be wrong, as `load' is actually
`load-module':

% guile                  
guile> load
#<procedure load-module (filename . reader)>

% ~/.system/stow/guile-1.9.12/bin/guile
...
scheme@(guile-user)> load
$1 = #<procedure load-module (filename #:optional reader)>

So, AFAICS, `load' uses the load paths (and only the load paths).

Regards, Rotty
-- 
Andreas Rottmann -- <http://rotty.yi.org/>



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug in documentation for `load'?
  2010-09-25 14:04 Bug in documentation for `load'? Andreas Rottmann
@ 2010-09-27 20:25 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2010-09-27 20:25 UTC (permalink / raw)
  To: Andreas Rottmann; +Cc: Guile Development

On Sat 25 Sep 2010 16:04, Andreas Rottmann <a.rottmann@gmx.at> writes:

> It appears to me that the docs for `load' are wrong (both in 1.8 and
> 1.9):
>
>  -- Scheme Procedure: load filename [reader]
>      Load FILENAME and evaluate its contents in the top-level
>      environment.  The load paths are not searched.
>
> The last sentence seems to be wrong, as `load' is actually
> `load-module':

I think the meaning of this name is "the definition of load after
modules have been booted somewhat". It's historical.

> So, AFAICS, `load' uses the load paths (and only the load paths).

Nope; `load' loads a file by path: absolute, or relative to the current
working directory. Though, relative paths in `load' are problematic, as
with compiled files, you don't know what the current directory is going
to be.

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-27 20:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-25 14:04 Bug in documentation for `load'? Andreas Rottmann
2010-09-27 20:25 ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).