global objects and variables, functions

For making suggestions and/or requests for new features you'd like added to EViews.

Moderators: EViews Gareth, EViews Moderator

mamo
Posts: 205
Joined: Wed Nov 07, 2012 9:11 am

global objects and variables, functions

Postby mamo » Wed Nov 07, 2012 9:43 am

Hello,
I am using Eviews 7.1 and have the the following suggestions for further updates:
  • Allow the creation of global objects and variables within a local subroutine
    Reason: Often, you want refer to new objects to be created by a subroutine through a string denoting the object name, e.g.: series {%series_name}.This is not possible in local subroutines.
    This does of course work if the subroutine is not defined as local but only at the cost that you cannot keep other variables and objects within the subroutine local.
    Suggestion for implementation: define a new keyword global. This would allow for writing code such as
    global series {%series_name}
    within a local subroutine.
  • Implement a proper concept for a user-defined function that gives back a value or an object
    Reason: calling subroutines which need to give back a value or an object is cumbersome in EVIEWS since an additional argument containing the value or object to be given back needs to be added to the subroutine. If the user wants a routine to give back an object the object needs to be defined in an extra line beforehand.
    Suggestion for implementation: define a new conept function. The user can then write code like
    function myfunction(scalar a, series b) as series
    ....
    return x
    endfunction
    ...
    series w= myfunction(!u,v)
Kind regards, mamo

Return to “Suggestions and Requests”

Who is online

Users browsing this forum: No registered users and 2 guests