The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Curious Parcel reload issue

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Curious Parcel reload issue Posted: Nov 27, 2003 1:41 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Curious Parcel reload issue
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Here's a problem in VisualWorks, along with a solution. Say you want to be able to reload parcels (presumably updated) in a runtime image, so you have code that looks like this:


	Parcel quietlyLoadParcelFrom: file

If the reload results in rebinding existing code (a near certainty), you'll have the load silently fail - not at all what you want. Why does that happen? Well, try reloading a parcel in a dev image. You'll get a dialog asking you if you really want to reload the parcel. That's because the reload triggers a DuplicateBindingsError - and the development environment asks you what to do. When you try to silently (i.e., no dialogs) load the parcel in a dev image, that exception isn't being specifically looked for, and it just quietly fails. Here's what you want to do:


	[Parcel quietlyLoadParcelFrom: file]
		on: DuplicateBindingsError
		do: [:ex | ex resume] 

It turns out that this error is proceedable (as you would expect!). So simply resuming it ends up doing the right thing. I've filed a bug report on this, and am using this as a work-around in the dev builds of BottomFeeder.

Read: Curious Parcel reload issue

Topic: Marketing by Sun ? Previous Topic   Next Topic Topic: .NET - pure OO or hybrid?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use