[plt-scheme] current process id

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Feb 6 05:58:31 EST 2004

On Feb  6, Tim Brown wrote:
> I'm kinda new to the scheme mindset, so please would
> someone tell me if this is preferable to writing an extension
> module wrapping getpid().
> 
> Would this not lead to a more portable approach, since you'd
> be forced to reimplement this properly for (say) Windows or
> other system (such as HPUX) that doesn't implement "/proc"
> (or similar).
> 
> Or am I thinking like a C programmer?

Well, it's only preferable because it does not require C glue code.
Other than that, a portable C solution is obviously better --
unrelated to a C or Scheme mindset...

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.