it seemed plain that the law here was inhospitable in the extreme to foreigners , and only some kind of vow-now-regretted-had impelled kaneko to undertake the forms of charity towards him , evidently at real risk of his own disgrace .