Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8765 > unrolled thread

Packages - trivial question

Started byŠerých Jakub <Serych@panska.cz>
First post2012-02-27 11:40 +0000
Last post2012-02-28 05:46 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Packages - trivial question Šerých Jakub <Serych@panska.cz> - 2012-02-27 11:40 +0000
    Re: Packages - trivial question A Retey <awnl@gmx-topmail.de> - 2012-02-28 05:46 +0000

#8765 — Packages - trivial question

FromŠerých Jakub <Serych@panska.cz>
Date2012-02-27 11:40 +0000
SubjectPackages - trivial question
Message-ID<jifq3f$sl6$1@smc.vnet.net>
I'm sorry for such a trivial question, but what does mean the backapostroph behind the package name, when one wants to get package?

For example:
<< PhysicalConstants`

I'm trying to find it in the documentation, but I'm not successfull.  Is it the same symbol as it is used for NumberMarks i.e. 0.3333333333333333` for example?

I think, that in the case of packages it means something like "definition space", because for example:
Remove["Global`*"] should remove all the symbol definitions in current session.

But I'm still confused of the little but magic  `

Thanks in advance for any enlightenment

Jakub

[toc] | [next] | [standalone]


#8778

FromA Retey <awnl@gmx-topmail.de>
Date2012-02-28 05:46 +0000
Message-ID<jihpmv$8vd$1@smc.vnet.net>
In reply to#8765
Hi,

> I'm sorry for such a trivial question, but what does mean the
> backapostroph behind the package name, when one wants to get
> package?

it is the character which serves as the separator for context names.

> For example: <<  PhysicalConstants`

that is just a short form for Get["PhysicalConstants`"]

> I'm trying to find it in the documentation, but I'm not successfull.
> Is it the same symbol as it is used for NumberMarks i.e.
> 0.3333333333333333` for example?

it's not a symbol and serves a completely different purpose in those to 
cases...

> I think, that in the case of packages it means something like
> "definition space", because for example: Remove["Global`*"] should
> remove all the symbol definitions in current session.

it removes all symbol definitions in the "Global`" context. If you have 
experience with other languages you can think of a context as a 
namespace for symbols. If you don't, think of it as a "folder" for 
symbol names as you have "folders" for filenames in your computers file 
system.

> But I'm still confused of the little but magic  `

nothing magic, if you are interested in the details look up 
tutorial/ContextsAndPackages in the documentation center and the 
reference pages for BeginPackage, Begin, $Context, $ContextPath.

hth,

albert

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web