internal pullup resistors & digitalWrite

I agree with mem. The way I see it, digital pins really do have three "modes": input, output, and input w/ pullup.

The alternative is more versatile but, if the versatility is really that important, why not add a new function that allows the two operations to be arbitrarily combined. "pinControl" seems like a good name for such a function.