On Thu, May 01, 2025 at 03:56:23PM +0200, Emiliano Grilli wrote: > Hello, > I'm trying midish and I found it very useful so far. > > What I haven't been able to do is composing a string with a variable > inside, for example I'm trying to write a function to save a song in a > deeply nested directory without typing it every time, i.e. > > proc savesong songname { > save "long/directory/nested/midish-songs/${songname}" > } > > I'm missing something? Hi! Sorry fo the late reply. No, there was no way to concatenate strings. I just extended the '+' operator to work on strings and rolled a new release. Now you could do something like: save "long/directory/nested/midish-songs/" + $songname assuming songname contains a string HTH, AlexandreReceived on Wed May 14 2025 - 09:51:43 CEST
This archive was generated by hypermail 2.3.0 : Thu May 15 2025 - 01:30:01 CEST