Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!chinacat!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F Haugh II) Newsgroups: comp.unix.internals Subject: Re: Shared Lib Question (ISC) Message-ID: <19256@rpp386.cactus.org> Date: 10 May 91 12:37:05 GMT References: <276@rwing.UUCP> <162@titccy.cc.titech.ac.jp> <19252@rpp386.cactus.org> <174@titccy.cc.titech.ac.jp> Reply-To: jfh@rpp386.cactus.org (John F Haugh II) Organization: Lone Star Cat Emporium and BBQ Grill Lines: 21 X-Clever-Slogan: Help Prevent Robbery. Tax the IRS. In article <174@titccy.cc.titech.ac.jp> mohta@necom830.cc.titech.ac.jp (Masataka Ohta) writes: >Thus, it is natural that a library call have its own state, like a stdio >library. There is a difference between `state' and `global variables'. For example, the stdio library you mention, could keep its state in the (FILE *) object you pass as its argument in the `no global variables' version of our stdio library. Functions which implement the `no (FILE *) argument' version of the library routines would be simple wrappers ala printf (args ...) { return fprintf (stdio, args ...); } where what you do to make "args ..." work is left to the reader ... -- John F. Haugh II | Distribution to | UUCP: ...!cs.utexas.edu!rpp386!jfh Ma Bell: (512) 255-8251 | GEnie PROHIBITED :-) | Domain: jfh@rpp386.cactus.org "If liberals interpreted the 2nd Amendment the same way they interpret the rest of the Constitution, gun ownership would be mandatory."