[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add code from other files
From: |
uzibalqa |
Subject: |
Re: Add code from other files |
Date: |
Thu, 04 Jul 2024 21:28:13 +0000 |
On Thursday, July 4th, 2024 at 7:57 PM, Emanuel Berg <incal@dataswamp.org>
wrote:
> uzibalqa wrote:
>
> > I have a main file and three auxiliary files. I can use
> > `load` for the auxiliary files and use `provide` for the
> > main file. Would this be the correct approach ?
>
>
> Use `provide' downmost in all your files, and whenever one function
> is needed in some other file, you` require' that file first (topmost)
> in THAT file.
>
> Is a good way to do it.
So most of my auxiliary tools to a package will have (provide 'this-tool)
Then at the start of my package I have (require 'this-tool).
> If you byte-compile it will tell you, if some file uses
> something not defined in that file, and also not require'd
> from another where it is.
I do not understand the second comment "telling me if some file uses
something not require'd from another where it is". What does that mean ?
What is then the role of load ?
> So you can both find bugs that way and find out what needs to
> be required by what.
>
> --
> underground experts united
> https://dataswamp.org/~incal
- Add code from other files, uzibalqa, 2024/07/03
- Message not available
- Message not available
- Message not available
- Message not available
- Re: Add code from other files, uzibalqa, 2024/07/04
- Re: Add code from other files, uzibalqa, 2024/07/04
- Re: Add code from other files, uzibalqa, 2024/07/04
- Re: Add code from other files, Emanuel Berg, 2024/07/04
- Re: Add code from other files,
uzibalqa <=
- Re: Add code from other files, Emanuel Berg, 2024/07/07
- RE: [External] : Re: Add code from other files, Drew Adams, 2024/07/04
- RE: [External] : Re: Add code from other files, uzibalqa, 2024/07/04
- RE: [External] : Re: Add code from other files, uzibalqa, 2024/07/04
- RE: [External] : Re: Add code from other files, uzibalqa, 2024/07/05
- Re: [External] : Re: Add code from other files, Emanuel Berg, 2024/07/07