reload is like require but forces the the loading to happen again even if
it's already happened once. include and reload are not related.

On Fri, May 8, 2015 at 4:34 PM, Bob Nnamtrop <[email protected]> wrote:

> Yes, I've seen that. But it doesn't help.
>
> On Fri, May 8, 2015 at 2:19 PM, Stefan Karpinski <[email protected]>
> wrote:
>
>> help?> reload
>> search: reload prevfloat parsefloat
>>
>> Base.reload(file::AbstractString)
>>
>>    Like "require", except forces loading of files regardless of
>>    whether they have been loaded before. Typically used when
>>    interactively developing libraries.
>>
>> On Fri, May 8, 2015 at 4:13 PM, Bob Nnamtrop <[email protected]>
>> wrote:
>>
>>> OK. But then what is the difference between include and reload?
>>>
>>> On Fri, May 8, 2015 at 1:54 PM, Stefan Karpinski <[email protected]>
>>> wrote:
>>>
>>>> Why wouldn't it work in the REPL? It means "paste the contents of this
>>>> file here".
>>>>
>>>> On Fri, May 8, 2015 at 3:46 PM, Bob Nnamtrop <[email protected]>
>>>> wrote:
>>>>
>>>>> >  include is just about splitting a single file into multiple pieces
>>>>>
>>>>> Ok. But then why does include work at the REPL prompt? What is the
>>>>> difference between include and reload? I really think there are too many
>>>>> ways to do the same thing.
>>>>>
>>>>> Bob
>>>>>
>>>>> On Fri, May 8, 2015 at 11:58 AM, Stefan Karpinski <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Conceptually, they are quite different:
>>>>>>
>>>>>>    - using/import/require are for acquiring "shared resources" –
>>>>>>    i.e. modules that different bits of code might all independently want 
>>>>>> to
>>>>>>    use.
>>>>>>    - include is just about splitting a single source file into
>>>>>>    multiple pieces.
>>>>>>
>>>>>> Not sure if that helps.
>>>>>>
>>>>>> On Fri, May 8, 2015 at 1:28 PM, Jack Minardi <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Thanks guys. I guess I thought only require didn't load twice as it
>>>>>>> is specifically mentioned in the doc string.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Reply via email to