Skip to content

Commit

Permalink
Add how to
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Apr 3, 2024
1 parent a0748df commit 148d1d3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/how-to/how-to-support-gs64-options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# How to support GS64 class options

GemStone/S 64 includes some options during class creation that change the
behavior of the instances.

There's support in Rowan to specify these options using the Tonel format
by filling the `gs_options` metadata in the class creation section. However,
by default Pharo will remove this metadata when committing code losing the
options. To avoid this behavior and retain the options, load the `Tool` group
and send in the class `initialize` message one of the following messages:

- `makeInstancesDbTransient`
- `makeInstancesInvariant`
- `makeInstancesNonPersistent`

This will configure the options as class properties in Pharo, and later the
Tonel Writer will use these options for the metadata.

0 comments on commit 148d1d3

Please sign in to comment.