develooper Front page | perl.perl5.porters | Postings from April 2000

RE: [ID 20000403.009] uninitialised concatenation???

Thread Previous | Thread Next
From:
Konovalov, Vadim
Date:
April 4, 2000 08:13
Subject:
RE: [ID 20000403.009] uninitialised concatenation???
Message ID:
402099F49BEED211999700805FC7359F4DE9F9@ru0028exch01.spb.lucent.com
> > BROKEN: a is 'my_type', not 'int '
> 
> The C programmer here has explicitly defined my_type to be 
> the same as int.
> If the programmer becomes confused, it is his own fault.
> 
> On the other hand, the Perl programmer has not explicitly 
> defined string
> interpolation to be the same as string concatenation.  That is an
> implementation detail of the Perl compiler.  The programmer 
> should not be
> required to know the internals of the compiler.

wchar_t in MSVC++ is typedef'd somewhere in it's internal headers and
programmer not only does not care it's real type, but he(she) should not
rely on it's real type, because it may change. But compiler gives warnings
about "unsigned short int" (AFAIR). Here are internals of compiler.

I think many more examples may be given, example about typedef just came to
me because I saw it today...

Good luck,
Vadim.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About