[jawsscripts] Re: Question on variable/functions and scope ranges of types

  • From: "Snowman" <snowman@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 14 Oct 2019 23:52:12 -0500

Interesting,  I can see  why that might be so.  HSC is a bunch of use 
statements,  and consists of a rather large set of modules,  and while I 
have not done good measurements, I have not noticed that.  So,  maybe that 
process has improved recently.  Computers are faster,  etc.
Plus, with the Use approach, you can do some override tricks,  which can 
help you or hurt you, depending on which direction you have the knife 
pointed.  <grin>





+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM Eastern 
time.
60's and 70's tunes, and gently conservative talk.

----- Original Message ----- 
From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, October 14, 2019 11:43 PM
Subject: [jawsscripts] Re: Question on variable/functions and scope ranges 
of types


I started the jsl idea many years ago as a means of making code modules 
without the price of load time on focus switch. It has been my experience 
that loading a large number of jsb files with Use statements for one 
projects can
slow Alt+Tab down a bit. I have not tested this very recently though, but 
years ago I did extensive testing of this theory.

On Mon, Oct 14, 2019 at 11:28:52PM -0500, Snowman wrote:
CAUTION: This email originated from outside of the organization. Do not 
click links or open attachments unless you recognize the sender and know the 
content is safe.


Related to this.  I have always wondered, Why is the JSL approach better
than separately compiled JSB,  linked in via the use statement.



+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM Eastern
time.
60's and 70's tunes, and gently conservative talk.

----- Original Message -----
From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, October 14, 2019 10:43 PM
Subject: [jawsscripts] Re: Question on variable/functions and scope ranges
of types


The well documented way: Include jsd entries for the functions:

:function blah
:returns string

The less documented way: Include lines like this above where the function is
used:

prototype string function blah(int i, string byRef s)

On Mon, Oct 14, 2019 at 09:00:13PM -0600, Peter Torpey wrote:
CAUTION: This email originated from outside of the organization. Do not
click links or open attachments unless you recognize the sender and know the
content is safe.


I have a script file with an include statement at the top that references a
separate jsl file containing some custom functions.


Within the jsl file I reference some functions in the original jss file and
am trying to capture return values from these functions.



Problem: When I reference functions within the jss file, functions that
return string values, for example, are seen as functions that return integer
values within the jsl file.



What is the proper way of making the scope of variable types sensible?



Thanks for any suggestions.



--Pete





__________???

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts

--
Doug Lee, Lead Accessibility Architect
Level Access - over 1,000 organizations trust us to help them achieve and
maintain digital accessibility compliance!
mailto:Doug.Lee@xxxxxxxxxxxxxxx  http://www.LevelAccess.com
"While they were saying among themselves it cannot be done, it was
done." --Helen Keller
__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts

-- 
Doug Lee, Lead Accessibility Architect
Level Access - over 1,000 organizations trust us to help them achieve and 
maintain digital accessibility compliance!
mailto:Doug.Lee@xxxxxxxxxxxxxxx  http://www.LevelAccess.com
"While they were saying among themselves it cannot be done, it was 
done." --Helen Keller
__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: