-
Notifications
You must be signed in to change notification settings - Fork 210
Closed
Description
Foto do perfil de jmcqu...@gmail.com
jmcqu...@gmail.com
26 de nov. de 2024, 15:28:18 (há 12 horas)
para Harbour Developers
REQUEST HB_CODEPAGE_PTISO
#include "hbclass.ch"
PROCEDURE Main()
LOCAL a, b, c
SetMode(25,80)
CLS
Set( _SET_CODEPAGE, "PTISO" )
a := TestObj():New()
WITH OBJECT a
:x := 10
c := { || :x }
ENDWITH
b := TestObj():New()
WITH OBJECT b
? eval( c )
? a:x
ENDWITH
Inkey(0)
RETURN
CREATE CLASS TestObj
VAR x INIT 0
ENDCLASSShow
0
10
on first WITH OBJECT, I create codeblock with a:x
On second WITH OBJECT, codeblock returns b:x, not a:x
Metadata
Metadata
Assignees
Labels
No labels