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

New issue 203 by [email protected]: 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



------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to