[Cuis-dev] [QUESTION] how to move changes to a pre-existing class's definition into my own pkg

Imran Rafique imran at rafique.org
Wed Jul 19 14:46:27 PDT 2023


Hi Juan (glad to be here!),

Ah, I see. That was driving me nuts because I couldn't see those diffs
anywhere in the Change Sorter.

So for mod's that extensive, one really ought to make a new class, rather
than patching an existing one. Got it!

Thanks.

On Wed, 19 Jul 2023, 11:03 am Juan Vuletich, <juan at cuis.st> wrote:

> Hi Imran,
>
> Welcome to the Cuis community!
>
> In Cuis, a package can not modify the definition of existing classes, or
> their class comment. For existing classes, these need to go in numbered
> ChangeSets.
>
> If you have already exited your image without saving it, chances are
> these changes are "lost". But you can recover them from the appropriate
> *.user.???.changes file.
>
> Hope this helps.
>
> Cheers,
>
> On 7/19/2023 10:56 AM, Imran Rafique via Cuis-dev wrote:
> > Excuse my newbie ignorance if this is documented somewhere, but I
> > can't figure this out.
> >
> > As part of my first baby steps into cuis, I've been modifying some of
> > the builtin tools (after all, this is a "programmable programming
> > language', so why not?). Specifically, PackageInstaller.
> >
> > The changes work fine, all changed methods from PackageInstaller have
> > been moved into the new category '*my-package-name', and they get
> > saved out as a new version of my package.
> >
> > However, I can't find the changes I made to the class definition
> > itself (new instance variable), or the extensive new class comments.
> > They're in the image, but are nowhere to be found in the Change
> > Sorter.
> >
> > I see the updated class definition in the user.changes file.
> >
> >      !classDefinition: #PackageInstaller category: #'Tools-Packages'
> > stamp: 'isr 7/18/2023 01:38:50'!
> >      Object subclass: #PackageInstaller
> >       ... (with my changes)
> >       ...
> >
> > They are still under the original category, obviously.
> >
> > So I guess my painfully newbie question is this; if I change a class
> > definition and/or class comments, is there a way to move those changes
> > to my own package?
> >
> > Thanks in advance for any help :-)
> >
> > --
> > Regards,
> >         Imran Sher Rafique
>
>
> --
> Juan Vuletich
> cuis.st
> github.com/jvuletich
> researchgate.net/profile/Juan-Vuletich
> independent.academia.edu/JuanVuletich
> patents.justia.com/inventor/juan-manuel-vuletich
> linkedin.com/in/juan-vuletich-75611b3
> twitter.com/JuanVuletich
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230719/3c52b85b/attachment.htm>


More information about the Cuis-dev mailing list