View · Search · Index
No registered users in community xowiki
in last 10 minutes

Weblog Page

Showing 321 - 330 of 1561 Postings (summary)

[Xotcl] frappr page

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
Date: Sun, 29 Jan 2006 14:26:58 +0100

Hi everybody,

maybe you are interested in joining the frappr group of xotcl to locate
the people based
on the google map... See: http://www.frappr.com/xotcl

best regards
-gustaf neumann

[Xotcl] rules engine ?

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Luc Rasson <luc_rasson_at_yahoo.com>
Date: Fri, 14 Mar 2008 07:24:02 -0700 (PDT)

Dear XOTcl community,

Maybe it is not the proper mailing list but I was wondering if any -business- rules engine based on the RETE algorithm exists for XOTcl ? (as for example Drools for Java) ?

If yes, all informations/links/resources are welcome :)

Thanks & regards,
Luc Rasson

       
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.

[Xotcl] Object mixin with passing init args ?

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Zoran Vasiljevic <zoran_at_munich.com>
Date: Wed, 13 Dec 2000 04:30:04 -0500 (EST)

Hi XOTcl gurus!

Consider this:

% Class Foo
% Foo instproc init {dir} {puts hallo}

% Class Bar
% Bar bar
% bar mixin Foo
no value given for parameter "dir" to "init"

After snooping arround I've found out that mixin's does
not allow any argument passing to the mixin class initializer.

Is this something normal ? If one needs such functionality
are there any workarounds ?

Cheer's
Zoran


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

[Xotcl] Fw: http://nm.wu-wien.ac.at/Lehre/ps/

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: <webmaster_at_alice.wu-wien.ac.at>
Date: Fri, 8 Mar 2002 00:22:23 +0800

----- Original Message -----
From: crisha_at_trafficbbs.net
To: webmaster_at_alice.wu-wien.ac.at
Sent: 2002-3-8 0:22:20
Subject: http://nm.wu-wien.ac.at/Lehre/ps/

Hello,

You may have spent much on lots of ways to achieve these - search engine registrations, website promotions, press release, email sending?- Here Traffic BBS presents you a unique method economically and professionally converting a PC into personal message distribution center! Traffic BBS assists you to post your message or ad to over 1,200,000+ message boards on the web worldwide. Along with a hyperlink to your website or email address, a message of your business, product, service or offer will be promptly submitted to targeted bulletin boards. You can expect instant response!
Get your business, service, product or offer seen!
Best Regards,
Crisha Wenston
Sales & Marketing www.trafficbbs.net
  

[Xotcl] A problem, Parameters and Documentation

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Kristoffer Lawson <setok_at_fishpool.com>
Date: Wed, 27 Jun 2001 18:50:03 +0300 (EEST)

I have a problem where I have many classes which would have a lot of very
simple methods to set/get certain attributes. The simplest way is to have
lots of instprocs, but that's a lot of cut&pasting as each one is almost
the same. Now I'm sure you're all thinking "parameters". Well, originally
I thought that would work, but it seems I have misunderstood the parameter
documentation. You see, simple parameters wont work. I need the
automatically created instprocs to do more than return an instvar. I
originally thought that extending Class::Parameter might work, but it now
seems that this might not be the case. So what I'm looking for is
input and ideas from anyone who cares to share them. In addition I
have some comments and questions about XOTcl itself.

I'll split this discussion up into a few sections.


1. Parameter Documentation.

The bit about extending Class::Parameter at
http://media.wu-wien.ac.at/doc/tutorial.html#parameter wasn't exactly
clear to me. Especially the line:

C c1 {{a -default 1 -someInstproc x} ...}

I still can't quite work out what that line is actually doing. Is C a
class creating an object called c1? Is it a meta-class creating a class
object c1? And in both situations wouldn't the argument just be sent
as-is, so no parameter handling?

