NAME:createfunc
PURPOSE: write an idl function, compile it and execute it.
usefull to avoid the use of execute
CATEGORY:
CALLING SEQUENCE:res = createfunc(command)
INPUTS:
command: a scalar string defining the result to be byven back by the
function. (see examples)
KEYWORD PARAMETERS:
FILENAMEIN: name of the funccedure to be created.
'for_createfunc.pro' by default
KWDLIST: a vector string. to specify a list of keywords that
must be included in the function definition. Warning: the string
must start with a ',' for example: KWDLIST = ', TOTO = toto'
_EXTRA: used to pass your keywords to the created function.
OUTPUTS: none
COMMON BLOCKS: none
SIDE EFFECTS: ends the function name with '.pro' if needed
RESTRICTIONS:arguments can be given only through keywords
EXAMPLE:
IDL> print, createfunc('3*2', filename='test')
IDL> print, createfunc('3*two', filename = 'test' $
, kwdlist ='two = two', two = 2)