Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!columbia!pipe.columbia.edu!beshers
From: beshers@pipe.columbia.edu (Clifford Beshers)
Newsgroups: comp.lang.c++
Subject: Can I use argc and argv in a global constructor?
Message-ID: <6082@columbia.edu>
Date: 9 Dec 88 15:17:01 GMT
Sender: news@columbia.edu
Reply-To: beshers@pipe.UUCP ()
Organization: Columbia University Department of Computer Science
Lines: 11

Is it possible to reference argc and argv in a global
constructor?  Since the constructors are called before main and
argc and argv are local to that routine, it would seem to be
impossible.  Perhaps they should be passed to _main() as well?

This isn't really a burning issue, of course, but it's puzzling.


Clifford Beshers
Columbia University Computer Science Department
beshers@sylvester.cs.columbia.edu