having stupid and destructive example should be banned from the system

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

having stupid and destructive example should be banned from the system

stepharo
example3
     " it's my personal script provided as example"
     "self example3"
     | items |
     items := OrderedCollection new.
     items add: (StartupAction name: 'Self halt' code: [ self halt ]).
"replace it by your name"
     items add: (StartupAction name: 'WS' code: [ Workspace open ]).
"replace it by your name"
     StartupPreferencesLoader default
addAtStartupInPreferenceVersionFolder: items named: 'author.st'.

     StartupPreferencesLoader default loadFromDefaultLocations.

Once we execute this.... no image are working anymore!

https://pharo.fogbugz.com/default.asp?15899

Reply | Threaded
Open this post in threaded view
|

Re: having stupid and destructive example should be banned from the system

Tudor Girba-2
Yes, they should be :)

Doru

On Sun, Jul 5, 2015 at 2:06 PM, stepharo <[hidden email]> wrote:
example3
    " it's my personal script provided as example"
    "self example3"
    | items |
    items := OrderedCollection new.
    items add: (StartupAction name: 'Self halt' code: [ self halt ]). "replace it by your name"
    items add: (StartupAction name: 'WS' code: [ Workspace open ]). "replace it by your name"
    StartupPreferencesLoader default addAtStartupInPreferenceVersionFolder: items named: 'author.st'.

    StartupPreferencesLoader default loadFromDefaultLocations.

Once we execute this.... no image are working anymore!

https://pharo.fogbugz.com/default.asp?15899




--

"Every thing has its own flow"
Reply | Threaded
Open this post in threaded view
|

Re: having stupid and destructive example should be banned from the system

CyrilFerlicot
In reply to this post by stepharo
Le 05/07/2015 14:06, stepharo a écrit :

> example3
>     " it's my personal script provided as example"
>     "self example3"
>     | items |
>     items := OrderedCollection new.
>     items add: (StartupAction name: 'Self halt' code: [ self halt ]).
> "replace it by your name"
>     items add: (StartupAction name: 'WS' code: [ Workspace open ]).
> "replace it by your name"
>     StartupPreferencesLoader default
> addAtStartupInPreferenceVersionFolder: items named: 'author.st'.
>
>     StartupPreferencesLoader default loadFromDefaultLocations.
>
> Once we execute this.... no image are working anymore!
>
> https://pharo.fogbugz.com/default.asp?15899
>

+1
There is so many better examples that doesn't destroy your image without
warning.


signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: having stupid and destructive example should be banned from the system

Peter Uhnak
Or rename it to "exampleImageDestruction" ?

On Sun, Jul 5, 2015 at 3:19 PM, Ferlicot D. Cyril <[hidden email]> wrote:
Le 05/07/2015 14:06, stepharo a écrit :
> example3
>     " it's my personal script provided as example"
>     "self example3"
>     | items |
>     items := OrderedCollection new.
>     items add: (StartupAction name: 'Self halt' code: [ self halt ]).
> "replace it by your name"
>     items add: (StartupAction name: 'WS' code: [ Workspace open ]).
> "replace it by your name"
>     StartupPreferencesLoader default
> addAtStartupInPreferenceVersionFolder: items named: 'author.st'.
>
>     StartupPreferencesLoader default loadFromDefaultLocations.
>
> Once we execute this.... no image are working anymore!
>
> https://pharo.fogbugz.com/default.asp?15899
>


+1
There is so many better examples that doesn't destroy your image without
warning.