On Mon, Feb 9, 2009 at 7:44 PM, Jong-Hyouk Yun <[email protected]> wrote:
> Thanks, Dan.
>
> I'll convert resource file into hard-coded lookup table, because I'm
> not sure it works when it deployed as an image.

If you want the table to be loaded at parse time, then use VALUE:, or
force the memo word to run once with a top-level form:

MEMO: foo-table ... file-contents ;

...

foo-table drop

Please don't put hard-coded tables inside Factor source code. If your
original encoding description ever changes, you'll have to re-generate
your table by hand, which is not very good from a maintainability
standpoint.

Slava

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to