Open Kizoky opened 1 month ago
Thanks for the report.
oh so this is hardcoded? wouldn't it be better if there was a way to flag a class to be used as a string? (since string_t does not exist in other projects, I believe it's only a Source Engine feature)
I see what you mean, and I agree that this approach might not be ideal. If you have any suggestions for a better solution, I would love to hear them.
My ideas are:
[UseAsString]
to handle string literals.
[UseAsString]
class string{
...
}
I see what you mean, and I agree that this approach might not be ideal. If you have any suggestions for a better solution, I would love to hear them.
My ideas are:
- Make it configurable through user settings. in VSCode
- Introduce an attribute like
[UseAsString]
to handle string literals.[UseAsString] class string{ ... }
Yes, that sounds good!
Declaration(s):
This does work in AngelScript just fine.