mirror of
https://github.com/ArnoldSmith86/virtualtabletop.git
synced 2026-03-02 22:57:02 -05:00
Passing variables to CALLs #202
Labels
No labels
PCIO compatibility
Validator
automated testing
bug
documentation
duplicate
editor
enhancement
enhancement
library
library
maintenance
needs legacy server
pile related
reported client crash
routine operations
user interface
widget properties
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/virtualtabletop#202
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rogerl50 on GitHub (Apr 19, 2021).
The argument to a CALL must either be a literal or else passed as the contents of a variable whose name is agreed upon between caller and callee. The fact that there is no convenient way of getting a literal into a variable makes this difficult in the case where you wish to pass one of two literals depending on the results of an IF (say).
The best solution to this would be to allow
applyVariablesin theargumentslist to a CALL. An alternative, which might be useful elsewhere, would be to provide a good way to get a literal value into a variable (or more generally moving the contents of a variable into a different variable).@larkob commented on GitHub (Apr 20, 2021):
PR #307 is aiming to allow for an easier way to set variables