Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*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 2000

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

Search the Archive

Re: Contexts and Naming of Things

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25728] Re: [mg25691] Contexts and Naming of Things
  • From: Jean-Marie THOMAS <jmt at agat.net>
  • Date: Sat, 21 Oct 2000 14:42:43 -0400 (EDT)
  • References: <200010190835.EAA21592@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

You must declare bar and nebbish in your context public interface :

BeginPackage["HSSV`cavity`"]
foo::usage = "now is the time..."
bar::usage="whatever you want"
nebbish::usage="and so on"
Begin["`Private`"]
foo[x_, y_] := 1 /; y === bar;
foo[x_, y_] := 2 /; y === nebbish;
End[]
EndPackage[]


  • Prev by Date: Re: Contexts and Naming of Things
  • Next by Date: How can I make 3.0 work with Win2K?
  • Previous by thread: Contexts and Naming of Things
  • Next by thread: Re: Contexts and Naming of Things