Yes Bob, and the comparator would work like a buffer with a variable sensitivity input depending on the comparison voltage level set. The output would be close to the supply - as good as the comparator can manage wich will be no worse than a volt or so under the supply voltage - but I suspect...