[Gambas-user] Issue 203 in gambas: Sub declaration allows a return value just like a function

gambas at ...2524... gambas at ...2524...
Sat Jan 21 05:25:46 CET 2012


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

New issue 203 by zachsmit... at ...626...: Sub declaration allows a return  
value just like a function
http://code.google.com/p/gambas/issues/detail?id=203

1) A sub declaration allows a return value just like a function, yet the  
syntax page does not show that this is allowed.

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

Version: TRUNK
Revision: r4404

[System]
OperatingSystem=Linux
Kernel=3.1.9-2-ARCH
Architecture=x86_64
Memory=4052012 kB
DistributionVendor=arch
DistributionRelease=n/a
Desktop=Xfce

[Gambas 2]
Version=2.23.1
Path=/usr/bin/gbx2

[Gambas 3]
Version=3.0.90
Path=/usr/bin/gbx3

[Libraries]
Qt4=libQtCore.so.4.8.0
GTK+=libgtk-x11-2.0.so.0.2400.8


This code acts like a function. Is it intentional or a bug?

Public Sub IsThisaFunction() As Boolean

   Return False

End






More information about the User mailing list