I now understand (after playing around in the shell), that when using the
"parameter" method I can additionally specify methods to call in the
used parameter class. However, this is not immediately clear from the
tutorial. In addition it does not mention what arguments are sent to this
procedures and which object receives the messages (I worked it out by
testing). In addition I would like to know the calling order. If I use a
parameter line like {{a -default 1 -someInstproc x}}, is the parameter
"a", and the method for it, created after or before the call to
someInstproc? It appears to be after.

The role of Class::Parameter is not quite obvious either. It is used to
set the default, but am I correct in understanding that it does not
actually handle the creation of parameters or their methods? Does it do
anything else? Another interesting thing I noticed: when -someInstproc is
called above [self callingobject] returns an empty string inside the
proc. I could've used that to override the normal method created.


2. My problem in more general terms

If I look at my situation from a wider perspective the need I have is
to have an interface that looks like parameters to the developer using my
library, but which are handled differently internally. I want to easily be
able to allow a developer to do the following:

set textOb [Text new $root -enabled 1 -text "Hello, world\n"]

As mentioned, that is easy to do by providing the methods "enabled" and
"text", but as each one is exactly the same I would like a mechanism that
is like the parameter one, but handled slightly different internally. In
the ENIÄK system those would be referred to as attributes, and the methods
basically just translate them to ENIÄK commands.


3. Some solutions

1) Cut&paste. Well, it does the trick, but it's a bit bothersome.

2) Code generation from a separate script. Ugly, hacky and experience
shows that it's awkward to maintain.

3) For loops. I could create a whole bunch of similar instprocs for
each class in a for loop (hooray for script programming). But it might not
be quite obvious to anyone reading the code, plus do I lose the
possibility of using xoDoc documentation?

4) Metaclasses. I could create an EniakClass metaclass, which provides
each class with a method to create instprocs easily. It would look like
the parameter mechanism except that instead of specifying -parameter when
creating a class, I could use -attribute. I do not wish to override the
parameter method as I use normal parameters as well. That of course means
changing a lot of classes from being instances of Class to instances of
EniakClass. Still, all in all not a truely horrible solution.

5) Something else?


4. XoDoc

With solution 4) above I have the issue of using xodoc and that
"-attribute" method invocation when creating a class. Xodoc obviously
does not understand that. So I would still like to see a documented way of
extending xodoc -generation dynamically on an application level so that
certain metatags in certain contexts would generate certain output for
different target platforms (ie. something for Html, something for XML
etc.). Probably something to keep in mind with future releases.


5. Spoiling all the fun

Some of my attributes will most likely have to be handled specially
anyway. For those I will just have to make their own procedures. Mostly
these specially handled ones are the kind where I don't necessarily
want the developer to specify attribute values directly (as some of the
protocol attribute values can be cryptic, so I want to map them to
clearer forms). The downside to this model is that while they appear the
same to the developer they will be implemented (and probably
documented) differently than the ones created in the generic way. So am I
stuck?

         - ---------- = = ---------//--+
         | / Kristoffer Lawson | www.fishpool.fi|.com
         +-> | setok_at_fishpool.com | - - --+------
             |-- Fishpool Creations Ltd - / |
             +-------- = - - - = --------- /~setok/

[Xotcl] info subclass

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Kristoffer Lawson <setok_at_scred.com>
Date: Sat, 24 Apr 2010 18:42:30 +0300

In my 1.2 version of XOTcl (OSX) [info subclass] works in the
following way:

Class Foo

Class Bar -superclass Foo

Foo info class Bar
=> 1

However the current documentation says the parameter given is a
pattern and the fully qualified name is returned, or empty if no match
was found. Has this changed at some point? This would be quite an
incompatible change.

I actually prefer how it works on my installation. I want to
explicitly check if one class is a subclass of another, as objects,
not as patterns (patterns can be risky). And it's not actually clear
what is meant by 'pattern'. Foo is a class, Bar is a class, but Foo's
actual fully qualified name is ::Foo, so if I wanted an exact search
it should be against ::Foo, but will it also match 'Foo' (as desired)?

