Two standard libraries?

Julio César Carrascal Urquijo jcesar at phreaker.net
Mon Jul 16 21:06:40 PDT 2007


Kirk McDonald wrote:
> Robert Fraser wrote:
>> Well, not even scripting languages keep names of local variables in
>> memory at runtime...
> 
> Hmm?
> 
>  >>> a = 12
>  >>> b = 'waffles'
>  >>> locals()
> {'__builtins__': <module '__builtin__' (built-in)>, '__name__': 
> '__main__', 'b': 'waffles', '__doc__': None, 'a': 12}
>  >>> "%(a)s %(b)s" % locals()
> '12 waffles'
> 

And if I may add:

<?php

$a = 5;
$b = 'a';
$$b = 'Hello, world!';
echo $a;

?>



More information about the Digitalmars-d mailing list