H
Ham
Guest
Once upon a time the CAN-DO function was "misused" to do string pattern checking. A sort of poor man's regex. But, it was documented so that made it ok. From 10.2 documetation: CAN-DO ( id-list [ , string ] ) [snip] In addition to performing security checks, you can use the CAN-DO function for looking up any value in a comma-separated list. For example, the following procedure searches your PROPATH for your DLC directory: MESSAGE "The DLC directory " + (IF CAN-DO(PROPATH, OS-GETENV("DLC")) THEN "is" ELSE "is NOT") + " in your PROPATH.". [snip] That same example code now breaks in V11! Where can-do function has been "declassed" as only security checking against userid: CAN-DO ( id-pattern-list [ , userid ] ) Did anyone notice? Got angry? Had to write it's own CAN-DO function? Please share! Ciao, Wim
Continue reading...
Continue reading...