diff options
author | Rich Hickey <richhickey@gmail.com> | 2006-06-12 15:01:43 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2006-06-12 15:01:43 +0000 |
commit | a00179b2fb6cc09f87efbe8100fb17a7dd34a920 (patch) | |
tree | 1a8184360c077c9090a2e3d079acd9b6b5ac5bf8 /src/cli/runtime/Keyword.cs | |
parent | f127034f649276cb1bcde4fea50e6be4637dd5d0 (diff) |
renamed get,put etc to getAttr...
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 8c4f645a..34c893d6 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() /*throws }
/**
* 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( 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( Object obj, Object val) /*throws Exception*/
{
return ((IObj)obj).put(this,val);
} + return ((IObj)obj).getAttr(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( Object obj, Object val) /*throws Exception*/
{
return ((IObj)obj).putAttr(this,val);
} public Object invoke( Object arg1, Object arg2, Object arg3) /*throws Exception*/
{
|