Hello,
Base on a suggestion from Dmitry Kazakov:
I think they could simply implement standard string and string list indexing and slicing. That will cover everything. gprbuild already has the function Split. E.g. Split ("x86_64-linux", "-") will get you ("x86_64", "linux"). Now we need indexing to write:
case Split (TARGET, "-") (1) is
when "x86_64" =>
...
when "arm" =>
...
The Split builtin is already implemented in gpr2, the new iteration of gpr technology that we are working on. But we don't plan to backport it to gpr1.
Hello, Base on a suggestion from Dmitry Kazakov: I think they could simply implement standard string and string list indexing and slicing. That will cover everything. gprbuild already has the function Split. E.g. Split ("x86_64-linux", "-") will get you ("x86_64", "linux"). Now we need indexing to write:
HTH, Pascal.