MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

what is Global`Class?

  • To: mathgroup at
  • Subject: [mg20354] what is Global`Class?
  • From: Joe Strout <joe at>
  • Date: Sat, 16 Oct 1999 00:47:42 -0400
  • Organization: The Salk Institute
  • Sender: owner-wri-mathgroup at

When I try to load the Classes module (from MathSource and written for
Mathematica 2.2) into Mathematica 4, I get the following warning:

Class::"shdw": "Symbol \!\(\"Class\"\) appears in multiple contexts \
\!\({\"Classes`\", \"Global`\"}\); definitions in context
\!\(\"Classes`\"\) \
may shadow or be shadowed by other definitions."

(Ugh, please excuse the ugly markup tags; I haven't figured out how to
avoid them ("Copy as Plain Text" doesn't do it, despite what it

Anyway, it's saying there's a Global`Class symbol, and sure enough,
this shadows the one defined in classes: "Context[Class]" returns

What is this global Class symbol?  It's not in the master index, and it
doesn't seem to have a ::usage.

Finally, is this the right module to be using for object-oriented
programming in Mathematica?  If so, why hasn't it been updated since
v2.2, especially when it generates warnings and has inconvenient name

-- Joe

|    Joseph J. Strout           Biocomputing -- The Salk Institute |
|    joe at                 |
Check out the Mac Web Directory!

  • Prev by Date: how to open all cells?
  • Next by Date: Why doesn't this work?
  • Previous by thread: Re: how to open all cells?
  • Next by thread: Re: what is Global`Class?