Continuing with VBREgex I try the following
| matcher count stream | stream := 'Discovery:Users:admin:Library:Preferences:iCab Preferences:Hotlist3.html' asFilename. count := 0. matcher := '<A HREF=+' asRegex. [[matcher searchStream: stream] whileTrue: [count := count + 1]. nil] valueNowOrOnUnwindDo: [stream close]. ^ count
But no valueNowOrOnUnwindDo: in 3.9
Seems this exist on others Smalltalk, Spotlight drives me to Smalltalk by Example and Aoki Atsushi textbook.
How I could replace/ fin d it ?
Thanks you in advance
Edgar
___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar
#ensure:
On Thu, 28 Jul 2005, Lic. Edgar J. De Cleene wrote:
Continuing with VBREgex I try the following
| matcher count stream | stream := 'Discovery:Users:admin:Library:Preferences:iCab Preferences:Hotlist3.html' asFilename. count := 0. matcher := '<A HREF=+' asRegex. [[matcher searchStream: stream] whileTrue: [count := count + 1]. nil] valueNowOrOnUnwindDo: [stream close]. ^ count
But no valueNowOrOnUnwindDo: in 3.9
Seems this exist on others Smalltalk, Spotlight drives me to Smalltalk by Example and Aoki Atsushi textbook.
How I could replace/ fin d it ?
Thanks you in advance
Edgar
1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar
radoslav hodnicak puso en su mail :
#ensure:
Radoslav very thanks.
And how replace asFilename what seems also exist in others Smalltalk ?
Edgar
___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar
Lic. Edgar J. De Cleene puso en su mail :
Radoslav very thanks.
And how replace asFilename what seems also exist in others Smalltalk ?
Edgar
Forget , as I see exist in 3.7, maybe gone with String refactoring
Edgar
___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar
squeak-dev@lists.squeakfoundation.org