Macromolecular compounds obtained by reactions forming a carbonic ester link in the main chain of the macromolecule