home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / smalltal / 2625 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.4 KB  |  46 lines

  1. Newsgroups: comp.lang.smalltalk
  2. Path: sparky!uunet!portal!samantha
  3. From: samantha@shell.portal.com (Samantha - Atkins)
  4. Subject: Re: command line parsing
  5. Message-ID: <C03EKB.1AB@unix.portal.com>
  6. Keywords: Smalltalk commandline
  7. Sender: news@unix.portal.com
  8. Nntp-Posting-Host: jobe
  9. Organization: Portal Communications Company -- 408/973-9111 (voice) 408/973-8091 (data)
  10. References: <670@funsys.funsys.se>
  11. Date: Wed, 30 Dec 1992 22:02:34 GMT
  12. Lines: 32
  13.  
  14. In article <670@funsys.funsys.se> jgs@funsys.funsys.se (Jan Gifvars) writes:
  15. >
  16. >Hello !
  17. >
  18. >Is it possible to parse the command line when you start a ParcPlace image.
  19. >Example:
  20. >
  21. >    $ st80 myImage.im argument1 argument2
  22. >
  23. >or will the virtual machine throw them away ?
  24. >
  25. >Thank you in advance !
  26. >
  27. >Jan Gifvars
  28. >ENATOR Functional Systems AB
  29. >Sweden
  30. >jgs@funsys.se
  31. >
  32. >
  33.     See the sections of your documentation on User Defined Functions.
  34. In such a function written in C you can do command line retrieval and 
  35. processing much as in any other C function that makes the appropriate system
  36. call to retrieve this info.  Getting it to execute when you want it to is
  37. doable by having some method execute the UDF created at the time you want it
  38. to execute.  If you want it before anything else happens practically in bringing
  39. up the image even this is possible although I don't remember at the moment 
  40. where I used to put things that I wanted executed that early.
  41.  
  42. Samantha Atkins
  43. Object Enterprises
  44. samantha@shell.portal.com
  45.  
  46.