[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Work for developers

>>>>> "John" == John Goerzen <jgoerzen@complete.org> writes:
    John> Whoa, that seems to be rather stupid.  But in any case,
    John> still, you can initialize variables to function calls, no?

Auto variables, yes. As in:

	int func (void) {
		int var = something;

In the above, something can be anything you want as var is initialised
at run time.  What you can't do is:

	int var = something;
	int func (void) {

as var is initialised at *compile* time when the storage allocation is

As for std{in,out,err} being #defined to functions, no, it's not
stupid.  It allows code to be thread safe without requiring it to be
re-written as the RTL can handle the gory details under the covers.

Perl is really designed more for the guys that will hack Perl at least
20 minutes a day for the rest of their career.  TCL/Python is more a
"20 minutes a week", and VB is probably in that "20 minutes a month"
group. :) -- Randal Schwartz

Reply to: