home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / informix / 2797 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!gatech!darwin.sura.net!spool.mu.edu!olivea!gossip.pyramid.com!pyramid!infmx!girard
  2. From: girard@informix.com (Girard Chandler)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Suggested Changes to 4gl
  5. Message-ID: <1992Dec19.032935.18581@informix.com>
  6. Date: 19 Dec 92 03:29:35 GMT
  7. Sender: news@informix.com (Usenet News)
  8. Organization: Informix Software, Inc.
  9. Lines: 36
  10. Originator: girard@hyperion
  11.  
  12. In article <1992Dec16.213256.21452@nezsdc.icl.co.nz> you write:
  13. : John Oliver writes...
  14. : >How about dynamic use of I4GL call command, i.e be able to issue:-
  15. : >    call func_name 
  16. : >where func_name is a char variable storing the name of a function. 
  17.  
  18.  
  19. I think we have this (sort of.)  See pages S-198 -> S-212 of the 
  20. 4.1 4GL supplement.  We provide a fgl_call(char *funcname, int
  21. nparams) macro which turns into:
  22.  
  23.     p4gl_call("funcname", nparams)    - 4gl-rds
  24. or simply,
  25.     funcname(nparams)        - w/c4gl
  26.  
  27. So, using a very short C function with 4gl-rds, you can call functions 
  28. "by name."  In C-4gl, the only method to do this would be to create a 
  29. lookup table of strings and function pointers.
  30.  
  31.  
  32. : >Under the current I4GL, this is impossible. The best you can do us use the run
  33. : >command to run named stand alone executables, but this leaves a whole
  34. : >lot of sleeping parent processes around when leaves of complex menu trees 
  35. : >are reached.
  36.  
  37.  
  38. Or, in 4gl-rds, you can load individual pcode files dynamically and
  39. execute them (see the fgl_start() function, page S-207.)
  40.  
  41. : >------------------------------------------------------------------------
  42. : > John Oliver, Ernst & Young Management Sciences, Auckland, NEW ZEALAND
  43. : Hugh Grierson          Fujitsu/ICL New Zealand - Software Development Centre
  44.  
  45.  
  46.  
  47. Girard Chandler    (Informix 4GL Development)
  48.