Amir Karger schrieb:

Is there a way to declare an array of, say, 300 strings in PIR other than

arr = 300
arr[0] = "hi"
arr[1] = "there"
arr[2] = "my"
...
arr[298] = "very"
arr[299] = "tired"

Same question with a hash of hashes or whatever.
Assigning an integer to the array should do the trick.

 .local pmc arr
 arr = new ResizablePMCArray
 arr = 300

should allocate storage for at least 300 PMCs.
For Hashes I think there is no such allocation strategy.

CU, Bernhard

Reply via email to