[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] string.replace
> this might be overly permissive though.
> On 02.12.2015, at 22:21, Chris Sattinger <crucialfelix@xxxxxxxxx> wrote:
>
>
> So we could just add this:
>
> replace { arg find, replace;
> find = find.asString;
> ^super.replace(find, replace).join
> }
>
> that would be messy:
>
> n = nil;
> "blarg".replace("la", n);
>
> “bnilrg"
yes. Better adjust the string compare primitive maybe.
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/