Question about 400⌶

General APL language issues

Question about 400⌶

Postby PGilbert on Fri May 01, 2015 2:06 pm

If I define the following DFN named valueConverter as:

Code: Select all
 valueConverter←{
     ⍵.HasNumber:⍵.Number
     ⍵.HasString:⍵.Text
     ⍵.HasFormulaNumberValue:⍵.FormulaNumberValue
     ⍵.HasFormulaStringValue:⍵.FormulaStringValue
     ⍵.IsBlank:⎕NULL             
     ⍵.HasDateTime:⍵.Number
     ⍵.HasBoolean:⍵.Number
     ⍵.HasRichText:⍵.RichText
     ⍵.Value2
 }


and try to compile it with 400⌶ I am getting the following result:

      1∘(400⌶)'valueConverter'
0
2∘(400⌶)'valueConverter'
16 1 0 Complex symbol

3∘(400⌶)'valueConverter'
0


The DFN is not compiled. What is the meaning of: 16 1 0 Complex symbol

I have not found any information on this ⌶ beam at http://help.dyalog.com/14.0/

Thanks,

Pierre Gilbert
User avatar
PGilbert
 
Posts: 419
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada

Re: Question about 400⌶

Postby DanB|Dyalog on Sat May 02, 2015 11:47 am

Hi Pierre.
Not sure what you are trying to achieve here, 400 Ibeam is described in the PDF supplied in the help folder.
When I try your example here with one of the beta versions I get this:
Code: Select all
      2(400⌶)'valueConverter'
16 1 0  Dotted namespace reference

which means you cannot use namespace referenced names (dotted names) which makes sense since the compiler has no idea what the names referenced are made of.
What this simply an experiment?
DanB|Dyalog
 

Re: Question about 400⌶

Postby PGilbert on Sat May 02, 2015 12:40 pm

DanB|Dyalog wrote:What this simply an experiment?


No, valueConverter is part of the GetValue method of the Class sfExcel at http://aplwiki.com/sfExcel and I was trying to give it some more speed by 'compiling' the DFN.

Thanks for your answer.
User avatar
PGilbert
 
Posts: 419
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada


Return to Language

Who is online

Users browsing this forum: No registered users and 1 guest