![]() |
|
No such thing as a small change | |
PerlMonks |
Re^2: Perl 6: Static/Dynamic Strong/Weak Type Systemsby tomazos (Deacon) |
on Apr 16, 2006 at 22:15 UTC ( #543715=note: print w/replies, xml ) | Need Help?? |
I realize now that there is clearly no standard definition of "strongly typed".
For me it related to type casting pointers. In "Weakly Typed" C/C++...
Here, f points to a piece of memory it will treat as if it was in the structure of a Foo. b points to *the same* piece of memory and instead it will treat as if it was in the structure of a Bar. Foo and Bar may have totally unrelated structures. This is what I was thinking of in terms of weak typing. I thought you couldn't do that in Perl - hence I called in strongly typed. (It looks like you might be able to something similiar with the pack/unpack magic mentioned above - although it is certainly not a common practice.) -Andrew.
In Section
Meditations
|
|