[Jprogramming] J Classes and Locales
Oleg Kobchenko
olegykj at yahoo.com
Wed Jan 10 04:01:02 HKT 2007
--- "Miller, Raul D" <rdmiller at usatoday.com> wrote:
> Dan Bron wrote:
> > Use:
> > coinsert_base_ 'locale'
>
> Or, interactively, just coinsert -- if coinsert_base_
> is different from coinsert, then something else is
> going on, which you should understand.
>
> The "Locales" lab might be useful.
>
> (From the menu: Studio->Labs... then run the Locales lab.
> It's in the "Language" category, if you want to reduce the
> number of choices.)
Export Public API
Still another approach is to consider a class locale
as a module with private implementation: many small
auxiliary verbs and other names, which exposes a
small public API. Then this selective API is "exported"
into the "z" locale to be used throughout.
See many patterns in J base library of the form:
coclass 'myclass'
myverb=: 3 : ...
myverb_z_=: myverb_myclass_ NB. export public API
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Programming
mailing list