Article View: comp.lang.modula2
Article #3167Re: Modula2 for C programmers?
From: Michel De Rosa
Date: Mon, 22 Jan 1996 23:20
Date: Mon, 22 Jan 1996 23:20
25 lines
1486 bytes
1486 bytes
jguthrie@brokersys.com wrote:
: Pat Terry (cspt@giraffe.ru.ac.za) wrote:
:
: : They should all allow you to CAST (coerce) to a BITSET and back
:
: : e.g. A := CARDINAL( BITSET(x) * BITSET(y) )
:
: : does AND, and so on.
:
: Why isn't this mentioned in any of the books that I've read on Modula-2? I
: was always left with the impression that it was impossible to do this.
It is mentionned in PIM, it may or may not be in others, but it's usually
mentionned where low-level facilities are discussed...
What i'd love to see mentionned in a book (clearly), is the 'tag-less'
variant case, for records.. :{(
Oh.. just to be clear, coercion, as done above, is not limited to
base-types.. neither does it do any sort of interpretation of the bits,
i.e. it's a straight copy of the bitmap, if you will..
Ciao!
Michel De Rosa
Aliath@nyongwa.montreal.qc.ca
Technical Details
Message-ID:
<DLLvHL.3C4@nyongwa.montreal.qc.ca>Path:
arc1-ca.pugleaf.net!mcrcim.mcgill.edu!nyongwa!aliathReferences:
<erico-1801961940460001@infinitehell.cnmat.berkeley.edu> <4dqusf$d7k@weck.brokersys.com> <DLIGLJ.FDE@nyongwa.montreal.qc.ca> <4du11j$l31@weck.brokersys.com> <cspt.1225.31032C36@giraffe.ru.ac.za> <4e01fn$qte@weck.brokersys.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.modula2 Path: arc1-ca.pugleaf.net!mcrcim.mcgill.edu!nyongwa!aliath From: aliath@nyongwa.montreal.qc.ca (Michel De Rosa) Subject: Re: Modula2 for C programmers? Message-ID: <DLLvHL.3C4@nyongwa.montreal.qc.ca> Organization: Radio Free Nyongwa, Montreal (Qc), Canada Date: Mon, 22 Jan 1996 23:20:07 GMT References: <erico-1801961940460001@infinitehell.cnmat.berkeley.edu> <4dqusf$d7k@weck.brokersys.com> <DLIGLJ.FDE@nyongwa.montreal.qc.ca> <4du11j$l31@weck.brokersys.com> <cspt.1225.31032C36@giraffe.ru.ac.za> <4e01fn$qte@weck.brokersys.com> X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]