Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 2 > Newsgroup comp.lang.pop

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2007, 02:34 AM
Waldek Hebisch
Guest
 
Posts: n/a
Default Rosetta examples

I created a number example Pop11 progams at:

http://www.rosettacode.org/wiki

I plan to write a few more, but ATM I wonder what is the easiest
way to create (or delete) directory from Pop11. One can do
external call to C library, but that is a little complicated.
Another possibilit is to run a shell command, but this looks
somwhat as cheating (and the very presence of shell depends
on operating system).

--
Waldek Hebisch
hebisch@math.uni.wroc.pl
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 05-18-2007, 08:47 AM
Aaron Sloman
Guest
 
Posts: n/a
Default Re: pop-forum Rosetta examples

Waldek wrote:

> I created a number example Pop11 progams at:
>
> http://www.rosettacode.org/wiki


That looks extremely useful. I see from this page

http://www.rosettacode.org/wiki/Category:Pop11

that you have already created 47 articles. I shall try to look at
them soon, and will put a cross reference into the pop11 primer and
other high level files on the bham poplog site.

> I plan to write a few more, but ATM I wonder what is the easiest
> way to create (or delete) directory from Pop11. One can do
> external call to C library, but that is a little complicated.


It would also be possible to use sysexecute, though I have not
tried that.

> Another possibilit is to run a shell command, but this looks
> somwhat as cheating (and the very presence of shell depends
> on operating system).


I.e. use 'sysobey'.

This is similar to using sysexecute, except that sysobey invokes the
the shell to run the command whereas sysexecute does not.

sysobey has been available in all versions of poplog on all
operating systems, and I have been using it for years to create and
delete directories without any trouble.

(My pop11 version of 'mkdir' includes the '-p' flag by default so
that all intermediate directories are created too.)

I suppose there is some inconsistency in that other file
manipulation utilities are provided directly, as listed in

REF sysio
REF sysutil

So I have no idea why directory creation and deletion were never
included. Perhaps that's just because the developers, like me, were
happy to use sysobey.

One advantage of using sysobey or sysexecute is that environment
variables can be used in file names. Otherwise I assume they would
have to be expanded (using 'sysfileok') before the system procedure
is invoked.

Aaron
http://www.cs.bham.ac.uk/~axs/

Reply With Quote
  #3 (permalink)  
Old 05-18-2007, 08:47 AM
Aaron Sloman
Guest
 
Posts: n/a
Default Re: pop-forum Rosetta examples

Waldek wrote:

> I created a number example Pop11 progams at:
>
> http://www.rosettacode.org/wiki


That looks extremely useful. I see from this page

http://www.rosettacode.org/wiki/Category:Pop11

that you have already created 47 articles. I shall try to look at
them soon, and will put a cross reference into the pop11 primer and
other high level files on the bham poplog site.

> I plan to write a few more, but ATM I wonder what is the easiest
> way to create (or delete) directory from Pop11. One can do
> external call to C library, but that is a little complicated.


It would also be possible to use sysexecute, though I have not
tried that.

> Another possibilit is to run a shell command, but this looks
> somwhat as cheating (and the very presence of shell depends
> on operating system).


I.e. use 'sysobey'.

This is similar to using sysexecute, except that sysobey invokes the
the shell to run the command whereas sysexecute does not.

sysobey has been available in all versions of poplog on all
operating systems, and I have been using it for years to create and
delete directories without any trouble.

(My pop11 version of 'mkdir' includes the '-p' flag by default so
that all intermediate directories are created too.)

I suppose there is some inconsistency in that other file
manipulation utilities are provided directly, as listed in

REF sysio
REF sysutil

So I have no idea why directory creation and deletion were never
included. Perhaps that's just because the developers, like me, were
happy to use sysobey.

One advantage of using sysobey or sysexecute is that environment
variables can be used in file names. Otherwise I assume they would
have to be expanded (using 'sysfileok') before the system procedure
is invoked.

Aaron
http://www.cs.bham.ac.uk/~axs/

Reply With Quote
 
Reply

Popular Tags in the Forum
examples, rosetta

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: CALL EXECUTE examples SAS_learner Newsgroup comp.soft-sys.sas 0 11-19-2006 06:19 PM
Re: CALL EXECUTE examples Arthur Tabachneck Newsgroup comp.soft-sys.sas 0 11-19-2006 05:25 PM
CALL EXECUTE examples SAS_learner Newsgroup comp.soft-sys.sas 0 11-19-2006 05:16 PM
Re: NEED SAS examples on Conjoint Analysis and MDS David L Cassell Newsgroup comp.soft-sys.sas 1 10-23-2006 02:08 PM
Re: Looking For Great Applied RegressionBook with SAS Examples Talbot Michael Katz Newsgroup comp.soft-sys.sas 0 07-29-2005 02:53 PM



All times are GMT. The time now is 02:27 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.