| Author |
Message |
pjc30943
Joined: 02 Dec 2005
|
|
Posted: 07 January 2009, 2:28 AM Post subject: Internal Error: no means to generate code for expression |
|
|
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
Location: Portland, OR
|
|
Posted: 07 January 2009, 3:43 AM Post subject: Re: Internal Error: no means to generate code for expression |
|
|
| 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 |
|
 |
|