RMEnsure - My Mistake or the Wiki's?
Andy S (2979) 504 posts |
Looking at the documentation for RMEnsure: https://www.riscosopen.org/wiki/documentation/show/*RMEnsure It says: The command will be executed if the module version number check is successful. But, as per my limited understanding of the command, if I type: RMEnsure Filer 1.0 Echo No Filer There is no message displayed, which is as I would expect, because Filer 2.39 is loaded, so the version number check was successful. RMEnsure Filer 10.0 Echo No Filer Now the “No Filer” message is displayed. Again, this is as I would expect because that version of the module isn’t available. This suggests the text of the PRM Wiki page is incorrect. I would think it should say “unsuccessful”, but I’m not confident enough to edit it without a second opinion. It’s possible I have a horrible misunderstanding of this command. Please can someone enlighten me? |
Steve Pampling (1551) 8170 posts |
You’re understanding the command, the wiki text is at fault. Ye olde PRM: I’d say that this needs modifying to: The olde text and the wiki do not mention what happens if the module is not present, but they should. |
Andy S (2979) 504 posts |
Thanks Steve. I was 95% sure I was right but better to check than risk looking like a pillock. ;) How about: A command, optionally given as a third parameter, is executed if the module is not present or the version number of the loaded module is lower than the number supplied as the second parameter to *RMEnsure. |
Andy S (2979) 504 posts |
Double post! It looked like my connection had dropped so I clicked Stop, then Reply again. |
Steve Pampling (1551) 8170 posts |
Looks OK to me. If anyone else has an issue I’m sure they can amend it. I’d say the only opportunity for further clarity is an example. |