Rick, many thanks for this helpful information.

Les, I'm on Windows 7 and wish to control (in a rexx program) if the
current user has admin authorities before I start fiddling with things that
only such users can do. Of course I could attempt something and if it fails
assume the user is not an admin, but I'm more looking for a standard
isAdmin() function or similar.

Staffan


On Tue, Sep 16, 2014 at 6:37 PM, Rick McGuire <[email protected]> wrote:

>
>
> On Tue, Sep 16, 2014 at 12:09 PM, Staffan Tylen <[email protected]>
> wrote:
>
>> Subclass vs Mixinclass:
>>
>> Is it correct to say that MIXINCLASS is a superset of SUBCLASS with the
>> added ability to use the class as an INHERIT class? If correct is there any
>> other difference one should be aware of? (I have two classes with SUBCLASS
>> currently specified that I want to INHERIT in another class and I therefore
>> wish to change SUBCLASS to MIXINCLASS in those classes, but am unsure of
>> any side effects.)
>>
>
>
> Yes, that is pretty much the difference.  A mixinclass is in all respects
> a normal class, so making it a mixin will not change that function.
>  However, you need to assess whether the class is really suitable for use
> as a mixin.  To start with you need to be aware of the "baseclass" of the
> mixin, which will be the first non-mixin class in the inheritance chain.  A
> class can only inherit mixins if it is also a subclass of the mixin
> baseclass.  If your mixins are subclasses of object, for example, the mixin
> can be inherited by any class.  But you cannot do something like create a
> mixing from array and another from directory and use that to try to create
> a class that inherits from those.
>
> If your mixin classes depend on init() method calls to be initialized
> correctly, you might also run into some issues because the inherit
> mechanism will change the superclass relationships used for method
> invocations.  This might require some special coordination if you require
> arguments to be passed to the init methods.
>
> Rick
>
>>
>> User admin authority:
>>
>> I've searched but been unable to find a way to determine of the current
>> user has Windows administrator authority. Is this possible?
>>
>> Many thanks.
>> Staffan
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Want excitement?
>> Manually upgrade your production database.
>> When you want reliability, choose Perforce.
>> Perforce version control. Predictably reliable.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Oorexx-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce.
> Perforce version control. Predictably reliable.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> _______________________________________________
> Oorexx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
>
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to