Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Replacing a TokenizedString #677

@markfinal

Description

@markfinal

If you do the naive thing of

this.Macros["SomeMacro"] = this.CreateTokenizedString(...)

then the behaviour is not what you expect.
I believe this is because the original Macro TokenizedString is in the cache, and other TS's might be referencing it still, keeping it alive.

You can get the desired behaviour with

this.Macros["SomeMacro"].Set(...)

but you have to remember to do that.

There needs to be an improved mechanism for being able to replace an existing TS.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions