home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / sci / math / symbolic / 2271 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  2.1 KB

  1. Path: sparky!uunet!gatech!news.ans.net!cmcl2!adm!afterlife!ricampb
  2. From: ricampb@afterlife.ncsc.mil (Robert Campbell)
  3. Newsgroups: sci.math.symbolic,uiuc.mathematica
  4. Subject: Re: Mma Pathnames under Windows
  5. Message-ID: <1992Aug26.103708.26823@afterlife.ncsc.mil>
  6. Date: 26 Aug 92 10:37:08 GMT
  7. References: <92234.172311U09207@uicvm.uic.edu> <1992Aug24.070159.13875@ucc.su.OZ.AU>
  8. Organization: The Great Beyond
  9. Lines: 34
  10.  
  11. In article <1992Aug24.070159.13875@ucc.su.OZ.AU> colinr@extro.ucc.su.OZ.AU (Colin Rose) writes:
  12. >Under Windows, file names are limited to 8 characters. As a 
  13. >result, when a package contains an instruction to load another
  14. >package whose file name exceeds 8 characters, Mma does not find
  15. >it --- at least on our setup -- and returns a can't open meassage.
  16. >Thus far, I have solved this problem by doctoring the
  17. >names of loaded packages to match their file names under Windows.
  18. >For instance, if I change the above instruction to:
  19. >
  20. >   BeginPackage["Statisti`NormalDi`",
  21. >             "Statisti`Descript`",
  22. >             "Statisti`Common`Distribu`",
  23. >             "Statisti`InverseS`"]
  24. >
  25. >          I have no problem loading the normal distribution package 
  26. >under Windows.
  27.  
  28. The problem that you cite is real. It is caused by the fact that the
  29. translation done by the ContextToFilename function is, at best, a
  30. crude one - truncating names to 8 characters on DOS based systems.
  31. Version 2.1 corrected this for the packages in the standard distribution
  32. by letting this function recognize each of the standard packages and
  33. make the proper translation to a path. For any package that you install
  34. beyond that, though, you will have to instruct ContextToFilename how
  35. to translate the path. Thus, if you install the package with context
  36. Algebra`PermutationGroups` as the file PACKAGES\ALGEBRA\PERMGPS.M you
  37. will have to execute the rule:
  38.     ContextToFilename["Algebra`PermutationGroups`"] =  \
  39.         "PACKAGES\ALGEBRA\PERMGPS.M"
  40. Note that the translation done by ContextToFilename is only used by
  41. the Needs and BeginPackage commands, not the Get (ie <<filename)
  42. command.
  43.  
  44.                     - Robert Campbell -
  45.