[Gambas-user] Issue 163 in gambas: Events and ByRef

gambas at ...2524... gambas at ...2524...
Tue Dec 20 17:23:05 CET 2011


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 163 by emil.len... at ...626...: Events and ByRef
http://code.google.com/p/gambas/issues/detail?id=163

1) Describe the problem.
The Event declaration allows ByRef:
Event ev(ByRef a As Integer)

However, the Raise statement does not allow ByRef:
Raise ev(ByRef a)
Compiler says: "Unexpected ByRef"

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK

3) Provide a little project that reproduces the bug or the crash.

4) If your project needs a database, try to provide it, or part of it.

5) Explain clearly how to reproduce the bug or the crash.

6) By doing that carefully, you have done 50% of the bug fix job!

IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!

Either allow the use of ByRef in Event raising, or throw an error when  
ByRef is encountered in an Event declaration.





More information about the User mailing list