For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > May 2005 > fileOut loses method categories









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author fileOut loses method categories
PaulAtKP

2005-05-19, 8:59 pm

When I fileOut a class, the category information for all the methods
seems to be lost... is there a way to preserve this?
Thanks.

Hans-Martin Mosner

2005-05-19, 8:59 pm

"PaulAtKP" <paul.macmillan@kp.org> wrote:
> When I fileOut a class, the category information for all the methods
> seems to be lost... is there a way to preserve this?
> Thanks.


Which Smalltalk?
Squeak and VW do this quite nicely.

Cheers,
Hans-Martin
Peter van Rooijen

2005-05-19, 8:59 pm

PaulAtKP wrote:

> When I fileOut a class, the category information for all the methods
> seems to be lost... is there a way to preserve this?
> Thanks.


Hi Paul,

In VA Smallalk, the incantation is:

System fileOutCategories: true

File out after doing that, and all category information is included in
the file-out.

If you are not moving code away from VA Smalltalk, it is usually
preferable to use the export/import mechanism instead of file-ing out
and in.

Export/import (which are use cases provided by the Envy/Manager code
management subsystem of VA Smalltalk) preserves about all there is to
preserve about your code (in a binary format).

If you want to move between dialects and you can't use Envy, some form
of textual file-out may well be indicated.

The VisualWorks dialect also has several mechanisms for moving code
built-in.

Let us know what it is that you are trying to do, and with which
dialect(s), and we can help you better.

Cheers,

Peter
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com