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

Best Way to Specify Compiler Options ?

Integrated Application Platform › Forums › Internals & Enhancements › Best Way to Specify Compiler Options ?

  • This topic has 1 reply, 1 voice, and was last updated 11 years, 7 months ago by amckinlay.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 11, 2011 at 5:14 pm #707
    amckinlay
    Keymaster

    One of the recent changes was that unhandled values in a switch statement will throw an exception. Some people are finding this a problem with existing code. (For new code, just include a default: if you want to ignore other values.)

    So we should probably have an option to disable this new feature.

    The question is how to specify the option:

    – a command line option e.g. -switchdefaultthrow

    – a function e.g. SetSuneidoOption(switchDefaultThrow: false)

    – a special member in the global Suneido object e.g. Suneido.SwitchDefaultThrow = false

    Note: the second two would have to be done before any of the applicable code was used

    What do you think?

    July 13, 2011 at 5:32 pm #878
    amckinlay
    Keymaster

    I went with setting a member in the Suneido object because it was the simplest to implement.

    We’ll see how it works.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Internals & Enhancements’ is closed to new topics and replies.

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