Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Updates: Status: Started Labels: -Type-Crash Type-Bug Comment #13 on issue 268 by benoit.m...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 (No comment was entered for this change.) -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Comment #14 on issue 268 by emil.len...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 I should also mention that, if you look at line 110 to 114 in gbx_exec.c, it seems like the object is not released if the unknown function (if _property returned True) threw an error. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Updates: Status: Fixed Comment #15 on issue 268 by benoit.m...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 Fixed in revision #4906. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Comment #17 on issue 268 by benoit.m...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 It should be fixed in revision #4907. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Comment #12 on issue 268 by emil.len...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 Trying to print out properties does not seem to work either.. 'Class1 Public Function _property() As Boolean Return True End Public Function _unknown(...) As String Return hello End Public Sub TestFunction() Print Me.uuh End - Wanted Stream, got Class1, i.e. stack is corrupted. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Comment #7 on issue 268 by emil.len...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 Some more things: * What should happen if _property is static but _unknown is dynamic or vice versa? ;) This code: Static Public Function _property() As Boolean End Public Sub _unknown(...) End Public Sub TestFunction() Me.uuh = 3 End - Segmentation fault (The gambas stack gets corrupted) And Static Public Function _property() As Boolean Print This is not written to stdout End Public Sub _unknown(...) Print This is written to stdout End Public Sub TestFunction() Me.uuh() End - i.e. _property is silently ignored, but _unknown is executed. * _property must also be checked in about the same way when a property is written to: Static Public Function _property() As Boolean Print This message will not be written to stdout. Return True End Static Public Sub _unknown(...) Print Not this message either End Public Sub TestFunction() Me.uuh = 3 End - Shows nothing on the screen, i.e. none of _property or _unknown are executed, and no error message. * In revision #4894 you cannot call a static function when having an object, like obj.unknown_function(), err msg static function. But the convension is that static functions can actually be called even if you have an object. obj.known_static_function() works. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Updates: Status: Fixed Comment #9 on issue 268 by benoit.m...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 OK, in revision #4897 you can use a static unknown property in a dynamic context. But I don't think it works with a static unknown method called in a dynamic context... -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Comment #10 on issue 268 by emil.len...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 Now some more headache :) Public Function _property() As Boolean Return False End Public Function _unknown(...) As String Return hello End Public Sub TestFunction() Print Me.uuh() End - Wanted Stream, got String, i.e. stack is corrupted. And as you say, static unknown method called in dynamic context does not work yet, like it should by convention... -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 268 by emil.len...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 1) Describe the problem. You can call a non-static _unknown from a static context. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4888 3) Provide a little project that reproduces the bug or the crash. 'Class1 Public a As Integer = 1337 Public Sub _unknown(...) Print a End In main: Class1.blaha() - Segfault -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Comment #1 on issue 268 by emil.len...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 One question: Are static _unknown and static _property allowed? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Updates: Labels: -Type-Bug Type-Crash Comment #3 on issue 268 by benoit.m...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 (No comment was entered for this change.) -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Issue 268 in gambas: Can call non-static _unknown from a static context
Updates: Status: Fixed Comment #6 on issue 268 by benoit.m...@gmail.com: Can call non-static _unknown from a static context http://code.google.com/p/gambas/issues/detail?id=268 Fixed in revision #4894. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user