One followup I would offer is: maybe undefined escaped characters should not
produce undefined results, but rather, should cause a warning or error from
the translator.

Another twist I'll add on the whole / vs. \ thing is that I think the
semantics of supporting / from Windows-based platforms is implemented in the
C language runtime system under some C compilers, such that it would work
across different versions of Windows, but I am not sure which C library
functions (besides straight fopen() ) would be tweaked with such extensions.
 So in our own Unicon projects we have often had to write Unicon code to
select \ or / appropriate to the platform.

Clint

On Fri, Jun 18, 2010 at 9:57 AM, Steve Graham <[email protected]
> wrote:

>
> On Fri, Jun 18, 2010 at 10:47 AM, Jafar Al-Gharaibeh 
> <[email protected]>wrote:
>
>> Steve,
>>
>>      The Unicon book (at unicon.org) page 37 has table of escape codes
>> and character that can be used in strings in Unicon. From what I see in your
>> example Unicon ignores the undefined escaped characters and just deletes the
>> backslash. However \d is Control-D which is being replaced in the string
>> below.
>>
>>  Jafar
>>
>>
>>
>>
>> On Fri, Jun 18, 2010 at 12:18 PM, Steve Graham <
>> [email protected]> wrote:
>>
>>> To be more explicit, this is the program which printed the string below:
>>>
>>> procedure main()
>>>    in := "c:\users\steve\desktop\dd_va.go"
>>>    write("This is in: ",in)
>>> end
>>>
>>>
>>> Steve
>>>
>>> ---
>>>
>>>
>>> On Fri, Jun 18, 2010 at 10:07 AM, Steve Graham <[email protected]>wrote:
>>>
>>>>  I thought I would see what you got when you only included 1 backslash
>>>> in the file description in Unicon:
>>>>
>>>> C:\Program Files (x86)\Unicon\bin>delete_spaces.exe
>>>> This is in: c:userssteve⌂esktop⌂d_va.go
>>>>
>>>> Interesting.
>>>>
>>>> Another question:  When I'm using the IDE, the date/time stamp changes
>>>> on the .icn file when I click the Save button.  However, when I click the
>>>> Compile/Exe button, the date/time stamp of the .exe file does not change.
>>>> However, I do get the following message displayed in the message window:
>>>>
>>>>  wunicon -quiet -log C:\Users\Steve\AppData\Local\Temp\ui24111127
>>>> delete_spaces.icn
>>>>
>>>> Any idea how I can update the .exe file?
>>>>
>>>> Thanks for everything, Steve
>>>>
>>>> ---
>>>>
>>>> --- On *Fri, 6/18/10, Frank J. Lhota <[email protected]>* wrote:
>>>>
>>>>
>>>> From: Frank J. Lhota <[email protected]>
>>>>
>>>> Subject: Re: [Unicon-group] Problem opening file
>>>> To: [email protected]
>>>> Date: Friday, June 18, 2010, 6:51 AM
>>>>
>>>>
>>>> On 6/17/2010 7:26 PM, Andrew Clarke wrote:
>>>> > Not sure what you mean here, but it's merely an issue of writing the
>>>> > program literal in Icon code. Windows supports / in paths, in fact
>>>> > this "feature" of Windows has been around from day 1 of MS-DOS 2.0,
>>>> > long before Windows was a twinkle in Bill Gates wallet.
>>>>
>>>> That's not quite true. As a default, MS-DOS 2.0 and later used '/' as
>>>> the command line switch character, and '\' as the directory separator.
>>>> MS-DOS 2.0+ did have undocumented DOS functions for getting / setting
>>>> both the switch character and the directory separator character. DOS
>>>> ports of Unix utilities, such as the MKS toolkit, took advantage of
>>>> these undocumented calls to use '-' for switches and '/' for the
>>>> directory separator.
>>>>
>>>> Unfortunately, support for these undocumented calls disappeared in the
>>>> last few versions of MS-DOS. As far as I know, Windows does nothing to
>>>> support using '/' as a directory separator. Many newer applications do
>>>> use '-' for switches, however.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>>> lucky parental unit.  See the prize list and enter to win:
>>>> http://p.sf.net/sfu/thinkgeek-promo
>>>> _______________________________________________
>>>> Unicon-group mailing list
>>>> [email protected]<http://mc/[email protected]>
>>>> https://lists.sourceforge.net/lists/listinfo/unicon-group
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>>> lucky parental unit.  See the prize list and enter to win:
>>>> http://p.sf.net/sfu/thinkgeek-promo
>>>> _______________________________________________
>>>> Unicon-group mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/unicon-group
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>> lucky parental unit.  See the prize list and enter to win:
>>> http://p.sf.net/sfu/thinkgeek-promo
>>> _______________________________________________
>>> Unicon-group mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/unicon-group
>>>
>>>
>>
>>
>> --
>> "Let there be no compulsion in religion: Truth stands out clear from
>> error" [The Holy Qur'an 2:256]
>>
>> "Injustice anywhere is a threat to justice everywhere"    Dr. King
>>
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Unicon-group mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/unicon-group
>
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to