> What I think he wants is a way to specify initial state or some values
> to use for initialization in the contract ID.

right. (this corresponds to case 1.a in my list)

>
> @myclass?param1=one;param2=two
> @myclass?param1=three;param2=four
>
> He's saying this equates to the same component "myclass". And I assume
> would call some predetermined function that would process the rest of
> the contract ID and do some initialization.

yes. either ctor or some init().

>
> It'd be much like creating an instance and then calling
> object.Init("one", "two");
>
> Neither XPCOM nor COM does this

Ah. OK.

I think I recall that in COM+ it is possible to hand over
one init string to the ctor of a component - I'm not sure.

> .. and IMO its not a good idea.
>

I very much like the "feeling" these URL + ?params style
ContractIDs give me at the scripting language level.

Toby.




Reply via email to