he could have been in one of those old gangster films as the precociously clever but harmless assistant to the hard-boiled chain-smoking detective who falls for the gangster 's moll , the girl with all those feather boas who always gets shot in the end .