[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Platform.recompile



On Thursday 25 December 2008 11:33:14 Scott Wilson wrote:
> Seems fine, although I suppose we still need a cross-Platform/Editor
> working group at the Symposium.

For sure.

sincerely,
Marije

>
> S.
>
> On 25 Dec 2008, at 04:38, nescivi wrote:
> > Hiho,
> >
> > it is easy to add Platform.recompile for Linux/Scel as well, like
> > the diff
> > below.
> >
> > But...
> > It would be cleaner if we start adding the feature \scapp and
> > implement the
> > switch in Platform, so it would be something like this in Platform
> > (instead
> > of subclass responsibility):
> >
> >
> > +Platform{
> >       recompile{
> >               if ( this.hasFeature( \emacs ) ) {
> >                       Emacs.evalLispExpression( "(sclang-start)" );
> >               };
> >               if ( this.hasFeature( \scapp ) ) {
> > 			recompile { _Recompile } // maybe rename primitive to
> > _SCappRecompile  ??
> > 		};
> > 	}
> > }
> >
> > Thoughts?
> >
> > I'll commit the diff below for the time being.
> >
> > sincerely,
> > Marije
> >
> >
> > Index: build/SCClassLibrary/Platform/linux/LinuxPlatform.sc
> > ===================================================================
> > --- build/SCClassLibrary/Platform/linux/LinuxPlatform.sc
> > (revision
> > 8281)
> > +++ build/SCClassLibrary/Platform/linux/LinuxPlatform.sc
> > (working copy)
> > @@ -28,4 +28,10 @@
> >                this.loadStartupFiles;
> >        }
> >        defaultHIDScheme { ^\linux_hid }
> > +
> > +       recompile{
> > +               if ( this.hasFeature( \emacs ) ) {
> > +                       Emacs.evalLispExpression( "(sclang-start)" );
> > +               };
> > +       }
> > }
> >
> > _______________________________________________
> > sc-dev mailing list
> >
> > info (subscription, etc.):
> > http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive:
> > https://listarc.bham.ac.uk/marchives/sc-dev/
> > search: https://listarc.bham.ac.uk/lists/sc-dev/search/
>
> _______________________________________________
> sc-dev mailing list
>
> info (subscription, etc.):
> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive:
> https://listarc.bham.ac.uk/marchives/sc-dev/
> search: https://listarc.bham.ac.uk/lists/sc-dev/search/



_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/