Hi miguel this is probably linked to the way the workspace keeps its binding to declare variable. Can you check in 1.3 because we will release it soon.
Stef On Jun 6, 2011, at 4:09 PM, Miguel Sanchez wrote: > Hi All, > > I'm not sure if this is a bug or a feature or PEBKAC error. > > I have strange behaviour In Pharo one click 1.1.1 and 1.2.1, when I open a > Shout Workspace and enter the following: > =============================================== > > "Person is a dirty little class that maps from a DB table and a horrible > complete creation method." > > |persons aPerson| > > aPerson := Person personId: '32055' personTypeId: '1' nationalId: > 'I00735' firstName: 'ANA ROSA' surname: 'XXX YYY ZZZ' title: 'Ms' birthday: > ('01/01/1970' asDate) language: 'ES ' gender: 'F' maritalStatus: 'M' > nationality: 'ES' countryOfResidence: 'IT' activity: 'CN-O' regDate: > '17/06/2009 00:00:00' vatRegNo: '1234'. > > persons := Set new. > > persons add: aPerson. > > persons add: 3. > =============================================== > > If I ctrl-d each statement individually. after the final line. persons is a > set with the two elements I have just added. > > If I open a fresh shout workspace, copy and paste the code, select all, and > ctrl-d all the text, then I get persons = nil. afterwards. > > I've debugged and both methods execute in the same way. > > So like I said, bug, feature or PEBKAC? > > Thanks, > > > Miguel