[Bug 58248] New: Me(Idx) fails to compile
http://bugs.winehq.org/show_bug.cgi?id=58248 Bug ID: 58248 Summary: Me(Idx) fails to compile Product: Wine Version: 10.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: vbscript Assignee: wine-bugs(a)winehq.org Reporter: francisdb(a)gmail.com Distribution: --- code: Sub Spinner_Hit(Idx) Me(Idx).IsDropped=True 'Spinner(Idx).IsDropped=True End Sub Wine: /opt/wine-devel/bin/wine cscript test.vbs 0134:fixme:vbscript:make_call_expression Unhandled for expr type 22 0134:fixme:wscript:ActiveScriptSite_OnScriptError () 0134:fixme:wscript:run_script ParseScriptText failed: 80004005 Windows: [Running] cscript //Nologo "c:\Users\me\OneDrive\Bureaublad\test.vbs" [Done] exited with code=0 in 0.097 seconds -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58248 francisdb <francisdb(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Me(Idx) fails to compile |vbscript: Me(Idx) fails to | |compile -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58248 --- Comment #1 from Nikolay Sivov <bunglehead(a)gmail.com> --- Hi, Is that a complete vbs source file? My understanding is that 'Me' is similar to 'this' in cpp, but what Me(Idx) would mean I have no idea. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58248 --- Comment #2 from Nikolay Sivov <bunglehead(a)gmail.com> --- make_call_expression() error message means that it doesn't expect call syntax on 'ME' expression. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58248 --- Comment #3 from francisdb <francisdb(a)gmail.com> --- This is calling the default property / function / sub? class TestClass Public Default Property Get Item(Index) wscript.echo "Item" & Index Item = 40 + Index End Property Public sub Test () wscript.echo "Test" & Me(2) End Sub End Class Dim obj Set obj = New TestClass obj.Test [Running] cscript //Nologo "c:\Users\me\OneDrive\Bureaublad\tempCodeRunnerFile.vbs" Item2 Test42 [Done] exited with code=0 in 0.088 seconds -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58248 --- Comment #4 from Nikolay Sivov <bunglehead(a)gmail.com> --- I see, that probably means it's about supporting default properties with arguments. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58248 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58248 --- Comment #5 from francisdb <francisdb@gmail.com> --- Add this to lang.vbs to test ' Me(idx) should parse as accessing the default property of Me ' https://bugs.winehq.org/show_bug.cgi?id=58248 Class TestMeIndex Private arr_(1) Public Default Property Get Item(idx) Item = arr_(idx) End Property Public Sub SetVal(idx, val) arr_(idx) = val End Sub Public Sub TestAccess() SetVal 0, "hello" Call ok(Me(0) = "hello", "Me(0) = " & Me(0)) End Sub End Class Set obj = New TestMeIndex Call obj.TestAccess() -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
WineHQ Bugzilla -
WineHQ Bugzilla