Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[ALLY] new functions?

From: arolls:bigpond:au at: 11-Apr-2001 15:08

Hi, I was just looking at this code, which seems to occur often: if not system/view/highlight-start [ system/view/highlight-start: system/view/caret ] and I wonder if new functions could be made to shorten such; - not?set - none?set usage example: not?set system/view/highlight-start system/view/caret not?set should take two arguments, the first the value to test and change, the second the value to change it to. I reckon something like this could reduce a lot of code; it seems that long paths occur often in the system object. Or maybe there is a better, more flexible way? Anton.