A biocompatible macromer composition is provided which includes a first polymerpossessing a first nucleoside, and a second polymer possessing a second nucleosidethat is complementary to the first nucleoside and capable of undergoing basepairing with the first nucleoside. The biocompatible macromer compositioncan be used as an adhesive or sealant in human and/or animal medical applications.