<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
On 25/1/23 20:05, Stephan Bergmann wrote:<br>
<blockquote type="cite">On 25/01/2023 05:14, David [minor edit]
wrote:</blockquote>
<blockquote type="cite"
cite="mid:6e2e13cc-53c9-306f-1fbf-818027c28600@redhat.com">
<blockquote type="cite" style="color: #0f1e11;">However treating
the '-t' option as a service rather than an interface, as
follows, works. An <org/openoffice/adl/util> directory
tree is created in the directory where the skeletonmaker CLI
command was run, and a very plausible skeleton CalcDL1.java file
was created in <util> though I haven't been through it in
detail.</blockquote>
</blockquote>
<blockquote type="cite"
cite="mid:6e2e13cc-53c9-306f-1fbf-818027c28600@redhat.com">
<blockquote type="cite" style="color: #0f1e11;">
Your comment "[...] So I would assume that -t must specify that
interface type." is what I'd expect too. That's reinforced by
the HELP text which states: "-t <name> specifies a UNOIDL
type name, e.g. com.sun.star.text.XText (can be used more than
once". Not much doubt there...
</blockquote>
So the uno-skeletonmaker help and diagnostic output apparently
uses, somewhat consistently but maybe also somewhat confusingly,
the term "type" to mean both UNOIDL interfaces and UNOIDL
services.
</blockquote>
<br>
That's the problem in a nutshell.<br>
<br>
In common programming terminology, the word "type" refers to a
single variable or symbol. A strongly-typed language will flag a
compilation error if incompatible types are used, for example 'i=x'
where 'i' is declared to be an integer type and 'x' is declared
floating-point. Extending this concept of "type" to a complex
structure like a UNOIDL interface, which may include many different
atomic types, makes sense. But I can't see how it can possibly
refer to a "service".<br>
<br>
An IDL interface and an IDL service are different things entirely,
conventionally distinguished by prefixing 'X' to interface names.<br>
<br>
And in the case of the uno-skeletonmaker 'calc-add-in command',
specifying a service works but specifying an interface fails. So I
argue that the documentation and HELP text are plainly wrong and
should be corrected. After all, skeletonmaker is only at version
0.4!<br>
<br>
Perhaps it would be worthwhile checking that this inconsistency
doesn't hide some deeper problem. It feels to me like the result of
a misunderstanding or a sudden change of design which may have
further ramifications.<br>
<br>
D.<br>
<br>
</body>
</html>