© J.C. Kessels 2009
MyDefrag Forum
June 19, 2013, 04:06:35 am
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
MyDefrag Forum
>
MyDefrag v4 Forum
>
Scripts, and other contributions
>
Default values for macros
Pages: [
1
]
« previous
next »
Print
Author
Topic: Default values for macros (Read 858 times)
poutnik
JkDefrag Hero
Posts: 1106
Default values for macros
«
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
Re: Default values for macros
«
Reply #1 on:
October 15, 2009, 08:38:32 pm »
This would definitely make custom macros more useful.
jonib
Logged
MyDefrag script syntax highlighting generator
.
jeroen
Administrator
JkDefrag Hero
Posts: 7156
Re: Default values for macros
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
MyDefrag v4 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Scripts, and other contributions
-----------------------------
JkDefrag v3 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Programming with the library
Loading...