--- In [email protected], "entropyreduction" <[EMAIL PROTECTED]> wrote:
>
> So, if I make "1" mean "integer 1", how do I allow the user to 
> tell me "I what the character "1". 

I did mean that char type should accept/return only (as) numbers, no
ascii characters. On second thought, I realized that it might be too
restrictive and could cause another confusion to users, especially
when they reference the values. Likely to expect ascii characters. It
turned out I already did it once (:at this stage, I vaguely remembered
I indeed located and read about char type in the help...)

Part of my script:
----------------------------------------------------------------------
...

pgcl=dll.call("GetProcAddress|ui s ui",;;+
dll.call("GetModuleHandle|s ui","kernel32.dll"),"GetCommandLineA")

acl=dll.create_array(4,"c")

binary.set_dump_rules("h",esc("0t",0),esc("0x7E",0))

...

for(local i=4;i>0;i--)
binary.from_ascii_string("bb",acl[i])
pcline=eval(fill("0x00",replacechars(binary.dump("bb"),?"\",0)))+256*pcline
endfor

...
----------------------------------------------------------------------

> I could put a modifier on the type specification:
> 
> How about typespecs can include:
> 
> "integer charc chara charn ucharn byten ucn uca char"
> 
> The postfix "a" on char or uchar would mean "interpret associated
> initialising single character as an ascii character"
> 
> The postfix "n" on char or uchar would mean "interpret associated
> initialising single character as numeric value"
> 
> char or uchar with no postfix will be as now, "interpret associated
> initialising single character as an ascii character"
> 
> 
> That work for you?
>

Definitely it'll be very helpful. I hope I never forget it again. :)
Thanks for considering it.

Sean





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to