From Sprezz Towers

Notes from the workshop.

Technical discoveries, field notes, unlikely bugs and the occasional opinion.

Open Sesame! Identically named volumes

One of our favourite pastimes is spending time on client site being challenged to do stuff we've never even considered doing before. This post documents the result of one such challenge. For the longest time, Revelation products have not allowed two volumes with the same name to be attached at the same time. To ensure that index transactions are applied to the correct bang file, the system enforces this artificial limit. Note though, that it IS an artificial limit, implemented at the table attaching level, not at the table opening level. Many VARs working with multiple clients frequently just copy a base subdirectory of application tables to a new folder for a new client and in so doing, duplicate the name in the REVMEDIA map. This, naturally, means that if we have say an INVOICES table in that subdirectory, that we would not be able to consolidate across multiple INVOICES tables without first detaching the old table and attaching the new one. This introduces significant over...

Read article →

Dynamic Arrays and Concatenation

A recent posting on the Rev forum asked about using compound assignment operators with dynamic arrays on the left side of the operator.  A compound assignment operator is an operator that does multiple actions with one command.  The compound assignment operators in Basic+ are += (add and assign) -= (subtract and assign) : = (concatenation and assign) Specifically, the poster was asking why the statement workRec < 10 >   +=  CHECK_HISTORY < CHECK.AMOUNT$ > would not compile. It's been a long time since I looked at the meta for this( 1994-95) with the goal of allowing this structure in ARev 3.12, but I'll tell you what I remember. Without going into detail on how the compiler works, it parses the source and turns each command into a set of opcodes.  Opcodes are more or less stored in a Reverse Polish notation structure.  So, the command i  =  j becomes i ,  j ,   =   < eoe > (where <eoe>...

Read article →