Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.

Spurious parameter error

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-08-2010, 10:52 AM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default Spurious parameter error

This is an amusing little run time bug. The code shows two uses of a sub call.
The first is executed, the second identical call causes an error saying that only regular variables can be passed.

Hmm. That would be same parameter which was seen as a regular variable in the first call then? Ho Ho!

Even if there is some restriction on where such subs may be used, which there shouldn't be (an expression is an expression is an expression), that would be completely the wrong error report.
Attached Files
File Type: sbp Bug.sbp (763 Bytes, 14 views)
Reply With Quote
  #2 (permalink)  
Old 06-08-2010, 06:05 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,714
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thank you for reporting it. It will be fixed in the next update. The problem lies with the call being inside a condition expression.
Reply With Quote
  #3 (permalink)  
Old 06-26-2010, 08:10 PM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default

These things sometimes filter through the brain slowly and eventually lead to further questions. Nothing but curiosity if you can spare me a second. But is a compiler/compiler (or parser generator as some have it) used in producing this language? If so, which one?
Reply With Quote
  #4 (permalink)  
Old 06-27-2010, 08:00 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,714
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The parsing is done manually. At the time of writing the first version, back in 2005, I wasn't familiar with any stable .Net parser generator.
Reply With Quote
  #5 (permalink)  
Old 06-30-2010, 10:18 PM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default

That's a shame. No wonder some bits are tricky to change.
Reply With Quote
  #6 (permalink)  
Old 07-07-2010, 04:01 PM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default

Eventually it occured to me to wonder why a parser generator needs to know anything about .net. It doesn't need to know about it to run on windows, and all it is producing is, for example C# code, mostly by user written semantic actions or AST scanners, where the user can put as much .net awareness as he wants, because it isn't actually used until the generated code is compiled and/or linked into the target .net project. It's a text processor producing different text, so I'm not sure how that needs to be .net aware, it's just text.
Reply With Quote
  #7 (permalink)  
Old 07-07-2010, 06:18 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,714
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I meant that I'm not familiar with any parser generator like bison or flex that runs on .Net CF.
Reply With Quote
  #8 (permalink)  
Old 07-21-2010, 09:45 PM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default

Ah, right. But would the need to? Having .Net doesn't stop native mode apps from running Oh well, never mind, I just like using them, so I'm predjudiced,
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Add custom parameter while creating a setup file jothis Questions (Windows Mobile) 2 06-01-2010 04:16 AM
Basic4ppc. ERROR. Error loading program. NotSupportedException darron Questions (Windows Mobile) 8 05-10-2010 06:10 PM
GetSystemPowerStatusEx2 gave Error Code 87?? Invalid parameter. What does that mean? tsdt Questions (Windows Mobile) 2 02-25-2010 12:45 AM
Parameter is not valid lancaster Questions (Windows Mobile) 2 10-27-2008 09:27 PM
Passing a control as a parameter AHeroMenKill Questions (Windows Mobile) 3 06-18-2008 02:17 PM


All times are GMT. The time now is 04:01 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0