Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Beta Versions
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Beta Versions This forum is the place to discuss issues regarding Basic4ppc beta versions.


Redeclared variables bug (or not!)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-04-2010, 07:58 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 3,839
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default Redeclared variables bug (or not!)

This tiny program gives the expected variable redeclaration error when run in the IDE but the optimising compiler doesn't detect this and emits code that causes a type conversion error in csc.exe. This may or may not be considered a bug as most programs will be run in the IDE first but the error during compilation is unhelpfully different to that in the IDE.

Code:
Sub Globals
  Dim d 
End Sub

Sub App_Start
  test
End Sub

Sub test
  Dim d As Number
  d = 23
End Sub
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #2 (permalink)  
Old 03-06-2010, 06:08 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,831
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks. Fixed.
__________________
Basic4ppc reference list
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Three-level variables? N1c0_ds Basic4ppc Wishlist 1 03-09-2009 05:34 PM
program variables tremara1 Questions & Help Needed 2 10-16-2008 07:52 AM
Environment Variables Zenerdiode Questions & Help Needed 1 05-22-2008 03:36 PM
Dim-ing variables colin9876 Questions & Help Needed 8 11-17-2007 05:47 PM
Structure variables Erel Code Samples & Tips 0 05-19-2007 10:36 AM


All times are GMT. The time now is 12:01 AM.


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