“travelBarrier += nakedBarrier” and “travelBarrier.append(nakedBarrier)” would work if you were using them within a function or method, but since you’re initialising a property, you have to do things a little differently.
This works:
modify TravelConnector
travelBarrier = static inherited + nakedBarrier
;
The “static” tells TADS that this is just initialising the property, so it can add nakedBarrier at compile time and not worry about it again.
If, for some reason, you wanted TADS to recalculate the list every time it was used, you could do this instead:
modify TravelConnector
travelBarrier = (inherited + nakedBarrier)
;
The parentheses are a shortcut for a function that just returns “inherited + nakedBarrier”.
Thanks, Emerald. I’m sure this must be written somewhere in the docs, I just haven’t managed to wander into that part of the wilderness yet (Systems Manual, perhaps?).