Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 19, 2013, 11:46:38 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Default values for macros  (Read 842 times)
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« on: October 15, 2009, 04:17:39 pm »

I am using macros for script including, not yet as a script parameters.

AFAIK, the parser gives error if macro is not defined.

However, I think default values for macros make sense.
e.g. Avisynth script language for video processing has function  par = default(par, value),
assigning value to optional and not defined parametr of user defined functions.

what about syntax with optional default value ?

 !macroname(|=default value)! ?

e.g. !zoneprocessing=Defragment()  Fastfill()! or 
     !zoneprocessing="Defragment()  Fastfill()"!


« Last Edit: October 15, 2009, 04:29:33 pm by poutnik » Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #1 on: October 15, 2009, 08:38:32 pm »

This would definitely make custom macros more useful.

jonib
Logged

jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #2 on: October 15, 2009, 08:57:09 pm »

Thanks for sharing your idea, I appreciate it. I like your idea and have put it on the wishlist for future implementation. Probably not the next release, though....
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!