Re: Using methods from packages
- To: mathgroup at smc.vnet.net
- Subject: [mg68144] Re: Using methods from packages
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Wed, 26 Jul 2006 02:26:10 -0400 (EDT)
- Organization: Uni Leipzig
- References: <ea4jju$s8i$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, you must put volgordeLinksOnderVertex in the exported context of the package (usual with a usage message) where it is defined. Regards Jens "akil" <akomur at wanadoo.nl> schrieb im Newsbeitrag news:ea4jju$s8i$1 at smc.vnet.net... | I've got a problem again. | Example: | | I have two packages vanConesNaarRelevanteConesAutomated.m and | pasAanVolgordes.m where the first package uses a method/function from the | second package. | | e.g. | | volgordeCones = pasAanVolgordes[volgordeCones, volgordeLinksOnderVertex] | | where volgordeCones and volgordeLinksOnderVertex are symbols inside the | function vanConesNaarRelevanteConesAutomated inside the package with the | same name. pasAanVolgordes is the function from the second package. | | BeginPackage["vanConesNaarRelevanteConesAutomated`","pasAanVolgordes`","ConesNaarRelevanteCones`", | "DiscreteMath`ComputationalGeometry`","Geometry`Rotations`"] is how the | first package is called. | | Instead of this working as it should I get teh following result: | | pasAanVolgordes[{{1, 2, 17, 18}, {2, 3, 18, 19}, {3, 4, 19, 20}, {4, 5, 20, | 21}, {5, 6, 21, 22}, {6, 7, 22, 23}, {7, 8, 23, 24}, {8, 9, 24, | 25}, {9, 10, 25, 26}, {10, 11, 26, 27}, {11, 12, 27, 28}, {12, 13, 28, | 29}, {13, 14, 29, 30}, {14, 15, 30, 31}, {15, 16, 31, 32}, {16, 17, | 32, 1}}, | vanConesNaarRelevanteConesAutomated`Private`volgordeLinksOnderVertex$]; | | What do i do wrong? | |