Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

what is Global`Class?

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

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
claims)).

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

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
clashes?

Thanks,
-- Joe

-- 
,------------------------------------------------------------------.
|    Joseph J. Strout           Biocomputing -- The Salk Institute |
|    joe at strout.net             http://www.strout.net              |
`------------------------------------------------------------------'
Check out the Mac Web Directory!    http://www.strout.net/macweb.cgi


  • 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?