It is currently Wed Jun 28, 2017 3:49 pm



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: GW V4.5 error
Unread postPosted: Sat Dec 10, 2016 11:25 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5543
Location: Paris, France
Not urgent since Gilles uses 4.4 and he was the only one with a problem.

I have nothing concrete on RWD, you'll need to wait a little more ;)

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: Announcing GW: a GUI-lib to easily create apps!
Unread postPosted: Sun Dec 11, 2016 1:26 am 
Offline

Joined: Sat Mar 02, 2013 11:04 am
Posts: 866
Location: France
mougino wrote:
I'll debug your big program when I have free time but to be honest with you maybe I will prefer go to the park with my son and enjoy the sunny weather.
Nicolas

I am very happy to allow you to debug your GW library Nicolas! and also to advance it.
But next time go to the park with your son and enjoy the sunny weather instead of doing computer, it's better for health.

Gilles.


PS:
mougino wrote:
I'm trapped in a corner on the BLE experimentation, this is too complex and I go nowhere... I'm afraid I will have to drop it :cry:
Nicolas

Please don't give up your work about the BLE. It's been so long that many people are waiting for no one to be in a hurry now ;) Maybe it's possible to ask to Chuck from Mintoris ?

_________________
"It is better to mobilize intelligence for stupid things, rather than mobilizing stupidity for intelligent things."
Galaxy TAB S 8.4, 2560x1600, Marshmallow 6.0.1
Galaxy Note II, 1280x720, JB4.1.2
Galaxy A3, 1280x720, Android 6.0.1


Top
 Profile  
 
 Post subject: Re: GW V4.5 error
Unread postPosted: Sun Dec 11, 2016 1:53 am 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5543
Location: Paris, France
I did both Gilles ;) find the root cause and go to the park!

And sorrry but BLE is way over my head/skills. We need a jMarc here, but you know how his time is rare...

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Top
 Profile  
 
 Post subject: Re: GW V4.5 error
Unread postPosted: Sun Dec 11, 2016 6:34 am 
Offline

Joined: Wed Feb 20, 2013 3:25 pm
Posts: 423
Location: Italy
Considering this snippet

Code:
FN.DEF f1()
  a=1 : b=1
  f2()
FN.END
FN.DEF f2()
  a=2 : b=2
  DO: UNTIL 0
FN.END
FN.DEF f3()
  a=3 : b=3
  f4()
FN.END
FN.DEF f4()
  a=4 : b=4
  ? INT$(a), INT$(b)
FN.END

a=-1
f1()

ONBACKKEY:
? INT$(a), INT$(b)
f3()
BACK.RESUME


and the relative output (as one press BackButton repeatedly):

Code:
-1, 1
4, 4
4, 4
4, 4
4, 4
4, 4
...


it seems that these are the rules for variable scope in interrupt routines:
1. There is a single variable scope, independently of how many nested functions are invoked;
2. A symbol always refers to the lowest variable instance present in the call stack (the global scope being the lowest layer in the stack)

In a few words: In interrupt routines, everything is executed in the closest scope to the global where the item is defined.

/ L


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2, 3


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred