Re: what language is this?
From: Chris Mattern (syscjm_at_gwu.edu)
Date: 11/06/03
- Next message: J. Gleixner: "Re: Converting a list join to a scaler/string"
- Previous message: Gunnar Hjalmarsson: "Re: how to access a (global) variable across files"
- In reply to: Abigail: "Re: what language is this?"
- Next in thread: LaDainian Tomlinson: "Re: what language is this?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 06 Nov 2003 11:29:48 -0500
Abigail wrote:
> Chris Mattern (syscjm@gwu.edu) wrote on MMMDCCXVIII September MCMXCIII in
> <URL:news:3FA95E7C.804@gwu.edu>:
> :} Fred wrote:
> :} > hello
> :} > I am trying to understand a lettle about a code in a language which is
> :} > not perl. would someone know what language it is?
> :} >
> :} > e.g. in perl
> :} > my $a = 0b100001;
> :} > my $b = 0b010001;
> :} > the logic operator for xOr is "^"
> :} >
> :} >
> :} > in this language it is
> :} > |xOr(a,b)|
> :} >
> :}
> :} Fred, you've given virtually no data. What you've described could
> :} cover literally hundreds (hell, thousands) of languages, *including*
> :} Perl if the program in question defined an "xOr" subroutine. Try
> :} giving a couple of dozen lines of code as an example; it might be
> :} possible to determine the language from that.
>
>
> Well, it might be possible to define an 'xOr' subrouting in Perl, it's
> not possible to define your own operators. And considering Perl doesn't
> have unary |, or any circumfix operators, I don't see how the quoted
> line could be valid Perl. (Input to filters doesn't count).
>
It's not entirely clear to me that the vertical bars are part of the
statement and not just his whimsical way of quoting it.
Chris Mattern
- Next message: J. Gleixner: "Re: Converting a list join to a scaler/string"
- Previous message: Gunnar Hjalmarsson: "Re: how to access a (global) variable across files"
- In reply to: Abigail: "Re: what language is this?"
- Next in thread: LaDainian Tomlinson: "Re: what language is this?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|