Hi Frank,

Frank Schönheit - Sun Microsystems Germany escribió:
Hi Ariel,

And even this is not completely "safe" in OOo Basic, as it is
implementation specific; quoting Frank's in
http://api.openoffice.org/servlets/ReadMsg?list=dev&msgNo=18530

"So, the bottom line is: createInstanceWithArguments[AndContext] *might*
work, but if it doesn't (or stops working the next version), don't
complain."

I corrected myself in a later mail in this thread:
http://api.openoffice.org/servlets/ReadMsg?list=dev&msgNo=18533, where
the bottom line reads
  Means that using createInstanceWithArguments[AndContext] is
  future-proof, even if implementations of dedicated factories change.

So, at least *this* is not the problem with new-style service
constructors in Basic ...

jaja... I didn't re-read the whole thread!

So the bottom line for me here: I guess that new-style constructors where introduced, among other things, to make things easy for strictly type-safe languages, that is get rid createInstanceWith[ArgumentsAnd]Context...

"Funny" is how this ended complicating the easy way we have in Basic with createUnoService()... because in Basic we have GetDefaultContext() and GetProcessServiceManager() for "easy-use" with createInstanceWith[ArgumentsAnd]Context(), but this all sound like introducing a new complexity [I've hardly seen these used in Basic code]... so let's hope i82918 gets fixed.

Regards
Ariel.



--
Ariel Constenla-Haile
La Plata, Argentina

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.ArielConstenlaHaile.com.ar/ooo/



"Aus der Kriegsschule des Lebens
                - Was mich nicht umbringt,
        macht mich härter."
                Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to