diff options
author | Rich Hickey <richhickey@gmail.com> | 2006-05-31 20:45:32 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2006-05-31 20:45:32 +0000 |
commit | 08e27be5bba0400b651ed7877e72ff48bbdd6ccc (patch) | |
tree | 575b3dc4cd7e5e294375d657702c342b7ab2af69 /src/cli/runtime/Keyword.cs | |
parent | 19d311642fa821d51365a551756146336c24a270 (diff) |
added tld to IObj sigs, added TObj
Diffstat (limited to 'src/cli/runtime/Keyword.cs')
-rw-r--r-- | src/cli/runtime/Keyword.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/runtime/Keyword.cs b/src/cli/runtime/Keyword.cs index 903d8ea4..903a8619 100644 --- a/src/cli/runtime/Keyword.cs +++ b/src/cli/runtime/Keyword.cs @@ -24,7 +24,7 @@ internal Keyword(String name):base(name)
{
}
public Object invoke(ThreadLocal }
/**
* Indexer implements IFn for attr access
* This single arg version is the getter
* @param tld
* @param obj - must be AMap
* @return the value of the attr or nil if not found
*/
public Object invoke(ThreadLocalData tld, Object obj) /*throws Exception*/
{
if (obj == null)
return null;
- return ((IObj)obj).get(this);
}
/**
* Indexer implements IFn for attr access
* This two arg version is the setter
* @param tld
* @param obj - must be AMap
* @param val
* @return val
*/
public Object invoke(ThreadLocalData tld, Object obj, Object val) /*throws Exception*/
{
return ((IObj)obj).put(this,val);
} + return ((IObj)obj).get(tld,this);
}
/**
* Indexer implements IFn for attr access
* This two arg version is the setter
* @param tld
* @param obj - must be AMap
* @param val
* @return val
*/
public Object invoke(ThreadLocalData tld, Object obj, Object val) /*throws Exception*/
{
return ((IObj)obj).put(tld,this,val);
} public Object invoke(ThreadLocalData tld, Object arg1, Object arg2, Object arg3) /*throws Exception*/
{
|