Hi Michael,
At long last some more time on my sleeve. I posted an example in the Source Code forum (http://www.powerbasic.com/support/pb...ad.php?t=42079)
One note on the absence of any IN&OUTs:
My programming background goes back to embedded programming. One of the 'tricks' used to speed up processing is to pass big chunks of data as a BYREF to a procedure, even if the data is not to be changed. This saves making a copy of the data every time the sub is called.
In the docs I read that putting an IN statement before a BYREF does protect the original data from being changed. I.e. in the Method/End Method help section it reads:
you may freely assign new values to BYVAL/IN parameters. They will simply be discarded when the METHOD exits
I like the idea of indicating a BYREF parameter, which is meant to be a BYVAL, by putting an IN before it. I don't like it that I can then easily change it anyway and the changes will be discarded although its a BYREF...
Too confusing for me so I choose not to use the IN&OUT syntax at this time


Leave a comment: