> Yes... this mutates the state of the underlying object, thus needs to be
> done privately and correctly.

private[http] def toList = rules

How does this mutate state? Its just returning the list isn't it (as
its def not val/var)? It appears to me that the prepend and append
methods mutate the state of the internal "rules" var... or am i
missing the point? [ quite possible - I usually do ;-) ]

> Why do you need the resulting List?

Im creating something specialized for my environment and I just want
to then do processing on the supplied list, in exactly the same way
that all the other List[ThePF] style functions do in net.liftweb.http.
For example:

// LiftSession.scala
val role = NamedPF.applyBox(req.path,
LiftRules.httpAuthProtectedResource.toList)

I more want RuleSeq to create the nice looking DSL, as i'll hook into
lifts processing pipeline using LiftSession.onBeginServicing or
something similar...

> If you're using RuleSeq in your code, why not just copy the class over to
> your code and morph it how you want?

Sure, I could do this, but it seems a little pointless as I dont want
to change any functionality, I purley want to be able to use RulesSeq
outside of the http package - my understanding of scala scoping is
that private[http] means that method is usable for members of that
package, as opposed to being just available in that object/class like
normal java scoping.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to