StardustPL / Stardust

"A programming language that doesn't make me angry to use it."
https://StardustPL.GitHub.IO/
The Unlicense
4 stars 0 forks source link

Planning: destruction and polymorphism #41

Open LB-- opened 8 years ago

LB-- commented 8 years ago

Consider a class hierarchy for stream classes. The base stream class calls flush in the dtor, but by that time the derived classes have already been destructed. Any solution I can think of thus far is rather unpleasant.