Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

Function overloading

Integrated Application Platform › Forums › General › Function overloading

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 11 months ago by j_ferguson.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 20, 2014 at 9:42 pm #772
    emilevanpassel
    Participant

    Is there in Suneido an option to do function overloading? I mean in the way that a function definition has several versions, each with different arguments and functionality?

    February 21, 2014 at 3:20 pm #1051
    j_ferguson
    Moderator

    As far as I know you can’t have multiple definitions of the same function/method except when overriding the definition in another library in which case only the last definition is used (but you can call the super definition within the method)

    By using default parameter values or the ‘@’ when specifying your parameter list for a function/method you can allow quite a lot of flexibility in the way the function/method is called (especially if you’re naming the arguments), but you’d still need to handle the different combinations of arguments in the one method.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • Alpha copy of gSuneido to play with
  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2023 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language