-- 
Kristoffer Lawson, Co-Founder, Scred // http://www.scred.com/

[Xotcl] Simple example: TicTacToe

Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

From: Rick Hedin <rhedin_at_aquifer.geology.uiuc.edu>
Date: Mon, 12 Mar 2001 16:44:20 -0600

Hello all.

I was having some trouble understanding basic things about XOTcl. I found
an old TicTacToe program written in OTcl (by Gustaf?) and translated it so
it would run on Tk rather than Mofe. It's self-contained, involves several
cooperating objects, and has a simple domain. Maybe some other beginner
would find going through it useful.

I have attached the script to this mail message.


        Regards,

        Rick





    Re: [Xotcl] Issue with mixin delete

    Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

    From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
    Date: Sun, 07 May 2006 01:10:24 +0200

    Scott Gargash schrieb:
    >
    > Hello,
    >
    > I've run into an issue when trying to remove a mixin from an object.
    > It appears that removing a mixin from an object interacts with the
    > method chaining, such that the "next" isn't invoked.
    >
    scott,

    in your example, you are trying to delete the currently active mixin
    from the mixin list (xotcl needs it
    currently to continue from that point in the mixin chain), and then you
    are deleting the object anyhow.
    Most probably, we should rise an error in such cases.

    what is your intention, what lead you to this construction?

    -gustaf
    >
    >
    > Here's an example:
    >
    > Class Mixin1
    > Mixin1 instproc destroy {args} {
    > puts "Mixin1 1: [my info mixin]"
    > next
    > my mixin delete ::Mixin1
    > puts "Mixin1 2: [my info mixin]"
    > }
    >
    > Class Mixin2
    > Mixin2 instproc destroy {args} {
    > puts "Mixin2 1: [my info mixin]"
    > my mixin delete ::Mixin2
    > puts "Mixin2 2: [my info mixin]"
    > next
    > }
    >
    > Class Mixin3
    > Mixin3 instproc destroy {args} {
    > puts "Mixin3 1: [my info mixin]"
    > my mixin delete ::Mixin3
    > puts "Mixin3 2: [my info mixin]"
    > next
    > }
    >
    > Object a
    >
    > puts "a: [a info mixin]"
    > a mixin set {::Mixin1 ::Mixin2 ::Mixin3}
    > puts "a: [a info mixin]"
    >
    > a destroy
    >
    >
    > And the output is
    >
    > a:
    > a: ::Mixin1 ::Mixin2 ::Mixin3
    > Mixin1 1: ::Mixin1 ::Mixin2 ::Mixin3
    > Mixin2 1: ::Mixin1 ::Mixin2 ::Mixin3
    > Mixin2 2: ::Mixin1 ::Mixin3
    > Mixin1 2: ::Mixin3
    >
    >
    > Because Mixin1 invokes "next" before "mixin delete", Mixin2's
    > "destroy" method gets invoked. But since Mixin2 invokes "mixin delete"
    > before "next", Mixin3's "destroy" method is not invoked, despite it
    > remaining in the object's list of mixins.
    >
    > This is not the behavior I would expect, and I can't find it
    > documented anywhere. Is this the intended behavior? What should I do
    > if I want to remove a mixin and then continue executing chained methods.
    >
    > Scott
    >
    > ------------------------------------------------------------------------
    > *Notice*
    > The information in this message is confidential and may be legally
    > privileged. It is intended solely for the addressee. Access to this
    > message by anyone else is unauthorized. If you are not the intended
    > recipient, any disclosure, copying or distribution of the message, or
    > any action taken by you in reliance on it, is prohibited and may be
    > unlawful. If you have received this message in error, please delete it
    > and contact the sender immediately. Thank you.
    > ------------------------------------------------------------------------
    >
    > _______________________________________________
    > Xotcl mailing list
    > Xotcl_at_alice.wu-wien.ac.at
    > http://alice.wu-wien.ac.at/mailman/listinfo/xotcl
    >

    Re: [Xotcl] "Cannot locate library"

    Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

    From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
    Date: Tue, 13 May 2003 10:50:30 +0200

    On Monday 12 May 2003 23:27, MichaelL_at_frogware.com wrote:
    > I don't know if this helps, but my approach was to add the following in
    > xotcl-1.0.2/pkgIndex.tcl:

     Good idea!

     the following is more generic an should work (if it placed
     into the installed directory of the xotcl library) platform indepently.

     We should think a little about what to do to execute xotcl
     in the noninstalled case (e.g.
       - putting this into xotcl-$(VERSION)/library,
       - add a simple pkgIndex.tcl to xotcl-$(VERSION) to load the shared lib
       - add xotcl-$(VERSION) to auto_path
     ) and to produce the attached one on install....
    This is the way we should go.

    -gustaf

    ============================================================
    package ifneeded XOTcl 1.0 [list load \
      [file join $dir .. libxotcl1.0[info sharedlibextension]] XOTcl]

    set _dir_ $dir
    foreach index [glob -nocomplain [file join $dir * pkgIndex.tcl]] {
      set dir [file dirname $index]
      source $index
    }
    set dir $_dir_
    unset _dir_
    ============================================================



    -- 
    Univ.Prof. Dr.Gustaf Neumann
    Abteilung für Wirtschaftsinformatik
    WU-Wien, Augasse 2-6, 1090 Wien
    

    [Xotcl] Fwd: Re: Calling object

    Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM

    From: Mark Strembeck <mark.strembeck_at_wu.ac.at>
    Date: Sun, 11 Jul 2010 08:41:39 +0200

    ... didn't add xotcl_at_alice to the receiver's list


    ----- Weitergeleitete Nachricht von mark.strembeck_at_wu.ac.at -----
          Datum: Sun, 11 Jul 2010 08:38:18 +0200
            Von: Mark Strembeck <mark.strembeck_at_wu.ac.at>
    Antwort an: Mark Strembeck <mark.strembeck_at_wu.ac.at>
        Betreff: Re: [Xotcl] Calling object
             An: Kristoffer Lawson <setok_at_scred.com>
             Cc: mark.strembeck_at_wu.ac.at

    Hi Kristoffer,

    Zitat von Gustaf Neumann <neumann_at_wu-wien.ac.at>:
    >
    >> The reason I want to do this is that I have an access control
    >> system which calls something like [checkPermissions].
    >> [checkPermissions] should just return and do nothing if the
    >> original calling object is equal to [self]. Now I end up having to
    >> passs [checkPermissions] a parameter with [self callingobject].
    >>
    > I am somewhat confused by your terminology. If you are looking for
    > access control management, look for example at xoRBAC, which follows
    > the role based access control model, standardized by the NIST
    > http://wi.wu-wien.ac.at:8002/home/mark/xoRBAC/index.html
    >
    > the basic notion in access control is based on <subject> <pred> <object>
    > idea, which subject (individual, user) is allowed to execute which operations
    > (pred)on which objects.

        From your e-mails i understand that you are looking for some
    feature/mechanism
        to control the accessability of methods in a class hierarchy (public,
        protected, private). In this case, xoRBAC is not the tool for you.

        xoRBAC is a component providing an access control service following the
        role-based access control paradigm. While xoRBAC's concepts and general
        functionality are still valid and "up to date", most of the xoRBAC source
        code was written in 1999 (using xotcl 0.85 i guess). Therefore, i'm
        planning to re-implement the xoRBAC source using some of the xotcl feature
        that were added since these early days and my (significantly) increased
        knowledge of software development :) ... however, although i'm
    planning this
        re-implementation for some time now, i simply didn't find the time
    to actually
        do it yet ... maybe this summer.

        ... just for your information.

        best regards,

        Mark





    ----- Ende der weitergeleiteten Nachricht -----

    Next Page