Techin,

this mail seems more suited for the PWS list, discussing Swikis in
particular. The "[] in UndefinedObject>>DoIt" comes from the way Swiki
is implemented: the code is not in the image but read in from files.

-- Bert

---------- Forwarded message ----------
Date: Fri, 4 May 2001 22:59:54 -0700
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Need help explaining -- Primitive 82 and [] in
    UndefinedObject>>DoIt

Help please!

I am trying to find out why the email alert mechanism by Swiki
posting the url ending with ".", without the extension. In my
case, the correct url should be a number not ending with ".", or
".html", or other extensions.

End of the message is a modified of SwikiBook>>formatPageAction:with.

In this method, I will halt the program when the actionName is url.
WHAT PUZZLE me is that the doer is "[] in UndefinedObject>>DoIt"
NOTE: I cannot find method DoIt under UnderfinedObject (correct
statement?)

messages copy, fixTemps, valueWithArguments: send to doer which is nil.
However the result is an url string. For example:
'http://172.25.54.21:9999/3.'

Thing got more complex, when I trace the valueWithArguments: to
BlockContent>>valueWithArguments which call <primitive 82>.

My question now is if primitive 82 returns
'http://172.25.54.21:9999/3.',
not 'http://172.25.54.21:9999//3', how am I going to fix this problem?
Or, this is not the root of the problem?

My other question is that if doer is an UndefinedObject, why the program
keeps execution, but not goes into debug mode, or quit the exeuction?
It did return something, but when I was in debug mode, I cannot step
into
the correct place to inspect how the program work.

SwikiBook>>formatPageAction:with:
--------------------------------------------------------------
formatPageAction: actionName with: args
      |doer result  aBookResult |
(actionName = 'url') ifTrue: [self halt.].
      result _ nil.
      aBookResult _ nil.
      doer _ pageActions at: actionName ifAbsent: [
                  aBookResult _ self formatBookAction: actionName with:
(args copyFrom: 1 to: 4).
                  ^aBookResult.
            ].
      result _ doer copy fixTemps valueWithArguments: args.
      ^result. "if doer is nil, the result does hold some values??"


THANKS,
Techin Alex Kang


Reply via email to