Re: [MSEide-MSEgui-talk] MSElang, implicit type conversions
On 12/18/2013 10:52 AM, Julio Jiménez wrote: > You don't need to define abs in C, just use stdlib.h, this is what I > wanted to say.. :) OK. But right now we are discussing concepts, not ease of use :-) . -Michael -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] MSElang, implicit type conversions
> > > Really ? > > I had the impression that it is a compiler builtin. > > Probably I'm wrong in the concept. Compiled by default doesn't mean is part of the language IMHO, you also can apply the same to abs in C language stdlib.h curious.. you can read http://www.freepascal.org/docs-html/rtl/system/ ...The system unit contains the standard supported functions of Free Pascal. It is the same for all platforms. Basically it is the same as the system unit provided with Borland or Turbo Pascal standard.. like standard lib in C I was only responding to your sentence: "abs() does not exist in C (you can of course do a simple #define macro for that)." You don't need to define abs in C, just use stdlib.h, this is what I wanted to say.. :) -- Julio Jiménez Borreguero -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] MSElang, implicit type conversions
On 12/18/2013 10:36 AM, Julio Jiménez wrote: > Abs in pascal is also in a library (System unit) is not part of the > language Really ? I had the impression that it is a compiler builtin. -Michael -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] MSElang, implicit type conversions
Yes.. of course ;) almost everything is in a library.. but it's standard library. Abs in pascal is also in a library (System unit) is not part of the language.. like almost every thing. I'm not sure but probably stdlib.h is in every C implementation out there. 2013/12/18 Michael Schnell > On 12/18/2013 10:26 AM, Julio Jiménez wrote: > > > > > > Not true. You can find it in stdlib.h > > This is not C (language) but a library. > > -Michael > > > -- > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > ___ > mseide-msegui-talk mailing list > mseide-msegui-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk > -- Julio Jiménez Borreguero -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] MSElang, implicit type conversions
On 12/18/2013 10:26 AM, Julio Jiménez wrote: > > > Not true. You can find it in stdlib.h This is not C (language) but a library. -Michael -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] MSElang, implicit type conversions
On 12/17/2013 07:23 PM, Martin Schreiber wrote: > BTW, Free Pascal has no unsigned abs(). > http://www.freepascal.org/docs-html/rtl/system/abs.html Did anybody test what fpc really does for cardinalvalue = abs (cardinalvalue); with cardinalvalue = $ ? -Michael -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] MSElang, implicit type conversions
> abs() does not exist in C (you can of course do a simple #define macro > for that). > > Not true. You can find it in stdlib.h -- Julio Jiménez Borreguero -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] MSElang, implicit type conversions
On 12/17/2013 06:52 PM, Martin Schreiber wrote: > integervar:= abs(integer(cardinalvalue)); but for cardinalvalue = $ cardinalvalue = chard32 (abs(integer(cardinalvalue))); would result in 1, while cardinalvalue = abs (cardinalvalue) in fpc would result in $ -Michel -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] MSElang, implicit type conversions
On 12/17/2013 08:24 PM, Sieghard wrote: > BUT: Does anybody _really_ think that type casting _does_ something? In fact it does stuff like zero or sign extend or cut away high order bits. -Michael -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] MSElang, implicit type conversions
On 12/17/2013 08:24 PM, Sieghard wrote: > What's so special about "abs"? Nothing at all. It's simply a comparison .. abs() looks like a function but in fact it isn't. So it's a very special kind of "function" (at least it is similar to a set of overloaded function or a kind of "generic"). In Pascal same is true for typecasts. C is more straight forward: typecasts don't look like a function so you are not astonished to see that they don't perform any action. abs() does not exist in C (you can of course do a simple #define macro for that). -Michael -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk