[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] using a custom function in classes
Good point :) I was thinking of functions that the user defines on the fly.
hjh
On Fri, May 8, 2009 at 10:53 AM, LFSaw <lfsaw@xxxxxxxx> wrote:
> Hey,
>
> you may want to create a class collecting such functions as classmethods
>
> MyFunctions {
> *nthFactorial {...}
> }
>
> which you then can use from within other Classes:
>
> B {
> b {
> ^MyFunctions.nthFactorial();
> }
>
> }
--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/