object function

I found a function called object in the notorious DOORS DXL documentation. It shows this:


Object object(int absno,Module m)


When I try and use it I get this obtuse error message:
-E- DXL: <Line:140> incorrectly concatenated tokens

I get this message if I do

object(10)
or

Object o = object(10)

or

int a = 10
Object o
object = object(10)

or
Module m = read("some module", false)
Object o

o = object(10,m)

Anyone know what the DXL error message is trying (or not trying) to tell me?
Doorsbert - Wed Apr 01 21:48:19 EDT 2009

Re: object function
Tony_Goodman - Thu Apr 02 02:50:50 EDT 2009

Nothing wrong with the call to object(). I suspect that teh interpreter has lost the plot before reaching this line and as such the error message is spurious.

Check your closing braces and parentheses in lines of code before this.

Re: object function
llandale - Thu Apr 02 11:51:35 EDT 2009

First off, that particular function only finds objects that are currently visible in the module, making it practically worthless. Better off having a function that finds the object if it exists, then folks caring if its visible can add 'if (isVisible(o))'...

Anyway, that function doesn't generate an error (v8.1). I suspect you have defined a function named
'object(int X)' somewhere further up in the code; perhaps defined as type string.

What version are you using? Perhaps you should supply then other 139 lines of code that preceed this.

>Louie