News for hackers. Stuff that matters.
Re:The mainframe is alive and thriving by gumby on Friday March 12, 2021 @03:30PM (#26440508)
> Cobol has a feature whereby dissimilar structures can be assigned. The structure members which have the same names are identified between the structures and the data is moved accordingly. Or something like that.

This horrifies me on several levels, though I suppose it could be considered a sort "cast to a superclass".

Re:The mainframe is alive and thriving by kazinator on Friday March 12, 2021 @03:38PM (#26440590)
It seems to make sense in data-oriented programming. Say you want to create an invoice from a purchase_order or something. They have the same the order number, items, and figures. Just assign one to the other (or use it as a template for construction) to get the common values in, and fill in the rest.