Re: Global FS variables, another suggestion

2007-01-11 Thread Michael Baessler
Thilo Goetz wrote: CAS.declareFsVariable(String name, Type type) CAS.isFsVariable(String name):boolean CAS.getFsVariableType(String name):Type I would like to have an additional method like CAS.getFsVariableForType(Type type):FS so that an analysis component do not have to know the variable

Re: Global FS variables, another suggestion

2007-01-11 Thread Thilo Goetz
Jörn Kottmann wrote: Please let me know if you think this is a good idea, and if so, if you're in favor of the dynamically typed or the pseudo-statically typed version. Can you explain what is the reason to not declare the type inside the type system ? Thanks, Jörn Jörn, I'm not sure I

Re: Global FS variables, another suggestion

2007-01-11 Thread Adam Lally
On 1/11/07, Michael Baessler [EMAIL PROTECTED] wrote: Thilo Goetz wrote: CAS.declareFsVariable(String name, Type type) CAS.isFsVariable(String name):boolean CAS.getFsVariableType(String name):Type I would like to have an additional method like CAS.getFsVariableForType(Type type):FS so that

Re: Global FS variables, another suggestion

2007-01-11 Thread Eddie Epstein
Having not heard a user request for global variables, I'm a little fuzzy on the use case. However, if I understand correctly what is suggested is a combination of: 1. a new built in type with two features. 2. a slight variation on the set index, where instead of silently ignoring a duplicate FS

Re: Global FS variables, another suggestion

2007-01-11 Thread Adam Lally
On 1/11/07, Eddie Epstein [EMAIL PROTECTED] wrote: Having not heard a user request for global variables, I'm a little fuzzy on the use case. I think one use case is the singleton use case. You could define a global variable called myapp.documentMetadata and set its value to an instance of