🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #550

Re: m2 for scientific computation

#550
From: Patrick Draper
Date: Mon, 07 Sep 1992 07:40
31 lines
1719 bytes
In article <21407.2AA8073F@puddle.fidonet.org> Peter.Froehlich@p100.f71.n246.z2.fidonet.org (Peter Froehlich) writes:
>
>Why  should I want to convert a POINTER TO INTEGER into a POINTER
>TO  CHAR  anyway?  A well-designed application has (IMHO) no need
>for doing this...
>
>By(T)e...
>         Peter...
>
>-- THE ANSWER V2.03
>
>--  
>uucp: uunet!m2xenix!puddle!2!246!71.100!Peter.Froehlich
>Internet: Peter.Froehlich@p100.f71.n246.z2.fidonet.org

A well designed application might never need to do that, I agree. However,
Modula-2 is also a *systems* programming language!

If I am programming a device that is block mapped, it might be efficient to
handle my memory 32 bits (integer)) at a time. However, if I need to do
other operations on that memory, it might be more efficient to use 8 bits at
a time. You can see that a simple pointer conversion will allow me to do
both.


------------------////////////////////\\\\\\\\\\\\\\\\\\\\------------------
| Patrick Draper           Disclaimer:  I can't control my fingers,        |
| draper@umcc.ais.org                   I can't control my toes! - Ramones |
| University of Michigan                                                   |
| Computer Club                We are a nation of laws, not people         |
------------------\\\\\\\\\\\\\\\\\\\\////////////////////------------------
Technical Details
Message-ID: <Bu76no.Gq3@ais.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!usc!sol.ctr.columbia.edu!destroyer!ais.org!draper
References: <21407.2AA8073F@puddle.fidonet.org>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.modula2
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!usc!sol.ctr.columbia.edu!destroyer!ais.org!draper
From: draper@ais.org (Patrick Draper)
Subject: Re: m2 for scientific computation
Message-ID: <Bu76no.Gq3@ais.org>
Organization: UMCC
References: <21407.2AA8073F@puddle.fidonet.org>
Date: Mon, 7 Sep 1992 07:40:33 GMT
Lines: 31