: 4537 | 107854 | 12224

circular use of script libs 
Use this IdeaSpace to post ideas about Domino Designer.

: 24
: 26
: 2
: Domino Designer
: oop, script_library
: Jan Schulz4388 23 Mar 2008
:
: / Email
Why does code like this (Visitor Pattern):
 
class User
    sub invite(b as Visitor)
          b.visitUser(me)
    end sub
    sub doSomething()
    end sub
end class
 
class Visitor
    sub visitUser(a as User)
       a.doSomething()
    end sub
end class
 
work in one class lib, but not when seperated into two libs ("Illegal Circular use")?
 
This makes some OOP concepts (in this case Visitors, which call the User back) impossible when seperating code into different libs or you get huge script libs (ls.doc only work with so long libs and it also means you touch all code when you just want to change one bit).
 
Please make this error go away!



1) Bill McNaughton40 (24 Mar 2008)
Agree, problem's been there since R5 and does impose unnecessary constraints when trying to build modular script library designs.
2) Rob Goudvis6575 (25 Mar 2008)
Yes, please: can't wait until this implementation!
3) Willy L53 (08 Sep 2008)
First, your code doesn't compile. It has two errors.

Second, you can use two libraries just fine.

UserLib
Class User
Sub invite(b As Variant)
b.visitUser Me
End Sub
Sub doSomething()
End Sub
End Class


VisitorLib
Class Visitor
Sub visitUser(a As Variant)
Call a.doSomething()
End Sub
End Class


Agent Visitor Test
Options
Use "UserLib"
Use "VistorLib"

Sub Initialize
Dim User As New User
Dim Visitor As New Visitor

Call Visitor.VisitUser( User )
End sub
4) Jan Schulz4388 (18 Nov 2008)
@3: this is using variants, so is not compile save :-(










:
:

Welcome to IdeaJam™


You can run IdeaJam™ in your company. It's easy to install, setup and customize. Your employees, partners and customers will immediately see results.

Use IdeaJam to:

  • Collect ideas from employees
  • Solicit feedback and suggestions from employees and customers
  • Run innovation contests and competitions
  • Validate concepts
  • Use the power of "crowd-sourcing" to rank ideas and allow the best ideas to rise to the top

IdeaJam™ works with:

  • IBM Connections
  • IBM Lotus Quickr
  • Blogs and Wikis
  • Websphere Portal
  • Microsoft Sharepoint
  • and other applications.

IdeaJam has an extensive set of widgets and API's that allow you to extend and integrate IdeaJam™ with other applications.

Learn more about IdeaJam >>


1
Inbox Zero for Notes
5
XWork Server Community Edition
7
Allow groups, domains etc. to be used to set background or ink colours in the ($inbox)
1
Add Signature to new calendar entry
4
Allow more than Database Icons on the Workspace?
6
Dynamic favicon
9
Save snoozed alarms
6
Add functionality in IdeaJam to Automatically create an SPR for the enhancement request with IBM
18
One-click way to add participants to a Lotus Notes Meeting Invite
3
Sametime group chat with all meeting invites
7
Make Notes Not Crash when Home Server is Down / Restarts
8
Clicking the Quickflag icon on an already flagged e-mail should remove the flag
5
Propose to download attachments before forwarding mail (Android)
-3
put sent items in folders
3
Traveler refresh by pull down
-2
Provide A doc-Load option in each object to load just the first 40k of rich text fields in a doc
36
Calendar current time visual indicator
22
IBM needs to implement some of the ideas on this site
-1
Allow more granular control of the Database Administrators security setting on the server document for roaming upgrade
2
Synchronize Alarm Snooze Behavior in Notes to Work Like iNotes
6
Message Recall available to Administrators (SPR # Included)
3
Have the "Folder" column of the "All Docs" view also available in iNotes
3
I wish evaluate() would throw errors (again)
6
Replication and Sync Sametime contacts






IdeaJam developed by

Elguji Software Logo