I was sort of suspecting you might have done that inadvertently, since when
I checked the code, both cases were running the prologs.

Rick

On Sun, Apr 7, 2019 at 8:46 AM Rony G. Flatscher <rony.flatsc...@wu.ac.at>
wrote:

> On 06.04.2019 22:42, Rick McGuire wrote:
>
>
>
> On Sat, Apr 6, 2019 at 12:00 PM Rony G. Flatscher <rony.flatsc...@wu.ac.at>
> wrote:
>
>> Findings:
>>
>>    - NewRoutine(name,code,sz) and LoadPackageFromData(name,data,sz)
>>    behave the same (including not running the prolog code)
>>    - both are able to load plain Rexx source code,
>>       - both fail for 'rexxc'-tokenized Rexx code (e.g. loaded from a
>>       file or a database with tokenized Rexx code);
>>       - will therefore file bugs for these two native APIs
>>
>>          - LoadPackage(filename): works for both, source code and
>>    tokenized code;
>>    - however, unlike LoadPackageFromData() it will run the prolog code
>>       automatically; not sure whether this intentional or a bug
>>
>> LoadPackageFromData() is the bug. The prolog should always be run with
> package loading operations.
>
> While filing a bug, I re-executed the test script once more, just to find
> out today that I would run the LoadPackage() and LoadPackageFromData()
> tests from the same script with the same Rexx program (same names). It
> seems that LoadPackage*() has the requires semantics, such that the prolog
> gets run only the very first time the package gets loaded (and merely
> reused each time a LoadPackage*() gets issued with the same name later).
>
> With other words: LoadPackageFromData() *does* run the prolog code, if the
> Rexx script gets loaded the first time by it! So this works as designed and
> there is no bug there I assume.
>
> ---rony
>
>
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to