[fpc-devel] Semaphore Support

2024-12-17 Thread Amir via fpc-devel
Hi,   I had a wrapper around fpc's Semaphore (psem_t), and implemented a Blocking Stack on top of it. I see my code does not work correctly for the following use case: I have defined a ThreadPool that each of its thread gets a data and may Push some  data into the stack while the main thread

[fpc-devel] TStrings.Slice: just curious

2024-12-17 Thread Bart via fpc-devel
Hi, We have: Procedure TStrings.Slice(fromIndex: integer; aList : TStrings); (and a similar function) I can figure scenario's where also an EndIndex would come in handy: Procedure TStrings.Slice(fromIndex, EndIndex integer; aList : TStrings); Would such be acceptable to add? -- Bart __