Re: [MSEide-MSEgui-talk] Exception handling in MSElang
On Friday 28 July 2017 13:35:37 Graeme Geldenhuys wrote: > On 2017-07-27 17:53, Martin Schreiber wrote: > > I think a > > programming language should represent the actual exception structure. > > The concept I described is supported in Java and works very well there. > So I can't see why it wouldn't for Object Pascal or MSELang. > Do you see in Java the nested kind of operation of the exception handling code or do you need to read the manual? ;-) The overhead is not so big I think. " try // something here except // in case an exception occurs finally // clean-up code here end; " versus " try try // something here except // in case an exception occurs end; finally // clean-up code here end; " Martin -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] Exception handling in MSElang
On 2017-07-27 17:53, Martin Schreiber wrote: I think a programming language should represent the actual exception structure. The concept I described is supported in Java and works very well there. So I can't see why it wouldn't for Object Pascal or MSELang. Anyway, just a suggestion. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] Exception handling in MSElang
On Thursday 27 July 2017 17:59:50 Graeme Geldenhuys wrote: > On 2017-07-27 16:45, Martin Schreiber wrote: > > Exception handling has been implemented in MSElang > > Are you planning on implementing try..finally..except block. A all in > one syntax that saves you a ton of typing and indentation? > > eg: > >try > // something here >finally > // clean-up code here >except > // in case an exception occurs >end; > Probably not because the above construct needs two "landingpads" and I think a programming language should represent the actual exception structure. MSElang uses the LLVM "zero cost" exception mechanism BTW. Martin -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] Exception handling in MSElang
On 2017-07-27 16:45, Martin Schreiber wrote: Exception handling has been implemented in MSElang Are you planning on implementing try..finally..except block. A all in one syntax that saves you a ton of typing and indentation? eg: try // something here finally // clean-up code here except // in case an exception occurs end; The above is the equivalent to... try try // something here except // in case an exception occurrs end; finally // clean-up code here end; Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
[MSEide-MSEgui-talk] Exception handling in MSElang
Hi, Exception handling has been implemented in MSElang https://gitlab.com/mseide-msegui/mselang/wikis/home/mselang_exceptions https://gitlab.com/mseide-msegui/mselang/wikis/home/mselang_objects Thoughts? Martin -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk