For me it related to type casting pointers.
In "Weakly Typed" C/C++...
Foo f; Foo *pf = &f; Bar *pb = (Bar*) pf; Bar& b = *pf;
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.)
|Replies are listed 'Best First'.|
Re^3: Perl 6: Static/Dynamic Strong/Weak Type Systems
by Anonymous Monk on Apr 17, 2006 at 19:47 UTC
by merlyn (Sage) on Apr 17, 2006 at 21:26 UTC