RE: SF arrays
"Guijarro, Julio" <[email protected]> Thu, 27 Apr 2006 11:18:27 +0100
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Steve,
> -----Original Message-----
> From: smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-
> developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Steve Loughran
> Sent: 21 April 2006 13:04
> To: smartfrog-developer
> Subject: [Smartfrog-developer] SF arrays
>
>
> I have a couple of q's about arrays
>
> 1. what you get when you resolve them
>
> If I sfResolve("listeners") when it is something like l
>
> listeners [ LAZY console, LAZY xmlListener];
>
> What I get back is not an vector of resolved links, its an vector of
> references. I seem to need to check for everything that is a reference
> and if so, resolve it by hand.
>
> (a) this is not what I want. Is it by design?
It was by design but we have considered that it we could treat Vector as
a primitive data type as well.
> (b) is there some utility method that exists to run through a vector
and
> resolving things
sfResolve() will do it now. (CVS code) All the references in a Vector
will be resolved in the right context.
Example:
sfConfig extends Compound {
v1 10;
v2 [LAZY v1]; //-> v2 resolves into [10]
secondLevel extends Compound {
v1 20;
v2 [LAZY v1, LAZY PARENT: ATTRIB v2]; //-> v2 resolves into [20,
[10]]
}
}
>
> the other question about arrays is : why arent trailing commas
allowed:
>
> something [
> "one",
> "two",
> "three",
> ]
> is an error because of the final ,. However, Java happily takes and
> discards the trailing comma in an array, because its so easy to leave
in.
>
> -steve
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Smartfrog-developer mailing list
> Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642