AdaCore / gprbuild

GPRbuild is an advanced build system designed to help automate the construction of multi-language systems.
Other
65 stars 21 forks source link

Wish: string and string list indexing and slicing. #72

Closed Blady-Com closed 4 years ago

Blady-Com commented 4 years ago

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" =>
        ...

HTH, Pascal.

t-14 commented 4 years ago

Pascal,

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.