pharo-project / pharo

Pharo is a dynamic reflective pure object-oriented language supporting live programming inspired by Smalltalk.
http://pharo.org
Other
1.2k stars 355 forks source link

Can't create deep copy of Context and CompiledMethod #3964

Open theseion opened 5 years ago

theseion commented 5 years ago

[ 1 + 1 ] deepCopy fails with an error. This may be fine but

  1. unexperienced users will not know what to do with the error message
  2. #deepCopy should never fail for core objects
stale[bot] commented 4 years ago

To limit bug bankruptcy (see https://www.joelonsoftware.com/2012/07/09/software-inventory/) this issue has been automatically marked as stale because it has not had any activity in 6 months. If no further activity occurs, it might be closed. If this issue remains important to you, please comment to reactivate the issue. Thank you for your contributions.

Joel on Software
Software Inventory
Imagine, for a moment, that you came upon a bread factory for the first time. At first it just looks like a jumble of incomprehensible machinery with a few people buzzing around. As your eyes adjus…
astares commented 4 years ago

Still valid

dionisiydk commented 4 years ago

2. #deepCopy should never fail for core objects

It looks like the right thing. But I doubt it is easy to achieve. For example what to do with "Smalltalk deepCopy" or "Processor activeProcess deepCopy".

The former will traverse and copy the full image.