Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
Internal Error: no means to generate code for expression

 
Post new topic   Reply to topic    Forum Index -> ZX-1281
Author Message
pjc30943



Joined: 02 Dec 2005
Posts: 220

Posted: 07 January 2009, 2:28 AM    Post subject: Internal Error: no means to generate code for expression Reply with quote

On a 1281e, the following code produces the error "Internal Error: no means to generate code for expression" :

Code:
'-------------------------------------\\
Option TargetCPU zx1281e
Option ExtRamConfig On
Option PortPinEncoding Off
Option TaskStackMargin 12
Option RamSize 64*1024-Register.RamStart
'-------------------------------------//

'-------------------------------------\\
public const a as single = 4.0
public const b as integer = 100
'-------------------------------------//


Public Sub Main()

   debug.print csng(a) * csng(b)
   
End Sub


Changing "csng(a)" to "a" fixes the issue. Of course, I am accidentally casting a single to a single in the example above, and that is what leads to the error.
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2493
Location: Portland, OR

Posted: 07 January 2009, 3:43 AM    Post subject: Re: Internal Error: no means to generate code for expression Reply with quote

pjc30943 wrote:
[T]he following code produces the error "Internal Error: no means to generate code for expression"
Thanks for reporting this anomaly. The cause of the problem has been found and rectified. The correction will be included in a future release.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZX-1281 Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group