unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* %load-path
@ 2021-06-12  8:47 Damien Mattei
  2021-06-12 11:32 ` %load-path Zelphir Kaltstahl
  0 siblings, 1 reply; 3+ messages in thread
From: Damien Mattei @ 2021-06-12  8:47 UTC (permalink / raw)
  To: guile-user

hi,
i had :
;; set current path in load path
(set! %load-path (reverse (cons "." (reverse %load-path))))
in my .guile
in guile 2.*
and i was able to load module like that:
(not sure it is correct to do that)

(use-modules (guile/growable-vector))
and now it works with:
(use-modules (guile growable-vector))

in guile 2.* the beahvior was exactly opposite: the first example worked
not the second

did someone know if it changed? or a possible problem in my config files?

Damien


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

* Re: %load-path
  2021-06-12  8:47 %load-path Damien Mattei
@ 2021-06-12 11:32 ` Zelphir Kaltstahl
  2021-06-12 12:08   ` %load-path tomas
  0 siblings, 1 reply; 3+ messages in thread
From: Zelphir Kaltstahl @ 2021-06-12 11:32 UTC (permalink / raw)
  To: Damien Mattei; +Cc: guile-user

Hello Damien,

Until today I was not aware, that there is a use-modules with slash notation.

I have found, that modifying the load-path is usually not, what I want in the
end. I prefer to use the -L argument for telling Guile, which directories it
should start "looking from" when processing the list in a (use-modules ...)
expression.

Unfortunately I do not know, whether anything relating to that changed.

Best regards,
Zelphir

On 6/12/21 10:47 AM, Damien Mattei wrote:
> hi,
> i had :
> ;; set current path in load path
> (set! %load-path (reverse (cons "." (reverse %load-path))))
> in my .guile
> in guile 2.*
> and i was able to load module like that:
> (not sure it is correct to do that)
>
> (use-modules (guile/growable-vector))
> and now it works with:
> (use-modules (guile growable-vector))
>
> in guile 2.* the beahvior was exactly opposite: the first example worked
> not the second
>
> did someone know if it changed? or a possible problem in my config files?
>
> Damien

-- 
repositories: https://notabug.org/ZelphirKaltstahl




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

* Re: %load-path
  2021-06-12 11:32 ` %load-path Zelphir Kaltstahl
@ 2021-06-12 12:08   ` tomas
  0 siblings, 0 replies; 3+ messages in thread
From: tomas @ 2021-06-12 12:08 UTC (permalink / raw)
  To: Zelphir Kaltstahl; +Cc: guile-user

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

On Sat, Jun 12, 2021 at 11:32:52AM +0000, Zelphir Kaltstahl wrote:
> Hello Damien,
> 
> Until today I was not aware, that there is a use-modules with slash notation.
> 
> I have found, that modifying the load-path is usually not, what I want in the
> end. I prefer to use the -L argument for telling Guile, which directories it
> should start "looking from" when processing the list in a (use-modules ...)
> expression.

And /if/ changing the load path, consider using `add-to-load-path' :-)

Cheers
 - t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2021-06-12 12:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-12  8:47 %load-path Damien Mattei
2021-06-12 11:32 ` %load-path Zelphir Kaltstahl
2021-06-12 12:08   ` %load-path tomas

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 NNTP newsgroup(s).